Function at 0x1400024fa
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push rbp
mov eax, 0x2150
call fcn.140003b50
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20e0], rcx
mov dword [rbp + 0x2080], 0x18
mov qword [rbp + 0x2088], 0
mov dword [rbp + 0x2090], 1
lea rcx, [rbp + 0x2080]
lea rdx, [rbp + 0x20a0]
lea rax, [rbp + 0x20a8]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
je 0x1400028c7
lea rax, [rbp + 0x2010]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp + 0x2010], 0x68
mov dword [rbp + 0x204c], 0x101
mov word [rbp + 0x2050], 0
mov rax, qword [rbp + 0x20a0]
mov qword [rbp + 0x2068], rax
mov rax, qword [rbp + 0x20a0]
mov qword [rbp + 0x2070], rax
lea rax, [rbp + 0x1ff0]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp + 0xff0]
mov r9, qword [rbp + 0x20e0]
lea r8, str.cmd.exe__C__s
mov edx, 0x1000
mov rcx, rax
call fcn.1400015e4
lea rax, [rbp + 0xff0]
lea rdx, [rbp + 0x1ff0]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x2010]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x140002684
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x20a8]
mov rcx, rax
call rdx
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x20a0]
mov rcx, rax
call rdx
jmp 0x1400028c8
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x20a0]
mov rcx, rax
call rdx
mov r8, qword [0x14000f088]
mov rax, qword [rbp + 0x1ff0]
mov edx, 0xffffffff
mov rcx, rax
call r8
mov rax, qword [rbp + 0x1ff0]
lea rdx, [rbp + 0xfec]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call rax
test eax, eax
je 0x1400026e2
mov eax, dword [rbp + 0xfec]
mov edx, eax
lea rcx, str.Process_exited_with_code__lu_n
call fcn.140001550
mov qword [rbp + 0x20c8], 0x1000
mov rax, qword [rbp + 0x20c8]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x20c0], rax
cmp qword [rbp + 0x20c0], 0
jne 0x14000274b
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x1ff0]
mov rcx, rax
call rdx
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x1ff8]
mov rcx, rax
call rdx
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x20a8]
mov rcx, rax
call rdx
jmp 0x1400028c8
mov qword [rbp + 0x20b8], 0
mov rax, qword [rbp + 0x20a8]
lea rcx, [rbp - 0x24]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0xfff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp + 0x20b4], eax
cmp dword [rbp + 0x20b4], 0
je 0x14000285a
mov eax, dword [rbp - 0x24]
test eax, eax
je 0x14000285a
mov eax, dword [rbp - 0x24]
mov edx, eax
mov rax, qword [rbp + 0x20b8]
add rax, rdx
cmp qword [rbp + 0x20c8], rax
ja 0x140002825
shl qword [rbp + 0x20c8], 1
mov rdx, qword [rbp + 0x20c8]
mov rax, qword [rbp + 0x20c0]
mov rcx, rax
call sub.msvcrt.dll_realloc
mov qword [rbp + 0x20c0], rax
cmp qword [rbp + 0x20c0], 0
jne 0x140002825
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x1ff0]
mov rcx, rax
call rdx
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x1ff8]
mov rcx, rax
call rdx
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x20a8]
mov rcx, rax
call rdx
jmp 0x1400028c8
mov eax, dword [rbp - 0x24]
mov r8d, eax
mov rdx, qword [rbp + 0x20c0]
mov rax, qword [rbp + 0x20b8]
lea rcx, [rdx + rax]
lea rax, [rbp - 0x20]
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp - 0x24]
mov eax, eax
add qword [rbp + 0x20b8], rax
jmp 0x140002756
mov rdx, qword [rbp + 0x20c0]
mov rax, qword [rbp + 0x20b8]
add rax, rdx
mov byte [rax], 0
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x1ff0]
mov rcx, rax
call rdx
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x1ff8]
mov rcx, rax
call rdx
mov rdx, qword [0x14000f090]
mov rax, qword [rbp + 0x20a8]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x20c0]
mov rcx, rax
call fcn.1400022f8
mov rax, qword [rbp + 0x20c0]
mov rcx, rax
call sub.msvcrt.dll_free
jmp 0x1400028c8
nop
add rsp, 0x2150
pop rbp
ret