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