mirror of
https://github.com/paranoidninja/Proxy-Function-Calls-For-ETwTI
synced 2026-06-06 16:34:28 +00:00
Ba Dum Tss
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
section .text
|
||||
|
||||
global WorkCallback
|
||||
|
||||
WorkCallback:
|
||||
mov rbx, rdx ; backing up the struct as we are going to stomp rdx
|
||||
mov rax, [rbx] ; NtAllocateVirtualMemory
|
||||
mov rcx, [rbx + 0x8] ; HANDLE ProcessHandle
|
||||
mov rdx, [rbx + 0x10] ; PVOID *BaseAddress
|
||||
xor r8, r8 ; ULONG_PTR ZeroBits
|
||||
mov r9, [rbx + 0x18] ; PSIZE_T RegionSize
|
||||
mov r10, [rbx + 0x20] ; ULONG Protect
|
||||
mov [rsp+0x30], r10 ; stack pointer for 6th arg
|
||||
mov r10, 0x3000 ; ULONG AllocationType
|
||||
mov [rsp+0x28], r10 ; stack pointer for 5th arg
|
||||
jmp rax
|
||||
Reference in New Issue
Block a user