Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dump of assembler code for function phase_4:
- => 0x000000000040124e <+0>: sub $0x18,%rsp
- 0x0000000000401252 <+4>: mov %fs:0x28,%rax
- 0x000000000040125b <+13>: mov %rax,0x8(%rsp)
- 0x0000000000401260 <+18>: xor %eax,%eax
- 0x0000000000401262 <+20>: lea 0x4(%rsp),%rcx
- 0x0000000000401267 <+25>: mov %rsp,%rdx
- 0x000000000040126a <+28>: mov $0x402d1e,%esi
- //%d %d
- 0x000000000040126f <+33>: callq 0x400d00 <__isoc99_sscanf@plt>
- 0x0000000000401274 <+38>: cmp $0x2,%eax
- 0x0000000000401277 <+41>: jne 0x40127f <phase_4+49>
- 0x0000000000401279 <+43>: cmpl $0xe,(%rsp) //must be below '14'
- 0x000000000040127d <+47>: jbe 0x401284 <phase_4+54>
- 0x000000000040127f <+49>: callq 0x401a0a <explode_bomb>
- 0x0000000000401284 <+54>: mov $0xe,%edx
- 0x0000000000401289 <+59>: mov $0x0,%esi
- 0x000000000040128e <+64>: mov (%rsp),%edi
- //edi = first arg
- 0x0000000000401291 <+67>: callq 0x401210 <func4>
- 0x0000000000401296 <+72>: cmp $0x6,%eax //eax == 0x6
- 0x0000000000401299 <+75>: jne 0x4012a2 <phase_4+84>
- 0x000000000040129b <+77>: cmpl $0x6,0x4(%rsp)
- 0x00000000004012a0 <+82>: je 0x4012a7 <phase_4+89>
- 0x00000000004012a2 <+84>: callq 0x401a0a <explode_bomb>
- 0x00000000004012a7 <+89>: mov 0x8(%rsp),%rax
- 0x00000000004012ac <+94>: xor %fs:0x28,%rax
- 0x00000000004012b5 <+103>: je 0x4012bc <phase_4+110>
- 0x00000000004012b7 <+105>: callq 0x400c40 <__stack_chk_fail@plt>
- 0x00000000004012bc <+110>: add $0x18,%rsp
- 0x00000000004012c0 <+114>: retq
- End of assembler dump.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement