Function at 0x14000957c
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x140134040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0xf8], 0
je 0x1400095df
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
jmp 0x1400095e8
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xd0]
test eax, eax
je 0x14000960a
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
jmp 0x140009613
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xe0]
add rax, 0xd8
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call fcn.140006f64
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0xb0]
mov edx, 0x8000000
mov rcx, qword [rsp + 0x68]
call fcn.14006ce80
movzx eax, al
test eax, eax
jne 0x140009694
xor edx, edx
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0x58]
call fcn.140050a54
jmp 0x140009892
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0xf8], 0
je 0x1400096e9
cmp qword [rsp + 0xa8], 0
je 0x1400096e9
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rsp + 0xe0]
mov r8d, dword [rax + 0x100]
mov rax, qword [rsp + 0xe0]
mov rdx, qword [rax + 0xf8]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xd0]
test eax, eax
je 0x140009872
cmp qword [rsp + 0xa0], 0
je 0x140009872
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x5e], 1
mov ecx, 0x1000
call fcn.1400d93a0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
cmp eax, 1
je 0x140009838
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb8]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x14000977b
jmp 0x140009838
cmp dword [rsp + 0xb8], 0
jne 0x1400097c3
lea rdx, [rsp + 0xbc]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400097a4
jmp 0x140009838
cmp dword [rsp + 0xbc], 0x103
jne 0x1400097c1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009734
jmp 0x140009838
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb8]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0xe0]
mov byte [rcx + 0x5d], al
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x5d]
test eax, eax
jne 0x14000980a
jmp 0x140009838
mov rax, qword [rsp + 0xe0]
add rax, 0x68
mov rcx, rax
call fcn.14000169c
mov r8d, dword [rsp + 0xb8]
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.14000de6c
jmp 0x140009734
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400d936c
cmp qword [rsp + 0x58], 0
jne 0x14000985f
mov qword [rsp + 0x78], 0
jmp 0x140009872
mov qword [rsp + 0x40], 0x8123
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, 1
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0x58]
call fcn.140050a54
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400d9310
add rsp, 0xd8
ret