Skip to content

Instantly share code, notes, and snippets.

@Cee
Created July 29, 2014 17:12
Show Gist options
  • Save Cee/118c76e20cc232aabdaf to your computer and use it in GitHub Desktop.
Save Cee/118c76e20cc232aabdaf to your computer and use it in GitHub Desktop.
phase_defused
0x0000000000401785 <+0>: sub $0x68,%rsp
0x0000000000401789 <+4>: cmpl $0x6,0x2014f0(%rip) # 0x602c80 <num_input_strings>
0x0000000000401790 <+11>: jne 0x4017f0 <phase_defused+107>
0x0000000000401792 <+13>: lea 0x10(%rsp),%rcx
0x0000000000401797 <+18>: lea 0xc(%rsp),%rdx
0x000000000040179c <+23>: mov $0x401ec4,%esi
0x00000000004017a1 <+28>: mov $0x603030,%edi
0x00000000004017a6 <+33>: mov $0x0,%eax
0x00000000004017ab <+38>: callq 0x400ab0 <__isoc99_sscanf@plt>
0x00000000004017b0 <+43>: cmp $0x2,%eax
0x00000000004017b3 <+46>: jne 0x4017e6 <phase_defused+97>
0x00000000004017b5 <+48>: mov $0x401eca,%esi
0x00000000004017ba <+53>: lea 0x10(%rsp),%rdi
0x00000000004017bf <+58>: callq 0x40123d <strings_not_equal>
0x00000000004017c4 <+63>: test %eax,%eax
0x00000000004017c6 <+65>: jne 0x4017e6 <phase_defused+97>
0x00000000004017c8 <+67>: mov $0x401c40,%edi
0x00000000004017cd <+72>: callq 0x400aa0 <puts@plt>
0x00000000004017d2 <+77>: mov $0x401c68,%edi
0x00000000004017d7 <+82>: callq 0x400aa0 <puts@plt>
0x00000000004017dc <+87>: mov $0x0,%eax
0x00000000004017e1 <+92>: callq 0x40115a <secret_phase>
0x00000000004017e6 <+97>: mov $0x401ca0,%edi
0x00000000004017eb <+102>: callq 0x400aa0 <puts@plt>
0x00000000004017f0 <+107>: add $0x68,%rsp
0x00000000004017f4 <+111>: retq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment