Function at 0x140002280
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp - 8], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov ecx, 0x30
call sub.msvcrt.dll_malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400022bf
mov eax, 0
jmp 0x14000251a
mov rax, qword [rbp - 8]
mov qword [rax], 0
mov rax, qword [rbp - 8]
mov qword [rax + 8], 0
mov dword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 1
mov rax, qword [rbp - 8]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x140002374
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.Failed_to_create_shell_stdout_pipe__error___s
mov rcx, rax
call fcn.140003222
jmp 0x140002497
mov rax, qword [rbp - 8]
lea rdx, [rax + 8]
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x140002400
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.Failed_to_create_shell_stdin_pipe__error___s
mov rcx, rax
call fcn.140003222
jmp 0x140002497
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.140002921
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x10], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140002482
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.Failed_to_execute_shell
mov rcx, rax
call fcn.140003222
jmp 0x140002497
mov rax, qword [rbp - 8]
mov qword [rax + 0x18], 0xffffffffffffffff
mov rax, qword [rbp - 8]
jmp 0x14000251a
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x1400024b0
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1400024c9
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
je 0x1400024e8
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
test rax, rax
je 0x140002509
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
ret