Advertisement
Guest User

Untitled

a guest
Feb 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. (gdb) disas
  2. Dump of assembler code for function phase_5:
  3. => 0x000000000040108a <+0>: push %rbx
  4. 0x000000000040108b <+1>: sub $0x10,%rsp
  5. 0x000000000040108f <+5>: mov %rdi,%rbx
  6. 0x0000000000401092 <+8>: callq 0x4012eb <string_length>
  7. 0x0000000000401097 <+13>: cmp $0x6,%eax
  8. 0x000000000040109a <+16>: jne 0x4010db <phase_5+81>
  9. 0x000000000040109c <+18>: mov $0x0,%eax
  10. 0x00000000004010a1 <+23>: movzbl (%rbx,%rax,1),%edx
  11. 0x00000000004010a5 <+27>: and $0xf,%edx
  12. 0x00000000004010a8 <+30>: movzbl 0x402540(%rdx),%edx
  13. 0x00000000004010af <+37>: mov %dl,0x9(%rsp,%rax,1)
  14. 0x00000000004010b3 <+41>: add $0x1,%rax
  15. 0x00000000004010b7 <+45>: cmp $0x6,%rax
  16. 0x00000000004010bb <+49>: jne 0x4010a1 <phase_5+23>
  17. 0x00000000004010bd <+51>: movb $0x0,0xf(%rsp)
  18. 0x00000000004010c2 <+56>: mov $0x4024f7,%esi
  19. 0x00000000004010c7 <+61>: lea 0x9(%rsp),%rdi
  20. 0x00000000004010cc <+66>: callq 0x401308 <strings_not_equal>
  21. 0x00000000004010d1 <+71>: test %eax,%eax
  22. 0x00000000004010d3 <+73>: jne 0x4010e2 <phase_5+88>
  23. 0x00000000004010d5 <+75>: add $0x10,%rsp
  24. 0x00000000004010d9 <+79>: pop %rbx
  25. 0x00000000004010da <+80>: retq
  26. 0x00000000004010db <+81>: callq 0x40156d <explode_bomb>
  27. 0x00000000004010e0 <+86>: jmp 0x40109c <phase_5+18>
  28. 0x00000000004010e2 <+88>: callq 0x40156d <explode_bomb>
  29. 0x00000000004010e7 <+93>: jmp 0x4010d5 <phase_5+75>
  30.  
  31. Dump of assembler code for function string_length:
  32. => 0x00000000004012eb <+0>: cmpb $0x0,(%rdi)
  33. 0x00000000004012ee <+3>: je 0x401302 <string_length+23>
  34. 0x00000000004012f0 <+5>: mov %rdi,%rdx
  35. 0x00000000004012f3 <+8>: add $0x1,%rdx
  36. 0x00000000004012f7 <+12>: mov %edx,%eax
  37. 0x00000000004012f9 <+14>: sub %edi,%eax
  38. 0x00000000004012fb <+16>: cmpb $0x0,(%rdx)
  39. 0x00000000004012fe <+19>: jne 0x4012f3 <string_length+8>
  40. 0x0000000000401300 <+21>: repz retq
  41. 0x0000000000401302 <+23>: mov $0x0,%eax
  42. 0x0000000000401307 <+28>: retq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement