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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x14008e030]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
lea rcx, str.ntdll.dll
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 0x140002f25
lea rcx, str.ntdll.dll
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 0x140002f25
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlLeaveCriticalSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x140002f25
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlInitUnicodeString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140002f25
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 0x140002f25
xor edi, edi
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r9d, [rdi + 0x30]
call rsi
lea r9d, [rdi + 8]
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002f25
mov rdx, qword [rsp + 0x30]
lea r9d, [rdi + 8]
add rdx, 0x18
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002f25
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.explorer.exe
mov edx, 0x105
lea rcx, [rbp - 0x80]
call fcn.14002dc10
mov ecx, 0x104
call fcn.14002e930
lea r8, [rbp - 0x80]
mov edx, 0x104
mov rcx, rax
mov r13, rax
call fcn.14002d550
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
call r15
mov rcx, qword [rsp + 0x30]
mov rdx, r13
mov rcx, qword [rcx + 0x20]
add rcx, 0x60
call r14
mov rcx, qword [rsp + 0x30]
mov rdx, r13
mov rcx, qword [rcx + 0x20]
add rcx, 0x70
call r14
mov r8d, 0x104
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 rsi, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
nop word [rax + rax]
mov r9d, 8
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x38]
mov rcx, rbx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002f25
mov rdx, qword [rsp + 0x38]
lea r8, [rbp + 0x190]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
movzx r9d, word [rdx + 0x4a]
mov rdx, qword [rdx + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002f25
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call fcn.140029ba0
test eax, eax
je 0x140002ed8
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
cmp rcx, rsi
jne 0x140002e60
jmp 0x140002ef6
mov rcx, qword [rsp + 0x38]
mov rdx, r13
add rcx, 0x48
call r14
mov rcx, qword [rsp + 0x38]
mov rdx, r13
add rcx, 0x58
call r14
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
call r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call fcn.140029ba0
test eax, eax
setne dil
mov eax, edi
jmp 0x140002f27
xor eax, eax
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret