Binary Lab Phase 3 I need help getting the inputs to diffuse phase 3.
Binary Lab Phase 3
I need help getting the inputs to diffuse phase 3.
Here is the assembly code:
Dump of assembler code for function phase_3:
=> 0x0000000000400f53 <+0>: sub $0x18,%rsp
0x0000000000400f57 <+4>: lea 0x8(%rsp),%r8
0x0000000000400f5c <+9>: lea 0x7(%rsp),%rcx
0x0000000000400f61 <+14>: lea 0xc(%rsp),%rdx
0x0000000000400f66 <+19>: mov $0x4025de,%esi
0x0000000000400f6b <+24>: mov $0x0,%eax
0x0000000000400f70 <+29>: callq 0x400c30 <__isoc99_sscanf@plt>
0x0000000000400f75 <+34>: cmp $0x2,%eax
0x0000000000400f78 <+37>: jg 0x400f7f <phase_3+44>
0x0000000000400f7a <+39>: callq 0x401624 <explode_bomb>
0x0000000000400f7f <+44>: cmpl $0x7,0xc(%rsp)
0x0000000000400f84 <+49>: ja 0x401086 <phase_3+307>
0x0000000000400f8a <+55>: mov 0xc(%rsp),%eax
0x0000000000400f8e <+59>: jmpq *0x402600(,%rax,8)
0x0000000000400f95 <+66>: mov $0x66,%eax
0x0000000000400f9a <+71>: cmpl $0x39d,0x8(%rsp)
0x0000000000400fa2 <+79>: je 0x401090 <phase_3+317>
0x0000000000400fa8 <+85>: callq 0x401624 <explode_bomb>
0x0000000000400fad <+90>: mov $0x66,%eax
0x0000000000400fb2 <+95>: jmpq 0x401090 <phase_3+317>
0x0000000000400fb7 <+100>: mov $0x72,%eax
0x0000000000400fbc <+105>: cmpl $0x2d9,0x8(%rsp)
0x0000000000400fc4 <+113>: je 0x401090 <phase_3+317>
0x0000000000400fca <+119>: callq 0x401624 <explode_bomb>
0x0000000000400fcf <+124>: mov $0x72,%eax
0x0000000000400fd4 <+129>: jmpq 0x401090 <phase_3+317>
0x0000000000400fd9 <+134>: mov $0x6a,%eax
0x0000000000400fde <+139>: cmpl $0x87,0x8(%rsp)
---Type <return> to continue, or q <return> to quit---
0x0000000000400fe6 <+147>: je 0x401090 <phase_3+317>
0x0000000000400fec <+153>: callq 0x401624 <explode_bomb>
0x0000000000400ff1 <+158>: mov $0x6a,%eax
0x0000000000400ff6 <+163>: jmpq 0x401090 <phase_3+317>
0x0000000000400ffb <+168>: mov $0x69,%eax
0x0000000000401000 <+173>: cmpl $0x29f,0x8(%rsp)
0x0000000000401008 <+181>: je 0x401090 <phase_3+317>
0x000000000040100e <+187>: callq 0x401624 <explode_bomb>
0x0000000000401013 <+192>: mov $0x69,%eax
0x0000000000401018 <+197>: jmp 0x401090 <phase_3+317>
0x000000000040101a <+199>: mov $0x6c,%eax
0x000000000040101f <+204>: cmpl $0x3e0,0x8(%rsp)
0x0000000000401027 <+212>: je 0x401090 <phase_3+317>
0x0000000000401029 <+214>: callq 0x401624 <explode_bomb>
0x000000000040102e <+219>: mov $0x6c,%eax
0x0000000000401033 <+224>: jmp 0x401090 <phase_3+317>
0x0000000000401035 <+226>: mov $0x6c,%eax
0x000000000040103a <+231>: cmpl $0x3c0,0x8(%rsp)
0x0000000000401042 <+239>: je 0x401090 <phase_3+317>
0x0000000000401044 <+241>: callq 0x401624 <explode_bomb>
0x0000000000401049 <+246>: mov $0x6c,%eax
0x000000000040104e <+251>: jmp 0x401090 <phase_3+317>
0x0000000000401050 <+253>: mov $0x6f,%eax
0x0000000000401055 <+258>: cmpl $0x190,0x8(%rsp)
0x000000000040105d <+266>: je 0x401090 <phase_3+317>
0x000000000040105f <+268>: callq 0x401624 <explode_bomb>
0x0000000000401064 <+273>: mov $0x6f,%eax
0x0000000000401069 <+278>: jmp 0x401090 <phase_3+317>
0x000000000040106b <+280>: mov $0x67,%eax
---Type <return> to continue, or q <return> to quit---
0x0000000000401070 <+285>: cmpl $0x1f7,0x8(%rsp)
0x0000000000401078 <+293>: je 0x401090 <phase_3+317>
0x000000000040107a <+295>: callq 0x401624 <explode_bomb>
0x000000000040107f <+300>: mov $0x67,%eax
0x0000000000401084 <+305>: jmp 0x401090 <phase_3+317>
0x0000000000401086 <+307>: callq 0x401624 <explode_bomb>
0x000000000040108b <+312>: mov $0x79,%eax
0x0000000000401090 <+317>: cmp 0x7(%rsp),%al
0x0000000000401094 <+321>: je 0x40109b <phase_3+328>
0x0000000000401096 <+323>: callq 0x401624 <explode_bomb>
0x000000000040109b <+328>: add $0x18,%rsp
0x000000000040109f <+332>: retq
End of assembler dump.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps