Function at 0x180015064
Capabilities:
Patch process command line

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
lea rbx, [0x180058788]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x18001536c
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlEnterCriticalSection
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov r15, rax
test rax, rax
je 0x18001536c
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlLeaveCriticalSection
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov r14, rax
test rax, rax
je 0x18001536c
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlInitUnicodeString
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18001536c
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 0x18001536c
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov r9d, gethostbyname
xor edx, edx
mov rcx, rax
call rsi
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x5d0]
mov esi, 8
lea rdx, [rsp + 0x38]
mov r9d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x18001536c
mov rdx, qword [rbp + 0x5d0]
lea r8, [rbp + 0x5e8]
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 0x18001536c
mov r13d, 0x208
lea rcx, [rsp + 0x60]
mov r8d, r13d
xor edx, edx
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x60]
call fcn.180013dec
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov ecx, 0x104
call qword [sym.imp.msvcrt.dll_malloc]
mov rcx, rax
lea rdx, [rsp + 0x60]
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov rcx, qword [rbp + 0x5d0]
mov rcx, qword [rcx + 0x38]
call r15
mov rcx, qword [rbp + 0x5d0]
mov rdx, rsi
mov rcx, qword [rcx + 0x20]
add rcx, 0x60
call rdi
mov rcx, qword [rbp + 0x5d0]
mov rdx, rsi
mov rcx, qword [rcx + 0x20]
add rcx, 0x70
call rdi
mov r8d, r13d
lea rcx, [rbp + 0x170]
xor edx, edx
call sub.ntdll.dll_memset
mov r8d, r13d
lea rcx, [rbp + 0x380]
xor edx, edx
call sub.ntdll.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x380]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov rax, qword [rbp + 0x5d0]
mov rcx, qword [rax + 0x18]
mov rax, qword [rbp + 0x5e8]
mov r15, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
mov qword [rbp + 0x5e0], rcx
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x5d8]
mov r9d, 8
lea rdx, [rbp + 0x5e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x18001536c
mov rdx, qword [rbp + 0x5d8]
lea r8, [rbp + 0x170]
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 0x18001536c
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x380]
call qword [sym.imp.ntdll.dll__wcsicmp]
test eax, eax
je 0x180015313
mov rax, qword [rbp + 0x5d8]
mov rcx, qword [rax]
mov qword [rbp + 0x5e0], rcx
cmp rcx, r15
jne 0x180015286
jmp 0x180015333
mov rcx, qword [rbp + 0x5d8]
mov rdx, rsi
add rcx, 0x48
call rdi
mov rcx, qword [rbp + 0x5d8]
mov rdx, rsi
add rcx, 0x58
call rdi
mov rcx, qword [rbp + 0x5d0]
mov rcx, qword [rcx + 0x38]
call r14
test rbx, rbx
je 0x18001534f
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll__wcsicmp]
test eax, eax
je 0x18001536c
mov eax, 1
jmp 0x18001536e
xor eax, eax
add rsp, 0x690
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret