From 93f5c2ca70aff262ec1f13c9e712311af596fccd Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 14 Aug 2026 18:48:03 +0000 Subject: [PATCH] Delete RetSpoof.asm --- RetSpoof.asm | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 RetSpoof.asm diff --git a/RetSpoof.asm b/RetSpoof.asm deleted file mode 100644 index f3347fe..0000000 --- a/RetSpoof.asm +++ /dev/null @@ -1,42 +0,0 @@ - PUBLIC _spoofer_stub - - .code - - _spoofer_stub PROC - pop r11 - pop r10 - mov rax, [rsp + 24] - - mov r10, [rax] - mov [rsp], r10 - - mov r10, [rax + 8] - mov [rax + 8], r11 - - mov [rax + 16], rbx - lea rbx, fixup - mov [rax], rbx - mov rbx, rax - - jmp r10 - - fixup: - sub rsp, 16 - mov rcx, rbx - mov rbx, [rcx + 16] - jmp QWORD PTR [rcx + 8] - _spoofer_stub ENDP - - NtProtectVirtualMemory PROC - mov r10, rcx ; Move first parameter from rcx to r10 (syscall convention) - mov eax, 50h ; Set syscall number for NtProtectVirtualMemory (Windows 10 x64) - test byte ptr [7FFE0308h], 1 ; Check KUSER_SHARED_DATA flag - jnz use_int2e ; If flag is set, use int 2Eh - syscall ; Execute 64-bit system call - ret ; Return with NTSTATUS in eax - use_int2e: - int 2Eh ; Execute 32-bit system call (compatibility) - ret ; Return with NTSTATUS in eax - NtProtectVirtualMemory ENDP - - END \ No newline at end of file