Function at 0x1400036d0
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 [0x1400ea038]
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 0x1400039a5
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 0x1400039a5
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 0x1400039a5
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 0x1400039a5
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 0x1400039a5
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 0x1400039a5
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 0x1400039a5
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.1400bc12c
mov ecx, 0x104
call fcn.1400bc8fc
lea r8, [rbp - 0x80]
mov edx, 0x104
mov rcx, rax
mov r13, rax
call fcn.1400bc1a4
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 0x1400039a5
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 0x1400039a5
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call fcn.1400bc2e8
test eax, eax
je 0x140003958
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
cmp rcx, rsi
jne 0x1400038e0
jmp 0x140003976
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.1400bc2e8
test eax, eax
setne dil
mov eax, edi
jmp 0x1400039a7
xor eax, eax
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1400b5990
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