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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5d8]
sub rsp, 0x6c0
mov rax, qword [0x180040030]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
lea rbx, str.ntdll.dll
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x180002887
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlEnterCriticalSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x180002887
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlLeaveCriticalSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x180002887
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlInitUnicodeString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x180002887
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x438
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180002887
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov r9d, 0x30
xor edx, edx
mov rcx, rax
call rsi
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov esi, 8
lea rdx, [rsp + 0x58]
mov r9d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180002887
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
and qword [rsp + 0x20], 0
add rdx, 0x18
mov r9d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180002887
mov r12d, 0x104
lea rcx, [rbp - 0x80]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.explorer.exe
lea edx, [r12 + 1]
lea rcx, [rbp - 0x80]
call fcn.180012224
mov ecx, r12d
call fcn.180012b7c
lea r8, [rbp - 0x80]
mov edx, r12d
mov rcx, rax
mov rsi, rax
call fcn.1800121bc
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
call r15
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [rcx + 0x20]
add rcx, 0x60
call rdi
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [rcx + 0x20]
add rcx, 0x70
call rdi
mov r8d, r12d
lea rdx, [rbp + 0x3a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x48]
mov r15, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
mov r9d, 8
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180002887
mov rdx, qword [rsp + 0x38]
lea r8, [rbp + 0x190]
and qword [rsp + 0x20], 0
mov rcx, rbx
movzx r9d, word [rdx + 0x4a]
mov rdx, qword [rdx + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180002887
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call fcn.18001204c
test eax, eax
je 0x18000283b
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
cmp rcx, r15
je 0x180002857
jmp 0x1800027c1
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
add rcx, 0x48
call rdi
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
add rcx, 0x58
call rdi
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
call r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call fcn.18001204c
test eax, eax
je 0x180002887
mov eax, 1
jmp 0x180002889
xor eax, eax
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1800090a0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret