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

Disassembly:
sub rsp, 0x708
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x6f0], rax
lea rcx, [0x1400032c8]
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 0x14000130a
xor eax, eax
jmp 0x14000163c
lea rcx, [0x140003368]
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 0x14000133b
xor eax, eax
jmp 0x14000163c
lea rcx, [0x140003398]
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 0x14000136c
xor eax, eax
jmp 0x14000163c
lea rcx, str.ntdll.dll
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 0x14000139d
xor eax, eax
jmp 0x14000163c
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 0x1400013cd
xor eax, eax
jmp 0x14000163c
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 0x140001421
xor eax, eax
jmp 0x14000163c
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 0x14000145a
xor eax, eax
jmp 0x14000163c
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 qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov ecx, 0x104
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0xc0]
mov edx, 0x104
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
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 0x14000155c
xor eax, eax
jmp 0x14000163c
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 0x140001598
xor eax, eax
jmp 0x14000163c
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400015de
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 0x140001601
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 0x14000152a
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 qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001637
xor eax, eax
jmp 0x14000163c
mov eax, 1
mov rcx, qword [rsp + 0x6f0]
xor rcx, rsp
call fcn.140001720
add rsp, 0x708
ret