Function at 0x140001000
Capabilities:
Accept command line arguments
Acquire debug privileges

Disassembly:
mov r11, rsp
push rbp
push rbx
push r14
lea rbp, [r11 - 0x1d8]
sub rsp, 0x2c0
mov rax, qword [0x140018008]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov qword [r11 + 0x10], rdi
xor edi, edi
mov r14d, edi
mov dword [rsp + 0x30], edi
mov qword [r11 - 0x28], r15
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
lea edx, [rdi + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ebx, [rdi + 1]
test eax, eax
je 0x1400010ca
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400010bf
mov rax, qword [rsp + 0x38]
lea r9d, [rdi + 0x10]
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x30], 2
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x2e0], rsi
jg 0x1400010e7
mov esi, ebx
jmp 0x1400012a3
mov rcx, qword [r15 + 8]
xor edx, edx
mov qword [rsp + 0x2f0], r12
lea r8d, [rdx + 0xa]
call fcn.140003f00
mov rcx, qword [r15 + 0x10]
xor edx, edx
mov r14d, eax
mov dword [rsp + 0x34], eax
lea r8d, [rdx + 0xa]
call fcn.140003f00
mov rcx, qword [r15 + 0x18]
xor edx, edx
mov r12d, eax
lea r8d, [rdx + 0xa]
call fcn.140003f00
mov dword [rsp + 0x40], eax
test r14d, r14d
jne 0x140001138
lea esi, [r14 - 2]
jmp 0x14000129b
mov edx, eax
mov ecx, r14d
call fcn.140001390
mov esi, eax
test eax, eax
je 0x14000129b
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x2b8], r13
mov dword [rsp + 0x38], edi
call fcn.1400016c0
mov rcx, rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r13, rax
test rax, rax
jne 0x140001184
mov r14d, edi
lea r12d, [rax + 1]
jmp 0x14000126c
lea rcx, str.USER32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.DummyDebugProc
mov rcx, r13
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400011c1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14d, edi
lea r12d, [rsi + 1]
jmp 0x14000126c
lea rdx, str.SetWindowsHookExW
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, r12d
mov r8, r13
mov rdx, rsi
mov ecx, 3
call rax
mov r15, rax
test rax, rax
jne 0x1400011f2
mov r14d, edi
lea r12d, [rax + 1]
jmp 0x140001267
mov r14d, 0x14
mov esi, r14d
nop dword [rax + rax]
mov r9, r15
xor r8d, r8d
mov edx, 0x5b0
mov ecx, r12d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
sub rsi, 1
jne 0x140001200
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov r9, r15
xor r8d, r8d
mov edx, 0x5b0
mov ecx, r12d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
sub r14, 1
jne 0x140001230
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r12d, 1
mov r14d, r12d
mov r15, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.140003f2c
mov r13, qword [rsp + 0x2b8]
test r14d, r14d
mov esi, 0xfffffff9
cmovne esi, edi
cmp dword [rsp + 0x40], edi
jne 0x140001296
test r14d, r14d
cmovne edi, r12d
mov r14d, dword [rsp + 0x34]
mov r12, qword [rsp + 0x2f0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r15, qword [rsp + 0x2b0]
test edi, edi
mov rdi, qword [rsp + 0x2e8]
je 0x140001363
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.140002770
xor eax, eax
lea rdx, [rsp + 0x60]
mov ecx, r14d
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea r9d, [rax + 0xa]
mov qword [rsp + 0x78], rax
lea r8d, [rax + 0x13]
mov qword [rbp - 0x80], rax
call fcn.14000382c
mov r9d, 0x12
lea r8, str.GSGameInjectorExit
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.140003f48
lea rax, [rsp + 0x60]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140001324
mov r9, rbx
lea r8, [rsp + 0x60]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.1400035ec
lea r8, [rbp - 0x70]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
mov rsi, qword [rsp + 0x2e0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400017a0
add rsp, 0x2c0
pop r14
pop rbx
pop rbp
ret