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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x550
mov rax, qword [0x1401e2218]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov dword [rsp + 0x54], 0
mov edx, 8
lea rcx, [rsp + 0x128]
call fcn.14000f440
lea rcx, [rsp + 0x128]
call fcn.1400b4ca0
nop
mov dword [rsp + 0x80], 0x18
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x90], 1
mov qword [rsp + 0x88], 0
xor r9d, r9d
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400c85b1
lea rcx, [rsp + 0x128]
call fcn.140008fb0
mov rdx, rax
mov rcx, qword [rsp + 0x560]
call fcn.140009db0
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x128]
call fcn.1400b6630
nop
mov rcx, qword [rsp + 0x568]
call fcn.14000b0e0
mov rax, qword [rsp + 0x560]
jmp 0x1400c889f
mov dword [rsp + 0xb0], 0x68
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov dword [rsp + 0xec], 0x101
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x110], rax
xor eax, eax
mov word [rsp + 0xf0], ax
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x568]
call fcn.140095570
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jne 0x1400c86de
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x128]
call fcn.140008fb0
mov rdx, rax
mov rcx, qword [rsp + 0x560]
call fcn.140009db0
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x128]
call fcn.1400b6630
nop
mov rcx, qword [rsp + 0x568]
call fcn.14000b0e0
mov rax, qword [rsp + 0x560]
jmp 0x1400c889f
mov byte [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x1400c8822
mov edx, 0x32
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400c8711
mov dword [rsp + 0x58], 1
jmp 0x1400c8719
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x50], al
mov dword [rsp + 0x130], 0
mov dword [rsp + 0x120], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x120]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x1400c876a
jmp 0x1400c881d
cmp dword [rsp + 0x120], 0
jne 0x1400c8779
jmp 0x1400c881d
mov eax, dword [rsp + 0x120]
cmp rax, 0x3ff
jbe 0x1400c8793
mov qword [rsp + 0x60], 0x3ff
jmp 0x1400c879f
mov eax, dword [rsp + 0x120]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x130]
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c87d6
cmp dword [rsp + 0x130], 0
jne 0x1400c87d8
jmp 0x1400c881d
mov eax, dword [rsp + 0x130]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0x400
jae 0x1400c87f1
jmp 0x1400c87f6
call fcn.1400f72ac
mov rax, qword [rsp + 0x68]
mov byte [rsp + rax + 0x140], 0
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x128]
call fcn.1400b7970
jmp 0x1400c8722
jmp 0x1400c86e3
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x128]
call fcn.140008fb0
mov rdx, rax
mov rcx, qword [rsp + 0x560]
call fcn.140009db0
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x128]
call fcn.1400b6630
nop
mov rcx, qword [rsp + 0x568]
call fcn.14000b0e0
mov rax, qword [rsp + 0x560]
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.1400f70e0
add rsp, 0x550
pop rdi
ret