Function at 0x140001430
Capabilities:
Get common file path
Patch process command line

Disassembly:
sub rsp, 0x708
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x6f0], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000147a
xor eax, eax
jmp 0x1400017a7
lea rcx, [0x140021800]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlEnterCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400014ab
xor eax, eax
jmp 0x1400017a7
lea rcx, [0x1400217d0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400014dc
xor eax, eax
jmp 0x1400017a7
lea rcx, [0x1400217a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000150d
xor eax, eax
jmp 0x1400017a7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x438
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14000153d
xor eax, eax
jmp 0x1400017a7
mov qword [rsp + 0x20], 0
mov r9d, 0x30
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140001591
xor eax, eax
jmp 0x1400017a7
mov rax, qword [rsp + 0x70]
add rax, 0x18
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x88]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400015ca
xor eax, eax
jmp 0x1400017a7
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.explorer.exe
mov edx, 0x105
lea rcx, [rsp + 0xc0]
call fcn.14000446c
mov ecx, 0x104
call fcn.140006c14
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0xc0]
mov edx, 0x104
mov rcx, qword [rsp + 0x38]
call fcn.140004404
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x38]
call qword [rsp + 0x58]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x20]
add rax, 0x60
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x20]
add rax, 0x70
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [rsp + 0x40]
mov r8d, 0x104
lea rdx, [rsp + 0x4e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400016c9
xor eax, eax
jmp 0x1400017a7
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 0x4a]
mov qword [rsp + 0x20], 0
mov r9d, eax
lea r8, [rsp + 0x2d0]
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140001705
xor eax, eax
jmp 0x1400017a7
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x4e0]
call fcn.140004294
test eax, eax
jne 0x14000174a
mov rax, qword [rsp + 0x78]
add rax, 0x48
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [rsp + 0x40]
mov rax, qword [rsp + 0x78]
add rax, 0x58
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [rsp + 0x40]
jmp 0x14000176d
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x80], rax
jne 0x140001697
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x38]
call qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0xc0]
call fcn.140004294
test eax, eax
jne 0x1400017a2
xor eax, eax
jmp 0x1400017a7
mov eax, 1
mov rcx, qword [rsp + 0x6f0]
xor rcx, rsp
call fcn.140002120
add rsp, 0x708
ret