Function at 0x180016000
Capabilities:
Access peb ldr_data
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rdi, rcx
mov r14, r8
lea rcx, [0x18006d618]
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlCreateProcessParametersEx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateUserProcess
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test r12, r12
je 0x180016498
test rax, rax
je 0x180016498
xorps xmm0, xmm0
mov qword [rsp + 0x190], r15
xor ebx, ebx
lea rcx, [rbp - 0x78]
xor eax, eax
mov qword [rsp + 0x70], rbx
mov rdx, rdi
mov qword [0x180082d18], rax
movups xmmword [0x180082d08], xmm0
mov qword [rbp - 0x80], rbx
mov r15d, ebx
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp - 0x68]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x1800160f1
lea ecx, [rbx + 3]
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
mov r15, qword [rsp + 0x190]
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
test rsi, rsi
je 0x180016101
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x180016103
mov eax, ebx
movzx ebx, word [rbp - 0x78]
mov edx, 8
movsxd rdi, eax
add rbx, 8
mov rax, qword gs:[0x30]
lea rbx, [rbx + rdi*2]
mov rcx, qword [rax + 0x60]
mov r8, rbx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea rdx, [0x18006ceb4]
mov word [rsp + 0x62], bx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
lea rdx, [0x18006cecc]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test rdi, rdi
je 0x180016193
lea rdx, [0x18006cedc]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test r14, r14
je 0x1800161b6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1800161b6
mov rdx, r14
lea rcx, [rbp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r15, [rbp + 0x20]
mov dword [rsp + 0x50], 1
lea rdx, [rbp - 0x78]
xor esi, esi
mov r9, r15
mov qword [rsp + 0x48], rsi
xor r8d, r8d
mov qword [rbp + 0xa8], rsi
mov rax, qword gs:[0x30]
mov qword [rsp + 0x40], rsi
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x20]
lea rcx, [rbp + 0xa8]
add rax, 0xc0
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call r12
mov edi, eax
test eax, eax
js 0x180016402
mov rax, qword [rbp + 0xa8]
lea r9d, [rsi + 1]
xorps xmm0, xmm0
lea r8, [rbp + 0x30]
mov edx, 0x1f000f
lea rcx, [rsp + 0x78]
mov qword [rax + 0x48], rsi
mov rax, qword [rbp + 0xa8]
mov qword [rax + 0x10], 0xfffffffffffffffe
mov rax, qword [rbp + 0xa8]
mov dword [rax + 0xa8], 0xb
mov dword [rbp + 0x30], 0x30
mov qword [rbp + 0x38], rsi
mov dword [rbp + 0x48], esi
mov qword [rbp + 0x40], rsi
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rsp + 0x78], rsi
call qword [sym.imp.ntdll.dll_NtCreateDebugObject]
mov edi, eax
test eax, eax
jns 0x18001629d
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlDestroyProcessParameters]
jmp 0x180016402
mov rcx, qword gs:[0x30]
xorps xmm0, xmm0
mov rax, qword [rsp + 0x78]
mov edx, 8
mov qword [rcx + 0x16a8], rax
xor eax, eax
movaps xmmword [rbp - 0x30], xmm0
lea r8d, [rdx + 0x60]
mov qword [rbp + 0x10], rax
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x40], 0x58
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x38], esi
movups xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x2e], si
movups xmmword [rbp], xmm0
mov dword [rbp - 0x2c], 0x81
movd eax, xmm0
or al, 3
mov byte [rbp - 0x30], al
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9d, 0x2000000
lea rdx, [rbp - 0x80]
mov rbx, rax
mov r8d, r9d
mov qword [rsp + 0x50], rbx
mov qword [rax], 0x68
mov qword [rax + 8], 0x20005
movzx ecx, word [rbp - 0x68]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp - 0x60]
mov qword [rax + 0x18], rcx
mov qword [rax + 0x28], 0x60001
mov qword [rax + 0x30], 8
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x38], rcx
lea rcx, [rsp + 0x70]
mov qword [rax + 0x48], 0x10003
mov qword [rax + 0x50], 0x10
lea rax, [rbp - 0x58]
mov qword [rbx + 0x58], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0xa8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call r13
mov edi, eax
mov r8, rbx
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlDestroyProcessParameters]
test edi, edi
js 0x180016402
mov rax, qword [rsp + 0x70]
mov qword [0x180082d08], rax
mov rax, qword [rbp - 0x80]
mov qword [0x180082d10], rax
mov eax, dword [rbp - 0x58]
mov dword [0x180082d18], eax
mov eax, dword [rbp - 0x50]
mov dword [0x180082d1c], eax
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rbp - 0x60]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rsp + 0x68], rsi
je 0x180016444
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rsp + 0x68]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rsp + 0x70], rsi
je 0x18001647e
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x180016472
mov rcx, qword [rsp + 0x70]
mov edx, edi
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
jmp 0x18001647e
mov rcx, qword [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtResumeThread]
mov byte [0x180082abd], sil
lea rax, [0x180082d08]
mov qword [0x180082c50], rsi
jmp 0x1800160cd
mov ecx, 0x32
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x1800160d5