Files
2026-05-04 13:06:27 +01:00

12 lines
281 B
NASM

.code
; Returns the address of the ret instruction inside this function (via RIP-relative lea).
; The caller gets a pointer into the loader's own .text section, which is then walked
; backwards to find the DLL's base.
GetRIP proc
lea rax, [here]
here:
ret
GetRIP endp
end