Skip to content

Instantly share code, notes, and snippets.

@MisesEnForce
Created August 22, 2015 19:24
Show Gist options
  • Save MisesEnForce/b8b526897da0421f3033 to your computer and use it in GitHub Desktop.
Save MisesEnForce/b8b526897da0421f3033 to your computer and use it in GitHub Desktop.
disassembly of tmp.dylib --> otool -tV
XXXXXXXXXX:MyFirstDylib XXXXXXXXXX$ otool -tV tmp.dylib
tmp.dylib:
(__TEXT,__text) section
_powertwo_:
00000f87 pushl %ebp
00000f88 movl %esp, %ebp
00000f8a calll ___x86.get_pc_thunk.ax
00000f8f movl 0x8(%ebp), %eax
00000f92 movl (%eax), %edx
00000f94 movl 0x8(%ebp), %eax
00000f97 movl (%eax), %eax
00000f99 imull %eax, %edx
00000f9c movl 0xc(%ebp), %eax
00000f9f movl %edx, (%eax)
00000fa1 nop
00000fa2 popl %ebp
00000fa3 retl
___x86.get_pc_thunk.ax:
00000fa4 movl (%esp), %eax
00000fa7 retl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment