Moving Data - 2
Last updated
Last updated
For loading pointer address: lea
lea EAX,[label] ; Saves pointer(address of label) in EAX
For exchanging (swaps) values: XCHG XCHG register, memory XCHG memory, register
Lets look these instructions into actions.(lea-xchg.nasm)
Loading the binary in gdb, setting breakpoint and hook-stop.
lea instruction→
xchg instruction →
Pretty straight forward.