Skip to content

Instantly share code, notes, and snippets.

@mrphrazer
Last active November 5, 2015 23:03
Show Gist options
  • Save mrphrazer/b18dc1dd990d89dd4e19 to your computer and use it in GitHub Desktop.
Save mrphrazer/b18dc1dd990d89dd4e19 to your computer and use it in GitHub Desktop.
angr test
0000000000400546 <foo>:
400546: 55 push %rbp
400547: 48 89 e5 mov %rsp,%rbp
40054a: 89 7d fc mov %edi,-0x4(%rbp)
40054d: 89 75 f8 mov %esi,-0x8(%rbp)
400550: 8b 45 f8 mov -0x8(%rbp),%eax
400553: c1 e0 02 shl $0x2,%eax
400556: 01 45 fc add %eax,-0x4(%rbp)
400559: 8b 45 fc mov -0x4(%rbp),%eax
40055c: 2b 45 f8 sub -0x8(%rbp),%eax
40055f: 89 45 f8 mov %eax,-0x8(%rbp)
400562: 8b 45 fc mov -0x4(%rbp),%eax
400565: 0f af 45 f8 imul -0x8(%rbp),%eax
400569: 89 45 fc mov %eax,-0x4(%rbp)
40056c: 8b 45 fc mov -0x4(%rbp),%eax
40056f: 83 c0 07 add $0x7,%eax
400572: 89 45 f8 mov %eax,-0x8(%rbp)
400575: 8b 55 fc mov -0x4(%rbp),%edx
400578: 8b 45 f8 mov -0x8(%rbp),%eax
40057b: 01 c2 add %eax,%edx
40057d: 8b 45 f8 mov -0x8(%rbp),%eax
400580: 83 c0 37 add $0x37,%eax
400583: 39 c2 cmp %eax,%edx
400585: 75 07 jne 40058e <foo+0x48>
400587: b8 01 00 00 00 mov $0x1,%eax
40058c: eb 05 jmp 400593 <foo+0x4d>
40058e: b8 00 00 00 00 mov $0x0,%eax
400593: 5d pop %rbp
400594: c3 retq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment