Function at 0x140302480
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 [0x14065ef68]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rbx, rcx
xor sil, sil
mov rax, qword [0x1406970c0]
test rax, rax
jne 0x1403024d0
call fcn.140068d80
mov qword [0x1406970c0], 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 0x1403024f0
call fcn.140068d80
mov qword [0x1406970c0], 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 0x140302553
call fcn.140068d80
mov qword [0x1406970c0], rax
mov rdi, rax
mov word [rbp + 0x290], r14w
mov byte [rbp + 0x2a7], reloc.WS2_32.dll_inet_addr
test rax, rax
jne 0x140302576
call fcn.140068d80
mov qword [0x1406970c0], 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.1402fec80
lea rdx, [rbx + 0x50]
lea r8, [rbp + 0x290]
mov rcx, rbx
call fcn.1402fedf0
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 0x140302a5e
test dil, dil
je 0x140302a5e
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 0x14030271c
mov rdx, qword [rdx]
lea rcx, [rbx + 0x50]
movzx eax, byte [rcx + 0x17]
shr al, 7
test al, 1
je 0x14030272e
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 0x140302a43
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 0x1403027c7
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x18], r15
jne 0x1403027d3
mov qword [rbx + 0x20], r15
jmp 0x1403027ea
mov rcx, rbx
call fcn.1402ff030
imul rcx, qword [rbx + 0x18], 0x3e8
add rax, rcx
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x28], r15
jne 0x1403027f6
mov qword [rbx + 0x30], r15
jmp 0x14030280d
mov rcx, rbx
call fcn.1402ff030
imul rcx, qword [rbx + 0x28], 0x3e8
add rax, rcx
mov qword [rbx + 0x30], rax
cmp dword [rbx + 0x10], 0
jne 0x14030281a
mov dword [rbx + 0x10], 1
movzx eax, byte [rbx + 0x48]
test al, al
je 0x1403029b0
cmp qword [rbx + 0x38], 0
je 0x140302842
mov rax, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
call rax
test al, al
jne 0x14030299b
mov rax, qword [rbx + 0x30]
cmp qword [rbx + 0x20], rax
jge 0x140302852
mov rdi, qword [rbx + 0x20]
jmp 0x140302856
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 0x1403029b0
cmp byte [rbx + 0x6f0], 0
je 0x1403028f4
mov edx, 0xc8
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x1403028c3
lea rdx, [rbp + 0x4c0]
mov rcx, rbx
call fcn.140302b70
jmp 0x140302985
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x6f8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140302985
cmp dword [rsp + 0x50], 0x103
je 0x140302985
mov byte [rbx + 0x48], 0
jmp 0x140302985
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 0x140302925
cmp dword [rsp + 0x50], 0x103
je 0x140302925
mov byte [rbx + 0x48], 0
jmp 0x140302985
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rbx + 9], 0
je 0x140302985
test eax, eax
jne 0x14030293b
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 0x140302985
mov rdx, qword [rsp + 0x70]
lea rcx, [0x140487640]
call fcn.140138770
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call fcn.140303290
movzx eax, byte [rbx + 0x48]
test al, al
jne 0x140302826
jmp 0x1403029b0
mov sil, 1
cmp byte [rbx + 9], 0
je 0x1403029b0
lea rcx, str.Cancelling_the_run._n
call fcn.140138770
movzx eax, byte [rbx + 0x48]
test al, al
je 0x1403029dd
mov byte [rbx + 0x48], 0
mov rax, qword [rbx]
mov rcx, rbx
test sil, sil
je 0x1403029d3
mov dword [rbx + 0x10], 4
call qword [rax + 0x18]
jmp 0x1403029dd
mov dword [rbx + 0x10], 3
call qword [rax + reloc.WS2_32.dll_recv]
cmp qword [rbx + 0x6f8], 0
je 0x140302a0f
mov rcx, qword [rbx + 0x6f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140302a08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140303e50
mov qword [rbx + 0x6f8], r14
cmp qword [rbx + 0x700], 0
je 0x140302a5e
mov rcx, qword [rbx + 0x700]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140302a3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140303e50
mov qword [rbx + 0x700], r14
jmp 0x140302a5e
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.140303e50
mov rcx, rbx
call fcn.1402f9780
mov ebx, dword [rbx + 0xc]
movzx ecx, byte [rbp + 0x2a7]
movzx eax, cl
shr al, 7
test al, 1
je 0x140302abe
mov r8, qword [rbp + 0x2a0]
and r8, r15
inc r8
shr cl, 7
test cl, 1
je 0x140302a9d
mov rdx, qword [rbp + 0x290]
test rdx, rdx
je 0x140302abe
jmp 0x140302aa4
lea rdx, [rbp + 0x290]
cmp rdx, qword [rbp + 0x2b8]
je 0x140302abe
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 0x140302b03
mov r8, qword [rbp + 0x70]
and r8, r15
inc r8
shr cl, 7
test cl, 1
je 0x140302ae9
mov rdx, qword [rbp + 0x60]
test rdx, rdx
jne 0x140302aed
jmp 0x140302b03
lea rdx, [rbp + 0x60]
cmp rdx, qword [rbp + 0x88]
je 0x140302b03
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.1402f2210
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