Function at 0x14009fa20
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rbx, rcx
xor sil, sil
mov rax, qword [0x140400880]
test rax, rax
jne 0x14009fa70
call fcn.140047f70
mov qword [0x140400880], rax
mov rdi, rax
xor r14d, r14d
mov word [rbp + 0x60], r14w
mov byte [rbp + 0x77], 0xb
test rax, rax
jne 0x14009fa90
call fcn.140047f70
mov qword [0x140400880], rax
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x80], r14d
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x88], rcx
mov qword [rbp + 0x78], rdi
mov dword [rbp + 0x80], r14d
mov word [rbp + 0x60], r14w
mov byte [rbp + 0x77], 0xb
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x60], rcx
movabs r15, 0x80000000000000ff
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x68], r14
mov word [rbp + 0x90], r14w
test rax, rax
jne 0x14009faf3
call fcn.140047f70
mov qword [0x140400880], rax
mov rdi, rax
mov word [rbp + 0x290], r14w
mov byte [rbp + 0x2a7], recvfrom
test rax, rax
jne 0x14009fb16
call fcn.140047f70
mov qword [0x140400880], rax
mov qword [rbp + 0x2a8], rax
mov dword [rbp + 0x2b0], r14d
lea rax, [rbp + 0x2c0]
mov qword [rbp + 0x2b8], rax
mov qword [rbp + 0x2a8], rdi
mov dword [rbp + 0x2b0], r14d
mov word [rbp + 0x290], r14w
mov byte [rbp + 0x2a7], recvfrom
lea rax, [rbp + 0x2c0]
mov qword [rbp + 0x290], rax
mov qword [rbp + 0x2a0], r15
mov qword [rbp + 0x298], r14
mov word [rbp + 0x2c0], r14w
lea rdx, [rbx + 0x50]
lea r8, [rbp + 0x60]
mov rcx, rbx
call fcn.14009c200
lea rdx, [rbx + 0x50]
lea r8, [rbp + 0x290]
mov rcx, rbx
call fcn.14009c370
mov dil, 1
mov edx, 1
lea rcx, [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea rax, [rbp + 0x30]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x78], SafeArrayPutElement
mov dword [rbp - 0x78], 1
lea rdx, [rbx + 0x760]
lea rcx, [rbx + 0x750]
xor r9d, r9d
lea r8, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
movzx edi, dil
test eax, eax
cmove edi, r14d
lea rdx, [rbx + 0x758]
lea rcx, [rbx + 0x768]
xor r9d, r9d
lea r8, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
movabs r15, 0x7fffffffffffffff
test eax, eax
je 0x14009fffe
test dil, dil
je 0x14009fffe
movzx eax, byte [rbx + 0x6f0]
neg al
sbb r9d, r9d
and r9d, 2
movzx eax, byte [rbx + 0xa]
neg al
sbb ecx, ecx
and ecx, 0x10
or r9d, ecx
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 0x100
mov rax, qword [rbx + 0x758]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbx + 0x750]
mov qword [rbp - 0x20], rax
mov byte [rbx + 0x48], 1
movzx eax, byte [rbp + 0x77]
shr al, 7
lea r10, [rbp + 0x60]
test al, al
cmovne r10, qword [rbp + 0x60]
lea rdx, [rbx + 0x280]
movzx eax, byte [rdx + 0x17]
shr al, 7
test al, 1
je 0x14009fcbc
mov rdx, qword [rdx]
lea rcx, [rbx + 0x50]
movzx eax, byte [rcx + 0x17]
shr al, 7
test al, 1
je 0x14009fcce
mov rcx, qword [rcx]
lea rax, [rbx + 0x6f8]
lea r8, [rbx + 0x710]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
test al, al
je 0x14009ffe3
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x58], eax
movabs r12, 0x346dc5d63886594b
mov rax, r12
imul qword [rsp + 0x58]
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbx + 0x4b0], rdx
mov rax, qword [rbx + 0x18]
cmp qword [rbx + 0x28], rax
jge 0x14009fd67
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x18], r15
jne 0x14009fd73
mov qword [rbx + 0x20], r15
jmp 0x14009fd8a
mov rcx, rbx
call fcn.14009c5b0
imul rcx, qword [rbx + 0x18], 0x3e8
add rax, rcx
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x28], r15
jne 0x14009fd96
mov qword [rbx + 0x30], r15
jmp 0x14009fdad
mov rcx, rbx
call fcn.14009c5b0
imul rcx, qword [rbx + 0x28], 0x3e8
add rax, rcx
mov qword [rbx + 0x30], rax
cmp dword [rbx + 0x10], 0
jne 0x14009fdba
mov dword [rbx + 0x10], 1
movzx eax, byte [rbx + 0x48]
test al, al
je 0x14009ff50
cmp qword [rbx + 0x38], 0
je 0x14009fde2
mov rax, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
call rax
test al, al
jne 0x14009ff3b
mov rax, qword [rbx + 0x30]
cmp qword [rbx + 0x20], rax
jge 0x14009fdf2
mov rdi, qword [rbx + 0x20]
jmp 0x14009fdf6
mov rdi, qword [rbx + 0x30]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x58], eax
mov rax, r12
imul qword [rsp + 0x58]
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, rdi
jge 0x14009ff50
cmp byte [rbx + 0x6f0], 0
je 0x14009fe94
mov edx, 0xc8
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x14009fe63
lea rdx, [rbp + 0x4c0]
mov rcx, rbx
call fcn.1400a0110
jmp 0x14009ff25
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x6f8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14009ff25
cmp dword [rsp + 0x50], 0x103
je 0x14009ff25
mov byte [rbx + 0x48], 0
jmp 0x14009ff25
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x6f8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14009fec5
cmp dword [rsp + 0x50], 0x103
je 0x14009fec5
mov byte [rbx + 0x48], 0
jmp 0x14009ff25
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rbx + 9], 0
je 0x14009ff25
test eax, eax
jne 0x14009fedb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x14009ff25
mov rdx, qword [rsp + 0x70]
lea rcx, [0x1402990b0]
call fcn.1400b4070
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call fcn.1400a0830
movzx eax, byte [rbx + 0x48]
test al, al
jne 0x14009fdc6
jmp 0x14009ff50
mov sil, 1
cmp byte [rbx + 9], 0
je 0x14009ff50
lea rcx, str.Cancelling_the_run._n
call fcn.1400b4070
movzx eax, byte [rbx + 0x48]
test al, al
je 0x14009ff7d
mov byte [rbx + 0x48], 0
mov rax, qword [rbx]
mov rcx, rbx
test sil, sil
je 0x14009ff73
mov dword [rbx + 0x10], 4
call qword [rax + SafeArrayPutElement]
jmp 0x14009ff7d
mov dword [rbx + 0x10], 3
call qword [rax + reloc.WS2_32.dll_recv]
cmp qword [rbx + 0x6f8], 0
je 0x14009ffaf
mov rcx, qword [rbx + 0x6f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14009ffa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400a1460
mov qword [rbx + 0x6f8], r14
cmp qword [rbx + 0x700], 0
je 0x14009fffe
mov rcx, qword [rbx + 0x700]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14009ffda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400a1460
mov qword [rbx + 0x700], r14
jmp 0x14009fffe
mov dword [rbx + 0xc], 0xffffffff
mov byte [rbx + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400a1460
mov rcx, rbx
call fcn.140096c80
mov ebx, dword [rbx + 0xc]
movzx ecx, byte [rbp + 0x2a7]
movzx eax, cl
shr al, 7
test al, 1
je 0x1400a005e
mov r8, qword [rbp + 0x2a0]
and r8, r15
inc r8
shr cl, 7
test cl, 1
je 0x1400a003d
mov rdx, qword [rbp + 0x290]
test rdx, rdx
je 0x1400a005e
jmp 0x1400a0044
lea rdx, [rbp + 0x290]
cmp rdx, qword [rbp + 0x2b8]
je 0x1400a005e
mov rcx, qword [rbp + 0x2a8]
mov rax, qword [rcx]
add r8, r8
call qword [rax + SafeArrayPutElement]
nop
movzx ecx, byte [rbp + 0x77]
movzx eax, cl
shr al, 7
test al, 1
je 0x1400a00a3
mov r8, qword [rbp + 0x70]
and r8, r15
inc r8
shr cl, 7
test cl, 1
je 0x1400a0089
mov rdx, qword [rbp + 0x60]
test rdx, rdx
jne 0x1400a008d
jmp 0x1400a00a3
lea rdx, [rbp + 0x60]
cmp rdx, qword [rbp + 0x88]
je 0x1400a00a3
mov rcx, qword [rbp + 0x78]
mov rax, qword [rcx]
add r8, r8
call qword [rax + SafeArrayPutElement]
mov eax, ebx
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.1401f11e0
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret