mirror of
https://github.com/vxunderground/VXUG-Papers.git
synced 2024-06-16 11:58:10 +00:00
24 lines
347 B
NASM
24 lines
347 B
NASM
|
; Hell's Gate
|
||
|
; Dynamic system call invocation
|
||
|
;
|
||
|
; by smelly__vx (@RtlMateusz) and am0nsec (@am0nsec)
|
||
|
|
||
|
.data
|
||
|
wSystemCall DWORD 000h
|
||
|
|
||
|
.code
|
||
|
HellsGate PROC
|
||
|
mov wSystemCall, 000h
|
||
|
mov wSystemCall, ecx
|
||
|
ret
|
||
|
HellsGate ENDP
|
||
|
|
||
|
HellDescent PROC
|
||
|
mov r10, rcx
|
||
|
mov eax, wSystemCall
|
||
|
|
||
|
syscall
|
||
|
ret
|
||
|
HellDescent ENDP
|
||
|
end
|