mirror of
https://github.com/ilkyr/CustomRDI
synced 2026-06-08 14:48:48 +00:00
12 lines
281 B
NASM
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 |