Function at 0x1400cc620
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1440]
mov eax, 0x1540
call fcn.1400e6f00
sub rsp, rax
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp + 0x1430], rax
movzx ebx, r9b
mov r14d, r8d
mov rdi, rdx
mov r13, rcx
mov rax, qword [rbp + 0x14a8]
mov qword [rsp + 0x50], rax
movzx r12d, byte [rbp + 0x14a0]
mov rsi, qword [rbp + 0x14b0]
xor r9d, r9d
mov r15d, r9d
mov qword [rsp + 0x60], r9
mov edx, r9d
mov qword [rsp + 0x68], rdx
mov r8d, r9d
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x58], r9
test rax, rax
je 0x1400cc73e
mov dword [rsp + 0x78], DispGetParam
mov dword [rbp - 0x78], 1
mov qword [rbp - 0x80], r9
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400cc71b
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400cc71b
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400cc71b
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400cc72c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test eax, eax
jne 0x1400cca3f
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rax, qword [rsp + 0x50]
xor r9d, r9d
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
mov dword [rbp - 0xc], ecx
mov dword [rbp - 0x70], 0x68
mov ecx, dword [rbp - 0x34]
test bl, bl
je 0x1400cc777
mov word [rbp - 0x30], r9w
or ecx, 1
mov dword [rbp - 0x34], ecx
mov ebx, r9d
test rax, rax
je 0x1400cc7a1
mov rax, r9
test r12b, r12b
cmovne rax, rdx
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], r8
bts ecx, 8
mov dword [rbp - 0x34], ecx
mov ebx, 1
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov r8, r13
lea rdx, str.__s_
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
test rdi, rdi
je 0x1400cc7f9
cmp word [rdi], 0
je 0x1400cc7f9
lea r8, [0x14027100c]
mov edx, 0x208
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rdi
mov edx, 0x208
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400cca36
mov r12, qword [rsp + 0x50]
test r12, r12
je 0x1400cc9f5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp + 0x430]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cca1f
lea r14d, [r13 + 0x16]
nop dword [rax + rax]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400cca1f
mov ebx, eax
mov qword [rbp], r13
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], SafeArrayGetLBound
mov byte [rbp], 0
cmp rax, 0xf
ja 0x1400cc902
mov qword [rbp + 0x10], rax
mov r8d, eax
lea rdx, [rbp + 0x430]
lea rcx, [rbp]
call fcn.1400f9752
mov byte [rbp + rbx], 0
mov rsi, qword [rbp + 0x18]
mov rbx, qword [rbp + 0x10]
mov rdi, qword [rbp]
jmp 0x1400cc974
mov rsi, rbx
or rsi, 0xf
cmp rsi, 0x16
cmovb rsi, r14
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x1400cc94a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400ccaac
mov rcx, rax
call fcn.1400e69ec
test rax, rax
je 0x1400cc9ee
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400cc952
call fcn.1400e69ec
mov rdi, rax
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rsi
mov r8, rbx
lea rdx, [rbp + 0x430]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 0
mov qword [rbp], rdi
lea rdx, [rbp]
cmp rsi, 0x10
cmovae rdx, rdi
mov r8, rbx
mov rcx, r12
call fcn.140081020
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x1400cc9c3
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc9be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc9ee
call fcn.1400e6a28
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp + 0x430]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cca1f
jmp 0x1400cc8b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r14d, r14d
je 0x1400cca1f
mov edx, r14d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400cca1f
test rsi, rsi
je 0x1400cca1f
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400cca3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400cca4f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400cca5f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400cca6f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400cca7f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r15d
mov rcx, qword [rbp + 0x1430]
xor rcx, rsp
call fcn.1400e6b50
mov rbx, qword [rsp + 0x1598]
add rsp, 0x1540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140052100
int3