Function at 0x180041ad0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x14c0]
mov eax, 0x15c0
call fcn.180066fc0
sub rsp, rax
mov rax, qword [rsp + 0x78]
xor r11d, r11d
imul r15d, r9d, 0xbe0
mov r13, r8
mov rbx, rcx
mov qword [rbp - 0x60], rax
mov esi, r9d
cmp r9d, r15d
ja 0x180042037
mov rax, qword [rsp + 0x78]
lea r12d, [r9 + r9*4]
mov ecx, dword [rbp + 0x1518]
lea edx, [r11 + 0x2e]
mov r14, qword [rbp - 0x58]
lea r10d, [r11 + 0x6f]
shl r12d, 5
lea r9d, [r11 + 0x6c]
mov qword [rsp + 0x50], rax
lea r8d, [r11 + 0x32]
mov dword [rsp + 0x60], ecx
nop dword [rax]
cmp esi, 0xc85
ja 0x180041d50
je 0x180041d01
cmp esi, 0x6b
ja 0x180041c83
je 0x180041c73
cmp esi, 5
je 0x180041c27
cmp esi, 0x35
je 0x180041bdb
cmp esi, 0x5c
je 0x180041bd1
cmp esi, 0x61
jne 0x180042012
mov eax, dword [rbx]
lea r8d, [rsi + 0x2d]
xor r9d, r9d
mov dword [rbp + 0xb8], eax
xor edx, edx
mov dword [rbp + 0xb0], 1
lea rcx, [rbp + 0xb0]
mov qword [rsp + 0x20], r13
call fcn.18000c5c0
xor r11d, r11d
jmp 0x180042001
mov byte [rsp + 0x58], 0
jmp 0x180042012
mov r8d, 3
lea rdx, [0x180099ba4]
lea rcx, [rbp - 0x20]
call fcn.18006e170
movzx eax, word [0x180099bb0]
xor r11d, r11d
movsd xmm0, qword [str.WSAFDIsSet]
mov word [rbp - 0x16], ax
movzx eax, byte [0x180099bb2]
mov byte [rbp - 0x14], al
movsd qword [rbp - 0x1e], xmm0
mov dword [rbp - 0x38], 0x730077
mov word [rbp - 0x34], r11w
jmp 0x180042001
lea rcx, [rbp - 0x78]
mov byte [rbp - 0x78], 0
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x180041c32
movzx eax, word [0x180099b98]
lea rdx, str.seso
mov word [rcx], ax
mov r8d, 4
movzx eax, byte [0x180099b9a]
mov byte [rcx + 2], al
lea rcx, [rbp - 0x78]
mov word [rbp - 0x76], r10w
call fcn.18006df30
xor r11d, r11d
jmp 0x180042001
mov rax, qword [r13]
mov qword [0x1800bb590], rax
jmp 0x180042012
cmp esi, 0xb0
je 0x180041cf5
cmp esi, 0x325
je 0x180041cd6
cmp esi, 0x645
je 0x180041cb8
mov rdi, qword [rsp + 0x50]
cmp esi, 0x965
jne 0x180042017
mov dword [rbp + 2], 0x6c
jmp 0x180042017
mov dword [rbp - 0xc], 0x5f0032
mov dword [rbp - 8], 0x320033
mov word [rbp - 4], dx
mov dword [rbp - 2], 0x6c0064
jmp 0x180042012
mov eax, dword [str.cket]
mov dword [rbp - 0x71], eax
movzx eax, byte [0x180099c44]
mov byte [rbp - 0x6d], al
mov dword [rbp - 0x10], 0x730077
jmp 0x180042012
mov r14, qword [r13 + 0x90]
jmp 0x180042012
mov qword [rsp + 0x30], r11
lea r8, [rbp - 0x78]
mov qword [rsp + 0x28], r11
lea rcx, [rbp - 0x10]
xor r9d, r9d
mov dword [rsp + 0x20], 0xe9
xor edx, edx
call fcn.18000df30
mov qword [rbp - 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x2e
mov qword [rsp + 0x50], rax
mov rdi, rax
xor r11d, r11d
lea r8d, [rdx + 4]
lea r9d, [rdx + 0x3e]
lea r10d, [rdx + 0x41]
jmp 0x180042017
cmp esi, 0x434b
ja 0x180041e49
je 0x180041e2e
cmp esi, 0xfa5
je 0x180041de9
cmp esi, 0x2155
je 0x180041ddf
cmp esi, 0x39dc
je 0x180041da4
mov rdi, qword [rsp + 0x50]
cmp esi, 0x4275
jne 0x180042017
mov eax, dword [0x180099c8a]
mov dword [rbp - 0x32], eax
movzx eax, word [0x180099c8e]
mov word [rbp - 0x2e], ax
jmp 0x180042017
mov r8d, 1
lea rdx, [0x180099be3]
lea rcx, [rsp + 0x58]
call fcn.18006df30
mov r8d, 2
lea rdx, [0x180099c1b]
lea rcx, [rsp + 0x58]
call fcn.18006df30
xor r11d, r11d
mov byte [rsp + 0x5b], 0x22
jmp 0x180042001
mov word [rbp - 0x34], r8w
jmp 0x180042012
xorps xmm0, xmm0
mov dword [rsp + 0x60], 3
xor eax, eax
mov dword [rbp + 0x40], 0x68
movups xmmword [rbp + 0x44], xmm0
mov dword [rbp + 0xa4], eax
movups xmmword [rbp + 0x54], xmm0
mov qword [rbp + 0x38], rax
movups xmmword [rbp + 0x64], xmm0
movups xmmword [rbp + 0x74], xmm0
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
movups xmmword [rbp + 0x28], xmm0
jmp 0x180042012
mov rax, qword [rbp + 0x1528]
mov qword [0x1800bb598], rbx
mov eax, dword [rax]
mov dword [0x1800bb5a0], eax
jmp 0x180042012
cmp esi, 0x6eb0
je 0x180041fa2
cmp esi, 0x735c
je 0x180041f9b
cmp esi, 0xacdc
je 0x180041f16
cmp esi, 0xe65c
jne 0x180042012
movsd xmm0, qword [r13]
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x80]
movsd qword [rbp - 0x80], xmm0
mov ecx, 0x31
call fcn.18005b270
lea rax, [rbp - 0x68]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x180041ea1
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x180041ef7
lea rax, [rcx + rdi]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180041ed1
mov rax, qword [rbx]
lea rbx, [rax + rcx]
mov r8, rdi
mov rcx, rbx
lea rdx, [rbp - 0x68]
call fcn.180069040
mov byte [rdi + rbx], 0
xor r11d, r11d
mov rbx, qword [rbp + 0x1500]
jmp 0x180042001
lea r9, [rbp - 0x68]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.180002900
xor r11d, r11d
jmp 0x180042001
mov byte [rsp + 0x5d], 0
lea rax, [rsp + 0x58]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x180041f27
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x180041f7e
lea rax, [rcx + rdi]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180041f57
mov rax, qword [rbx]
lea rbx, [rax + rcx]
mov r8, rdi
mov rcx, rbx
lea rdx, [rsp + 0x58]
call fcn.180069040
mov byte [rbx + rdi], 0
xor r11d, r11d
mov rbx, qword [rbp + 0x1500]
jmp 0x180042001
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.180002900
xor r11d, r11d
jmp 0x180042001
mov byte [rsp + 0x5c], 0x3a
jmp 0x180042012
test r14, r14
je 0x180042012
mov ebx, 0x16
nop dword [rax]
mov eax, ebx
sub eax, 0x15
je 0x180041fe1
cmp eax, 1
jne 0x180041ff3
mov rcx, qword [r14]
test rcx, rcx
je 0x180041fcc
call fcn.1800753b0
xor r11d, r11d
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x180041ff3
or dword [rax + 0xc0], 0x1000
jmp 0x180041ff3
mov rcx, r14
call fcn.18006e620
xor r11d, r11d
mov qword [r13 + 0x90], r11
dec ebx
cmp ebx, 0x14
ja 0x180041fb0
mov rbx, qword [rbp + 0x1500]
mov edx, 0x2e
lea r8d, [rdx + 4]
lea r9d, [rdx + 0x3e]
lea r10d, [rdx + 0x41]
mov rdi, qword [rsp + 0x50]
add esi, r12d
cmp esi, r15d
jbe 0x180041b60
mov r9d, dword [rbp + 0x1518]
mov esi, dword [rsp + 0x60]
mov rdx, qword [rbp + 0x1508]
jmp 0x18004204b
mov rdi, qword [rsp + 0x78]
mov esi, dword [rbp + 0x1518]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x60], esi
lea r14d, [r9 + 0xdbb]
cmp r9d, r14d
jae 0x180042747
mov r15, qword [rbp + 0x1530]
mov ebx, dword [rbp + 0x1518]
mov r12, qword [rbp - 0x58]
nop dword [rax]
cmp r9d, 0x319
ja 0x180042515
je 0x180042504
cmp r9d, 0x177
ja 0x180042255
je 0x180042121
mov eax, r9d
sub eax, 5
je 0x180042115
sub eax, 0x30
je 0x1800420f5
sub eax, 0x89
je 0x1800420c2
cmp eax, 0x30
jne 0x180042717
mov word [rbp - 0x24], r11w
mov word [rbp - 0x50], r11w
jmp 0x180042717
mov ecx, 0xfffffff4
mov word [rbp + 0x80], r11w
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 8]
mov qword [rbp + 0xa0], rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
jmp 0x180042710
mov r8d, 4
mov word [rbp - 0x2c], r11w
lea rdx, [0x180099e92]
lea rcx, [rbp - 0x2c]
call fcn.18006dbdc
jmp 0x180042710
mov dword [rbp + 0x7c], 0x101
jmp 0x180042717
xor r9d, r9d
lea rdx, [rbp + 0x20]
xor r8d, r8d
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov rdx, qword [rbp + 8]
lea r9, [rbp + 0x90]
mov dword [rsp + 0x30], esi
mov r8, rdi
mov dword [rsp + 0x28], 1
mov rcx, rdi
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea r9, [rbp + 0x98]
mov dword [rsp + 0x30], esi
mov r8, rdi
mov dword [rsp + 0x28], 1
mov rcx, rdi
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test r13, r13
jne 0x180042710
mov rcx, qword [rbp + 0x1500]
lea rdx, [0x180099fac]
call fcn.180074370
mov rsi, rax
test rax, rax
je 0x180042710
mov edi, 0xa
mov ecx, edi
sub ecx, 0xa
je 0x180042223
sub ecx, 1
je 0x18004221a
sub ecx, 1
je 0x1800421d8
cmp ecx, 1
jne 0x180042240
mov rcx, rsi
call fcn.1800753b0
jmp 0x180042240
cmp byte [rbp + 0xd0], 0x23
jne 0x180042240
cmp byte [rbp + 0xd1], 0x21
jne 0x180042240
movzx eax, byte [rbp + 0xd2]
lea r13, [rbp + 0xd2]
test al, al
je 0x180042240
nop dword [rax]
movzx ecx, al
call fcn.18006d5e0
test eax, eax
je 0x180042240
movzx eax, byte [r13 + 1]
inc r13
test al, al
jne 0x180042200
jmp 0x180042240
mov byte [rbp + 0x2c3], 0
jmp 0x180042240
mov r8, rsi
mov word [rbp + 0xd0], 0
mov edx, 0x1f4
lea rcx, [rbp + 0xd0]
call fcn.180075708
inc edi
cmp edi, 0xe
jb 0x1800421b8
mov rdi, qword [rsp + 0x50]
jmp 0x180042710
mov eax, r9d
sub eax, 0x1a7
je 0x1800424e2
sub eax, 0x89
je 0x180042450
sub eax, 0x30
je 0x180042446
cmp eax, 0x89
jne 0x180042717
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0xce0]
xor edx, edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov qword [rsp + 0x68], 0x1f4
mov r8d, 0x137
lea rcx, [rsp + 0x68]
call fcn.1800244e0
test r13, r13
je 0x180042312
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x8e0]
mov qword [rsp + 0x20], r13
xor edx, edx
mov qword [rsp + 0x68], 0x1f4
mov ecx, 0xd1
call fcn.180016990
lea rax, [rbp + 0x6e0]
mov edx, 0x1f4
lea r9, [rbp + 0x8e0]
mov qword [rsp + 0x20], rax
lea r8, str._s___s_
lea rcx, [rbp + 0x4e0]
call fcn.1800644d0
jmp 0x180042331
lea r9, [rbp + 0x6e0]
mov edx, 0x1f4
lea r8, str.__s_
lea rcx, [rbp + 0x4e0]
call fcn.1800644d0
lea rax, [rbp + 0x4e0]
mov qword [rsp + 0x68], 0x1f4
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x68]
lea rax, [rbp + 0x10d0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov r8d, 0x137
call fcn.1800244e0
lea rax, [rbp + 0x28]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x10d0]
lea rax, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp + 0xce0]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x1528]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180042427
mov rax, qword [rbp + 0x10]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], rax
lea rdx, [0x180057b70]
mov rax, qword [r15]
mov r9d, 0x12f
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.1800451f0
mov rax, qword [rbp + 0x18]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x68], rax
lea rdx, [0x180057b40]
mov rax, qword [r15]
mov r9d, 0x12f
mov qword [rsp + 0x70], rax
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.1800451f0
jmp 0x180042710
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r15]
call qword [rbp - 0x60]
jmp 0x180042710
mov word [rbp - 0x48], r11w
jmp 0x180042717
mov rax, qword [rbp + 0x1500]
lea r8, str._s__s
mov r9, rdx
mov qword [rsp + 0x20], rax
mov edx, 0x1f4
lea rcx, [rbp + 0xd0]
call fcn.1800644d0
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x70], 0x1f4
xor esi, esi
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rsi
lea r8, [rbp + 0x6e0]
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xd1
call fcn.180016990
mov rax, qword [rbp + 0x1508]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rsi
lea r8, [rbp + 0xae0]
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xd1
mov qword [rsp + 0x70], 0x1f4
call fcn.180016990
jmp 0x180042710
mov r8d, 2
lea rdx, [0x180099da6]
lea rcx, [rbp - 0x50]
call fcn.18006db94
mov dword [rbp - 0x4c], 0x5f0032
jmp 0x180042710
mov dword [rbp - 0x48], 0x320033
mov word [rbp - 0x44], r11w
jmp 0x180042717
cmp r9d, 0x544
ja 0x1800425a4
je 0x18004259a
mov eax, r9d
sub eax, 0x3a2
je 0x18004257b
sub eax, 0x30
je 0x180042560
sub eax, 0x89
je 0x18004273d
cmp eax, 0x30
jne 0x180042717
mov eax, dword [0x180099f1e]
mov dword [rbp - 0x42], eax
movzx eax, word [0x180099f22]
mov word [rbp - 0x3e], ax
jmp 0x180042717
mov r8d, 1
lea rdx, [0x180099df6]
lea rcx, [rbp - 0x50]
call fcn.18006db94
jmp 0x180042710
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180042710
mov word [rbp - 0x3c], r11w
jmp 0x180042717
cmp r9d, 0x5fd
je 0x1800426bf
cmp r9d, 0x6b6
je 0x180042617
cmp r9d, 0x76f
je 0x1800425d5
cmp r9d, 0x828
je 0x180042747
jmp 0x180042717
mov ecx, dword [r13]
lea rax, [rsp + 0x78]
inc ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp + 0x2d0]
xor r8d, r8d
call qword [rbp - 0x58]
cmp eax, 0xffffffff
je 0x180042743
mov rcx, qword [r13]
lea rdx, [rbp + 0x2d0]
call r12
test eax, eax
sete byte [rbp - 0x80]
jmp 0x180042710
mov ecx, r11d
mov r8d, 0x2c
mov dword [rbp + 0x2d0], ecx
mov eax, r8d
sub eax, 0x2c
je 0x18004266c
sub eax, 0x7f
je 0x180042694
sub eax, 0x7f
je 0x180042664
cmp eax, 0x7f
jne 0x18004269a
cmp ebx, ecx
jne 0x18004269a
cmp ecx, 0x40
jae 0x18004269a
mov rax, qword [r13]
mov ecx, ebx
mov qword [rbp + rcx*8 + 0x2d8], rax
mov ecx, dword [rbp + 0x2d0]
inc ecx
mov dword [rbp + 0x2d0], ecx
jmp 0x18004269a
mov r9d, 0x6b6
jmp 0x18004269a
mov ebx, r11d
test ecx, ecx
je 0x18004269a
mov rdx, qword [r13]
nop word [rax + rax]
mov eax, ebx
cmp qword [rbp + rax*8 + 0x2d8], rdx
je 0x180042694
inc ebx
cmp ebx, ecx
jb 0x180042680
jmp 0x18004269a
mov r8d, 0xab
add r8d, 0x7f
cmp r8d, 0x228
jb 0x180042626
mov rax, qword [rbp + 0x1500]
mov qword [rsp + 0x78], r11
mov eax, dword [rax]
mov dword [rsp + 0x78], eax
jmp 0x180042717
mov qword [rsp + 0x30], r11
lea r8, [rbp - 0x20]
mov qword [rsp + 0x28], r11
lea rcx, [rbp - 0x38]
xor r9d, r9d
mov dword [rsp + 0x20], 0xe9
xor edx, edx
call fcn.18000df30
mov r12, rax
lea rcx, [rbp - 0x50]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xe9
lea r8d, [rax + 0x12]
call fcn.18000df30
mov qword [rbp - 0x58], rax
mov r9d, dword [rbp + 0x1518]
add r9d, 0xb9
mov dword [rbp + 0x1518], r9d
cmp r9d, r14d
jae 0x180042747
mov esi, dword [rsp + 0x60]
xor r11d, r11d
mov rdx, qword [rbp + 0x1508]
jmp 0x180042070
mov rax, qword [rbp + 0x28]
jmp 0x18004274b
mov byte [rbp - 0x80], 1
mov rax, qword [rbp - 0x80]
mov rbx, qword [rsp + 0x1610]
add rsp, 0x15c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret