Skip to content

Commit f17b289

Browse files
author
RaMMicHaeL
authored
Update executex64.asm
1 parent ca5b20f commit f17b289

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

external/source/shellcode/windows/x86/src/migrate/executex64.asm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ delta:
4040
4141
call go_all_native ; perform the transition into native x64 and return here when done.
4242
43+
mov ax, ds ; fixes an elusive bug on AMD CPUs, http://blog.rewolf.pl/blog/?p=1484
44+
mov ss, ax ; found and fixed by ReWolf, incorporated by RaMMicHaeL
45+
4346
add esp, (8+4+8) ; remove the 8 bytes we allocated + the return address which was never popped off + the qword pushed from native_x64
4447
pop edi ; restore the clobbered registers
4548
pop esi ;

0 commit comments

Comments
 (0)