Function at 0x140244370
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 [0x1404f4fb8]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rbx, rcx
xor sil, sil
mov rax, qword [0x14051d560]
test rax, rax
jne 0x1402443c0
call fcn.14002ccd0
mov qword [0x14051d560], rax
mov rdi, rax
xor r14d, r14d
mov word [rbp + 0x60], r14w
mov byte [rbp + 0x77], reloc.WS2_32.dll_inet_addr
test rax, rax
jne 0x1402443e0
call fcn.14002ccd0
mov qword [0x14051d560], 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], reloc.WS2_32.dll_inet_addr
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 0x140244443
call fcn.14002ccd0
mov qword [0x14051d560], rax
mov rdi, rax
mov word [rbp + 0x290], r14w
mov byte [rbp + 0x2a7], reloc.WS2_32.dll_inet_addr
test rax, rax
jne 0x140244466
call fcn.14002ccd0
mov qword [0x14051d560], 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], reloc.WS2_32.dll_inet_addr
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.140240b60
lea rdx, [rbx + 0x50]
lea r8, [rbp + 0x290]
mov rcx, rbx
call fcn.140240cd0
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], 0x18
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 0x14024494e
test dil, dil
je 0x14024494e
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 0x14024460c
mov rdx, qword [rdx]
lea rcx, [rbx + 0x50]
movzx eax, byte [rcx + 0x17]
shr al, 7
test al, 1
je 0x14024461e
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 0x140244933
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 0x1402446b7
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x18], r15
jne 0x1402446c3
mov qword [rbx + 0x20], r15
jmp 0x1402446da
mov rcx, rbx
call fcn.140240f10
imul rcx, qword [rbx + 0x18], 0x3e8
add rax, rcx
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x28], r15
jne 0x1402446e6
mov qword [rbx + 0x30], r15
jmp 0x1402446fd
mov rcx, rbx
call fcn.140240f10
imul rcx, qword [rbx + 0x28], 0x3e8
add rax, rcx
mov qword [rbx + 0x30], rax
cmp dword [rbx + 0x10], 0
jne 0x14024470a
mov dword [rbx + 0x10], 1
movzx eax, byte [rbx + 0x48]
test al, al
je 0x1402448a0
cmp qword [rbx + 0x38], 0
je 0x140244732
mov rax, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
call rax
test al, al
jne 0x14024488b
mov rax, qword [rbx + 0x30]
cmp qword [rbx + 0x20], rax
jge 0x140244742
mov rdi, qword [rbx + 0x20]
jmp 0x140244746
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 0x1402448a0
cmp byte [rbx + 0x6f0], 0
je 0x1402447e4
mov edx, 0xc8
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x1402447b3
lea rdx, [rbp + 0x4c0]
mov rcx, rbx
call fcn.140244a60
jmp 0x140244875
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x6f8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140244875
cmp dword [rsp + 0x50], 0x103
je 0x140244875
mov byte [rbx + 0x48], 0
jmp 0x140244875
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 0x140244815
cmp dword [rsp + 0x50], 0x103
je 0x140244815
mov byte [rbx + 0x48], 0
jmp 0x140244875
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rbx + 9], 0
je 0x140244875
test eax, eax
jne 0x14024482b
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 0x140244875
mov rdx, qword [rsp + 0x70]
lea rcx, [0x1403778e0]
call fcn.1400c4880
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call fcn.140245180
movzx eax, byte [rbx + 0x48]
test al, al
jne 0x140244716
jmp 0x1402448a0
mov sil, 1
cmp byte [rbx + 9], 0
je 0x1402448a0
lea rcx, str.Cancelling_the_run._n
call fcn.1400c4880
movzx eax, byte [rbx + 0x48]
test al, al
je 0x1402448cd
mov byte [rbx + 0x48], 0
mov rax, qword [rbx]
mov rcx, rbx
test sil, sil
je 0x1402448c3
mov dword [rbx + 0x10], 4
call qword [rax + 0x18]
jmp 0x1402448cd
mov dword [rbx + 0x10], 3
call qword [rax + reloc.WS2_32.dll_recv]
cmp qword [rbx + 0x6f8], 0
je 0x1402448ff
mov rcx, qword [rbx + 0x6f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1402448f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140245db0
mov qword [rbx + 0x6f8], r14
cmp qword [rbx + 0x700], 0
je 0x14024494e
mov rcx, qword [rbx + 0x700]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14024492a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140245db0
mov qword [rbx + 0x700], r14
jmp 0x14024494e
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.140245db0
mov rcx, rbx
call fcn.14023b630
mov ebx, dword [rbx + 0xc]
movzx ecx, byte [rbp + 0x2a7]
movzx eax, cl
shr al, 7
test al, 1
je 0x1402449ae
mov r8, qword [rbp + 0x2a0]
and r8, r15
inc r8
shr cl, 7
test cl, 1
je 0x14024498d
mov rdx, qword [rbp + 0x290]
test rdx, rdx
je 0x1402449ae
jmp 0x140244994
lea rdx, [rbp + 0x290]
cmp rdx, qword [rbp + 0x2b8]
je 0x1402449ae
mov rcx, qword [rbp + 0x2a8]
mov rax, qword [rcx]
add r8, r8
call qword [rax + 0x18]
nop
movzx ecx, byte [rbp + 0x77]
movzx eax, cl
shr al, 7
test al, 1
je 0x1402449f3
mov r8, qword [rbp + 0x70]
and r8, r15
inc r8
shr cl, 7
test cl, 1
je 0x1402449d9
mov rdx, qword [rbp + 0x60]
test rdx, rdx
jne 0x1402449dd
jmp 0x1402449f3
lea rdx, [rbp + 0x60]
cmp rdx, qword [rbp + 0x88]
je 0x1402449f3
mov rcx, qword [rbp + 0x78]
mov rax, qword [rcx]
add r8, r8
call qword [rax + 0x18]
mov eax, ebx
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140233ef0
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