Function at 0x180169510
Capabilities:
Create process on windows

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x1b8]
test eax, eax
je 0x180169590
mov rcx, qword [rsp + 0x1a0]
call fcn.180037970
mov qword [rsp + 0x58], rax
call fcn.1801628e0
mov rcx, qword [rsp + 0x58]
mov rdx, rcx
mov rcx, rax
call fcn.1801629b0
movzx eax, al
test eax, eax
jne 0x180169590
xor al, al
jmp 0x18016981a
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x110], 0x68
mov dword [rsp + 0x14c], 0x80
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0xb0]
call fcn.180037a20
nop
lea rcx, [rsp + 0xb0]
call fcn.180037950
movzx eax, al
test eax, eax
jne 0x180169652
lea rcx, [rsp + 0xb0]
call fcn.180037970
movzx eax, word [rax]
cmp eax, 0x20
je 0x180169652
lea r8, [rsp + 0xb0]
lea rdx, [0x180372e04]
lea rcx, [rsp + 0x78]
call fcn.1800f9060
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xb0]
call fcn.1800379a0
nop
lea rcx, [rsp + 0x78]
call fcn.180033840
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0xf0]
call fcn.1801dad10
nop
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xd0]
call fcn.18006c600
nop
lea rcx, [rsp + 0xd0]
call fcn.180037970
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x110]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000020
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18016971c
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0xd0]
call fcn.180033840
nop
lea rcx, [rsp + 0xf0]
call fcn.180033840
nop
lea rcx, [rsp + 0xb0]
call fcn.180033840
movzx eax, byte [rsp + 0x50]
jmp 0x18016981a
cmp qword [rsp + 0x1c0], 0
je 0x180169738
mov rax, qword [rsp + 0x1c0]
mov ecx, dword [rsp + 0xa8]
mov dword [rax], ecx
movzx eax, byte [rsp + 0x1b0]
test eax, eax
je 0x18016979d
cmp qword [rsp + 0x98], 0
je 0x18016979d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rsp + 0x1c8], 0
je 0x180169783
mov rdx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x98], 0
cmp qword [rsp + 0xa0], 0
je 0x1801697c2
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa0], 0
cmp qword [rsp + 0x98], 0
je 0x1801697e7
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x98], 0
mov byte [rsp + 0x51], 1
lea rcx, [rsp + 0xd0]
call fcn.180033840
nop
lea rcx, [rsp + 0xf0]
call fcn.180033840
nop
lea rcx, [rsp + 0xb0]
call fcn.180033840
movzx eax, byte [rsp + 0x51]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1802994c0
add rsp, 0x190
pop rdi
ret