Skip to content

Instantly share code, notes, and snippets.

@amy
Created April 2, 2015 17:00
Show Gist options
  • Save amy/99660f06e5a5c5c202b7 to your computer and use it in GitHub Desktop.
Save amy/99660f06e5a5c5c202b7 to your computer and use it in GitHub Desktop.
Dump of assembler code for function phase_5:
=> 0x08048e31 <+0>: sub $0x2c,%esp
0x08048e34 <+3>: lea 0x1c(%esp),%eax
0x08048e38 <+7>: mov %eax,0xc(%esp)
0x08048e3c <+11>: lea 0x18(%esp),%eax
0x08048e40 <+15>: mov %eax,0x8(%esp)
0x08048e44 <+19>: movl $0x804a38c,0x4(%esp)
0x08048e4c <+27>: mov 0x30(%esp),%eax
0x08048e50 <+31>: mov %eax,(%esp)
0x08048e53 <+34>: call 0x8048890 <__isoc99_sscanf@plt>
0x08048e58 <+39>: cmp $0x1,%eax
0x08048e5b <+42>: jg 0x8048e62 <phase_5+49>
0x08048e5d <+44>: call 0x80493f5 <explode_bomb>
0x08048e62 <+49>: mov 0x18(%esp),%eax
0x08048e66 <+53>: and $0xf,%eax
0x08048e69 <+56>: mov %eax,0x18(%esp)
0x08048e6d <+60>: cmp $0xf,%eax
0x08048e70 <+63>: je 0x8048e9c <phase_5+107>
0x08048e72 <+65>: mov $0x0,%ecx
0x08048e77 <+70>: mov $0x0,%edx
0x08048e7c <+75>: add $0x1,%edx
0x08048e7f <+78>: mov 0x804ac60(,%eax,4),%eax
0x08048e86 <+85>: add %eax,%ecx
0x08048e88 <+87>: cmp $0xf,%eax
0x08048e8b <+90>: jne 0x8048e7c <phase_5+75>
0x08048e8d <+92>: mov %eax,0x18(%esp)
0x08048e91 <+96>: cmp $0xf,%edx
0x08048e94 <+99>: jne 0x8048e9c <phase_5+107>
0x08048e96 <+101>: cmp 0x1c(%esp),%ecx
0x08048e9a <+105>: je 0x8048ea1 <phase_5+112>
0x08048e9c <+107>: call 0x80493f5 <explode_bomb>
0x08048ea1 <+112>: add $0x2c,%esp
0x08048ea4 <+115>: ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment