Reverse Engineering ARM
Just a ragged collection of notes before I do anything proper - do not take this as gospel! I am doing ARM reversing on my M1 MacBook for fun...
Registers
// drop down SP
sub sp, sp, 0x20
// Save FP and LR to the stack
stp x29, x30, [var_10h]
// Set up a new stack frame by updating x29 to SP+0x10
add x29, sp, 0x10
// ... function execution ...
// Restore FP and LR
ldp X29, X30, [SP], [var_10h]
// Return
retLast updated
Was this helpful?