Switch to using wide strings in the injector
This commit is contained in:
@ -17,11 +17,11 @@ main: ; Replacement entry point
|
||||
|
||||
|
||||
mov rcx, rsi ; kernel32.dll
|
||||
lea rdx, [rel s_LoadLibraryA]
|
||||
call rdi ; rax = *LoadLibraryA
|
||||
lea rdx, [rel s_LoadLibraryW]
|
||||
call rdi ; rax = *LoadLibraryW
|
||||
|
||||
lea rcx, [rel dllPath]
|
||||
call rax ; LoadLibraryA(dllPath)
|
||||
call rax ; LoadLibraryW(dllPath)
|
||||
|
||||
|
||||
mov rcx, rsi ; kernel32.dll
|
||||
@ -67,7 +67,7 @@ main: ; Replacement entry point
|
||||
|
||||
|
||||
; Strings
|
||||
s_LoadLibraryA: db "LoadLibraryA", 0
|
||||
s_LoadLibraryW: db "LoadLibraryW", 0
|
||||
s_GetModuleHandleA: db "GetModuleHandleA", 0
|
||||
s_GetCommandLineW: db "GetCommandLineW", 0
|
||||
s_UnityPlayer.dll: db "UnityPlayer.dll", 0
|
||||
|
||||
Reference in New Issue
Block a user