Skip to content

Instantly share code, notes, and snippets.

@Cee
Created July 29, 2014 17:15
Show Gist options
  • Save Cee/f703ad785c8aa3fd8337 to your computer and use it in GitHub Desktop.
Save Cee/f703ad785c8aa3fd8337 to your computer and use it in GitHub Desktop.
secret_phase
0x000000000040115a <+0>: push %rbx
0x000000000040115b <+1>: callq 0x40165f <read_line>
0x0000000000401160 <+6>: mov $0xa,%edx
0x0000000000401165 <+11>: mov $0x0,%esi
0x000000000040116a <+16>: mov %rax,%rdi
0x000000000040116d <+19>: callq 0x400b80 <strtol@plt>
0x0000000000401172 <+24>: mov %eax,%ebx
0x0000000000401174 <+26>: lea -0x1(%rbx),%eax
0x0000000000401177 <+29>: cmp $0x3e8,%eax
0x000000000040117c <+34>: jbe 0x401183 <secret_phase+41>
0x000000000040117e <+36>: callq 0x40163d <explode_bomb>
0x0000000000401183 <+41>: mov %ebx,%esi
0x0000000000401185 <+43>: mov $0x6025a0,%edi
0x000000000040118a <+48>: callq 0x40111c <fun7>
0x000000000040118f <+53>: cmp $0x3,%eax
0x0000000000401192 <+56>: je 0x401199 <secret_phase+63>
0x0000000000401194 <+58>: callq 0x40163d <explode_bomb>
0x0000000000401199 <+63>: mov $0x401b28,%edi
0x000000000040119e <+68>: callq 0x400aa0 <puts@plt>
0x00000000004011a3 <+73>: callq 0x401785 <phase_defused>
0x00000000004011a8 <+78>: pop %rbx
0x00000000004011a9 <+79>: retq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment