Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. Dump of assembler code for function phase_4:
  2. => 0x000000000040124e <+0>: sub $0x18,%rsp
  3. 0x0000000000401252 <+4>: mov %fs:0x28,%rax
  4. 0x000000000040125b <+13>: mov %rax,0x8(%rsp)
  5. 0x0000000000401260 <+18>: xor %eax,%eax
  6. 0x0000000000401262 <+20>: lea 0x4(%rsp),%rcx
  7. 0x0000000000401267 <+25>: mov %rsp,%rdx
  8.  
  9. 0x000000000040126a <+28>: mov $0x402d1e,%esi
  10. //%d %d
  11. 0x000000000040126f <+33>: callq 0x400d00 <__isoc99_sscanf@plt>
  12. 0x0000000000401274 <+38>: cmp $0x2,%eax
  13. 0x0000000000401277 <+41>: jne 0x40127f <phase_4+49>
  14.  
  15. 0x0000000000401279 <+43>: cmpl $0xe,(%rsp) //must be below '14'
  16. 0x000000000040127d <+47>: jbe 0x401284 <phase_4+54>
  17. 0x000000000040127f <+49>: callq 0x401a0a <explode_bomb>
  18.  
  19. 0x0000000000401284 <+54>: mov $0xe,%edx
  20. 0x0000000000401289 <+59>: mov $0x0,%esi
  21. 0x000000000040128e <+64>: mov (%rsp),%edi
  22. //edi = first arg
  23. 0x0000000000401291 <+67>: callq 0x401210 <func4>
  24. 0x0000000000401296 <+72>: cmp $0x6,%eax //eax == 0x6
  25. 0x0000000000401299 <+75>: jne 0x4012a2 <phase_4+84>
  26. 0x000000000040129b <+77>: cmpl $0x6,0x4(%rsp)
  27. 0x00000000004012a0 <+82>: je 0x4012a7 <phase_4+89>
  28.  
  29. 0x00000000004012a2 <+84>: callq 0x401a0a <explode_bomb>
  30.  
  31. 0x00000000004012a7 <+89>: mov 0x8(%rsp),%rax
  32. 0x00000000004012ac <+94>: xor %fs:0x28,%rax
  33. 0x00000000004012b5 <+103>: je 0x4012bc <phase_4+110>
  34. 0x00000000004012b7 <+105>: callq 0x400c40 <__stack_chk_fail@plt>
  35. 0x00000000004012bc <+110>: add $0x18,%rsp
  36. 0x00000000004012c0 <+114>: retq
  37. End of assembler dump.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement