Function at 0x14002c370
Capabilities:
Create pipe
Create process on windows

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x80
mov rsi, r8
mov r12, rdx
mov rdi, rcx
test r8, r8
je 0x14002c734
movzx eax, byte [r8]
cmp al, 0x72
je 0x14002c39e
cmp al, 0x77
jne 0x14002c734
cmp qword [rcx + 0xb8], 0
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
je 0x14002c3d2
call fcn.14002ba00
movzx eax, byte [rsi]
mov byte [rdi + 0x30], al
lea rdx, str.2_1
mov rcx, r12
mov qword [rdi + 0x28], 0xffffffffffffffff
mov qword [rdi + 0x18], 0xffffffffffffffff
mov qword [rdi], 0xffffffffffffffff
mov qword [rdi + 0x20], 0xffffffffffffffff
mov qword [rdi + 0x10], 0xffffffffffffffff
mov qword [rdi + 8], 0xffffffffffffffff
call sub.VCRUNTIME140.dll_strstr
xor r13d, r13d
mov dword [rsp + 0x50], 0x18
test rax, rax
mov qword [rsp + 0x58], r13
mov ebx, r13d
mov dword [rsp + 0x60], 1
setne bl
lea r8, [rsp + 0x50]
xor r9d, r9d
lea rdx, [rdi + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14002c69f
lea rdx, [rdi + 0x18]
mov dword [rsp + 0x50], 0x18
xor r9d, r9d
mov qword [rsp + 0x58], r13
lea r8, [rsp + 0x50]
mov dword [rsp + 0x60], 1
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14002c69f
test ebx, ebx
jne 0x14002c4bb
lea rdx, [rdi + 0x28]
mov dword [rsp + 0x50], 0x18
xor r9d, r9d
mov qword [rsp + 0x58], r13
lea r8, [rsp + 0x50]
mov dword [rsp + 0x60], 1
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14002c69f
lea rcx, [rdi + 0x50]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor eax, eax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
mov qword [rcx + 0x60], rax
mov rax, qword [rdi]
mov qword [rdi + 0xa0], rax
mov dword [rcx], 0x68
mov dword [rdi + 0x8c], 0x100
mov rax, qword [rdi + 0x18]
mov qword [rdi + 0xa8], rax
test ebx, ebx
jne 0x14002c50c
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0xb0], rax
xor r9d, r9d
lea rax, [rdi + 0x38]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, r12
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov r13d, 8
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14002c5ce
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x14002c562
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
mov rcx, qword [rdi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14002c579
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], 0xffffffffffffffff
mov rcx, qword [rdi + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x14002c591
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], 0xffffffffffffffff
mov ebx, select
cmp byte [rsi], 0x72
mov edx, 0x8000
cmovne rbx, r13
mov rcx, qword [rbx + rdi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov ecx, eax
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
mov qword [rdi + 0xb8], rax
mov qword [rbx + rdi], 0xffffffffffffffff
cmp qword [rdi + 0xb8], 0
jne 0x14002c66a
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x14002c5eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14002c602
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, qword [rdi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14002c61a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], 0xffffffffffffffff
mov rcx, qword [rdi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14002c632
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], 0xffffffffffffffff
mov rcx, qword [rdi + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14002c64a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], 0xffffffffffffffff
mov rcx, qword [rdi + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x14002c662
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], 0xffffffffffffffff
mov rax, qword [rdi + 0xb8]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x70]
add rsp, 0x80
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x14002c6ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14002c6c5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, qword [rdi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14002c6dd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], 0xffffffffffffffff
mov rcx, qword [rdi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14002c6f5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], 0xffffffffffffffff
mov rcx, qword [rdi + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14002c70d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], 0xffffffffffffffff
mov rcx, qword [rdi + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x14002c725
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], 0xffffffffffffffff
xor eax, eax
jmp 0x14002c671
xor eax, eax
add rsp, 0x80
pop r12
pop rdi
pop rsi
ret