From 2cc8425ab2f601d674c9d2f5b27631e690ef6e6a Mon Sep 17 00:00:00 2001 From: iampwningyou <10336705+iampwningyou@users.noreply.github.com> Date: Sun, 9 Oct 2022 17:01:00 -0700 Subject: [PATCH] Update main.cpp --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 9f39dbe..62eddae 100644 --- a/main.cpp +++ b/main.cpp @@ -36,10 +36,10 @@ __declspec(naked) void codecave() { // Restore the registers and then recreate the original instructions that we overwrote // After those, jump back to the instruction after the one we overwrote - _asm { + __asm { popad mov eax, dword ptr ds:[ecx] - lea esi,dword ptr ds:[esi] + lea esi, dword ptr ds:[esi] jmp ret_address } }