Function at 0x140003530
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1180]
mov eax, 0x1280
call fcn.140036ba0
sub rsp, rax
mov rax, qword [0x140083100]
xor rax, rsp
mov qword [rbp + 0x1170], rax
mov rbx, rcx
mov qword [rsp + 0x78], rcx
xor r15d, r15d
mov dword [rsp + 0x70], r15d
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x68], xmm1
mov rax, qword [rdx + 0x10]
cmp rax, 8
jb 0x140003c84
add rax, 0xfffffffffffffff8
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
cmp qword [rdx + 0x18], 0xf
jbe 0x1400035b1
mov rdx, qword [rdx]
add rdx, 8
lea rcx, [rbp + 0x58]
call fcn.140002950
nop
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rdx, qword [rbp + 0x58]
mov r14, qword [rbp + 0x68]
add r14, rdx
lea rdi, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rdi, qword [rbp + 0x58]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r12d, 0xa
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
cmp rdi, r14
jne 0x14000360e
mov word [rsp + 0x50], r15w
jmp 0x14000370f
sub r14, rdi
movabs rax, 0x7ffffffffffffffe
cmp r14, rax
ja 0x140003c8a
mov esi, 7
cmp r14, rsi
jbe 0x1400036d4
mov rsi, r14
or rsi, 7
cmp rsi, rax
jbe 0x140003691
mov rsi, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x1400036c3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003c96
mov rcx, rax
call fcn.1400361a0
mov rcx, rax
test rax, rax
je 0x140003c90
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rsi
jmp 0x1400036d9
cmp rsi, r12
cmovb rsi, r12
lea rcx, [rsi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140003c96
add rcx, rcx
jne 0x14000364f
mov rax, r15
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rsi
jmp 0x1400036d9
call fcn.1400361a0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rsi
jmp 0x1400036d9
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x50]
cmp rsi, 7
cmova r8, rax
mov rcx, r8
mov rdx, r14
test r14, r14
je 0x140003705
movsx eax, byte [rdi]
mov word [rcx], ax
lea rcx, [rcx + 2]
lea rdi, [rdi + 1]
sub rdx, 1
jne 0x1400036f1
mov qword [rsp + 0x60], r14
mov word [r8 + r14*2], r15w
lea r8, [rsp + 0x50]
lea rdx, str.cmd__C
lea rcx, [rbp + 0x38]
call fcn.140005050
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140003767
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003762
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c9c
call fcn.1400361dc
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r15w
mov dword [rbp - 0x70], 0x18
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], 1
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140003889
mov r8d, 0x16
lea rdx, str.Failed_to_create_pipe.
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov rcx, rbx
call fcn.140002950
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 7
jbe 0x14000380e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x38]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140003809
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c78
call fcn.1400361dc
movdqa xmm0, xmmword [0x140077360]
movdqu xmmword [rbp + 0x48], xmm0
mov word [rbp + 0x38], r15w
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x14000385b
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003856
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c7e
call fcn.1400361dc
mov rax, rbx
mov rcx, qword [rbp + 0x1170]
xor rcx, rsp
call fcn.140036180
lea r11, [rsp + 0x1280]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rbp - 0x40], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
mov dword [rbp - 4], 0x100
mov rax, qword [rbp - 0x78]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 7
cmova rdx, qword [rbp + 0x38]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rbp - 0x78]
test eax, eax
jne 0x140003942
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x1a
lea rdx, str.Failed_to_execute_command.
jmp 0x1400037b7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x80]
call fcn.140062f70
lea rcx, [rbp + 0x80]
call fcn.140004600
nop
xor dil, dil
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x30]
mov r8d, 0xfff
lea rdx, [rbp + 0x170]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400039e5
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1400039e5
cmp rax, 0x1000
jae 0x140003ca2
mov byte [rbp + rax + 0x170], 0
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x80]
call fcn.140005190
mov dil, 1
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x30]
mov r8d, 0xfff
lea rdx, [rbp + 0x170]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003990
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x140003b45
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x70], r12d
movups xmmword [rsp + 0x50], xmm0
mov rcx, qword [rbp + 0xf8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140003a76
mov rax, qword [rbp + 0xc8]
mov r8, qword [rax]
test r8, r8
je 0x140003a76
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xf0]
cmovb r8, qword [rbp + 0xf0]
sub r8, rdx
jmp 0x140003ab0
test cl, 4
jne 0x140003aa6
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140003aa6
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xd8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140003ab0
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140003abe
mov rcx, rbx
call fcn.140004d90
nop
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x7c], edx
lea rcx, [rbp + 0x88]
call fcn.1400042e0
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x7c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x108], rax
lea rcx, [rbp + 0x108]
call fcn.140033df4
nop
jmp 0x1400037ce
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov r8d, 0x16
lea rdx, str.Executed_successfully.
mov rcx, rbx
call fcn.140002950
nop
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x7c], edx
lea rcx, [rbp + 0x88]
call fcn.1400042e0
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x7c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x108], rax
lea rcx, [rbp + 0x108]
call fcn.140033df4
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 7
jbe 0x140003c27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c78
call fcn.1400361dc
movdqa xmm0, xmmword [0x140077360]
movdqu xmmword [rbp + 0x48], xmm0
mov word [rbp + 0x38], r15w
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x14000385b
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003856
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c7e
jmp 0x140003856
call fcn.14003c334
nop
call fcn.14003c334
int3
call fcn.140004ef0
nop
call fcn.140001980
int3
call fcn.14003c334
int3
call fcn.1400018e0
nop
call fcn.14003c334
nop
call fcn.140036318
int3