阶段4炸弹实验室组装

时间:2019-06-21 17:50:12

标签: assembly reverse-engineering puzzle lab

我需要遍历以下代码而不调用explode_bomb。该函数需要输入两个十进制值。

感谢您的输入。

 Dump of assembler code for function phase_4:
   0x0000000000401100 <+0>:     sub    $0x18,%rsp
   0x0000000000401104 <+4>:     lea    0x8(%rsp),%rcx
   0x0000000000401109 <+9>:     lea    0xc(%rsp),%rdx
   0x000000000040110e <+14>:    mov    $0x4025aa,%esi
   0x0000000000401113 <+19>:    mov    $0x0,%eax
   0x0000000000401118 <+24>:    callq  0x400ac8 <__isoc99_sscanf@plt>
   0x000000000040111d <+29>:    cmp    $0x2,%eax
   0x0000000000401120 <+32>:    jne    0x40112f <phase_4+47>
   0x0000000000401122 <+34>:    mov    0xc(%rsp),%eax
   0x0000000000401126 <+38>:    test   %eax,%eax
   0x0000000000401128 <+40>:    js     0x40112f <phase_4+47>
   0x000000000040112a <+42>:    cmp    $0xe,%eax
   0x000000000040112d <+45>:    jle    0x401134 <phase_4+52>
   0x000000000040112f <+47>:    callq  0x4014af <explode_bomb>
   0x0000000000401134 <+52>:    mov    $0xe,%edx
   0x0000000000401139 <+57>:    mov    $0x0,%esi
   0x000000000040113e <+62>:    mov    0xc(%rsp),%edi
   0x0000000000401142 <+66>:    callq  0x400e70 <func4>
   0x0000000000401147 <+71>:    cmp    $0x23,%eax
   0x000000000040114a <+74>:    jne    0x401153 <phase_4+83>
   0x000000000040114c <+76>:    cmpl   $0x23,0x8(%rsp)
   0x0000000000401151 <+81>:    je     0x401158 <phase_4+88>
---Type <return> to continue, or q <return> to quit---
   0x0000000000401153 <+83>:    callq  0x4014af <explode_bomb>
   0x0000000000401158 <+88>:    add    $0x18,%rsp
   0x000000000040115c <+92>:    retq
End of assembler dump.

0 个答案:

没有答案