Skip to content

Instantly share code, notes, and snippets.

@hktechn0
Created June 27, 2015 11:00
Show Gist options
  • Save hktechn0/5d79de4b4fb6aa8daacf to your computer and use it in GitHub Desktop.
Save hktechn0/5d79de4b4fb6aa8daacf to your computer and use it in GitHub Desktop.
00000000 <function>:
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 10 sub $0x10,%esp
6: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
d: eb 1c jmp 2b <function+0x2b>
f: 8b 45 fc mov -0x4(%ebp),%eax
12: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
19: 8b 45 08 mov 0x8(%ebp),%eax
1c: 01 c2 add %eax,%edx
1e: 8b 45 fc mov -0x4(%ebp),%eax
21: 0f af 45 0c imul 0xc(%ebp),%eax
25: 89 02 mov %eax,(%edx)
27: 83 45 fc 01 addl $0x1,-0x4(%ebp)
2b: 8b 45 fc mov -0x4(%ebp),%eax
2e: 3b 45 0c cmp 0xc(%ebp),%eax
31: 7c dc jl f <function+0xf>
33: 90 nop
34: c9 leave
35: c3 ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment