Skip to content

Instantly share code, notes, and snippets.

@vanhoefm
Last active December 15, 2015 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanhoefm/5326382 to your computer and use it in GitHub Desktop.
Save vanhoefm/5326382 to your computer and use it in GitHub Desktop.
; Dump of assembler code for function printf:
push %ebp ; save old frame pointer
mov %esp,%ebp
push %ebx
call 0xb7e8ba0f
add $0x10dd5b,%ebx
sub $0xc,%esp
lea 0xc(%ebp),%eax
mov %eax,0x8(%esp)
mov 0x8(%ebp),%eax
mov %eax,0x4(%esp)
mov -0xd8(%ebx),%eax
mov (%eax),%eax
mov %eax,(%esp)
call 0xb7eb1c10 <vfprintf>
add $0xc,%esp
pop %ebx
pop %ebp ; restore old frame pointer
ret
; End of assembler dump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment