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

Disassembly:
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp + 0xf8], edx
mov qword [rbp + 0x100], r8
mov qword [rbp + 0x108], r9
mov dword [rbp + 0xbc], 0
mov dword [rbp + 0xac], 0x100
mov dword [rbp + 0xa8], 1
mov dword [rbp + 0xa4], 0x8000000
mov dword [rbp + 0x40], 0x18
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x50], 1
mov qword [rbp + 0xb0], 0
lea rdx, [rbp - 0x30]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x30], 0x68
mov eax, dword [rbp + 0xac]
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xf8]
and eax, 8
test eax, eax
je 0x14000182a
mov eax, dword [rbp + 0xa4]
or dword [rbp + 0xbc], eax
mov eax, dword [rbp + 0xf8]
and eax, 2
test eax, eax
jne 0x140001a4f
cmp qword [rbp + 0x100], 0
jne 0x140001858
lea rax, [0x14000602f]
mov qword [rbp + 0xb0], rax
jmp 0x140001a63
mov qword [rbp + 0xc8], 2
mov dword [rbp + 0xc4], 0
jmp 0x1400018c8
mov dword [rbp + 0xc0], 0
jmp 0x14000188a
add qword [rbp + 0xc8], 1
add dword [rbp + 0xc0], 1
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x100]
add rax, rdx
mov rdx, qword [rax]
mov eax, dword [rbp + 0xc0]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x14000187b
add qword [rbp + 0xc8], 1
add dword [rbp + 0xc4], 1
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x100]
add rax, rdx
mov rax, qword [rax]
test rax, rax
jne 0x14000186f
mov rax, qword [rbp + 0xc8]
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140003e70
sub rsp, rax
lea rax, [rsp + 0x50]
add rax, 0xf
shr rax, 4
shl rax, 4
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xc8], 0
mov dword [rbp + 0xc4], 0
jmp 0x1400019e9
mov dword [rbp + 0xc0], 0
jmp 0x140001994
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x100]
add rax, rdx
mov rdx, qword [rax]
mov eax, dword [rbp + 0xc0]
cdqe
lea rcx, [rdx + rax]
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0xb0]
add rdx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
add dword [rbp + 0xc0], 1
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x100]
add rax, rdx
mov rdx, qword [rax]
mov eax, dword [rbp + 0xc0]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x140001943
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0xb0]
add rax, rdx
mov byte [rax], 0
add dword [rbp + 0xc4], 1
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x100]
add rax, rdx
mov rax, qword [rax]
test rax, rax
jne 0x140001937
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0xb0]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0xb0]
add rax, rdx
mov byte [rax], 0
jmp 0x140001a63
cmp qword [rbp + 0x100], 0
je 0x140001a63
mov eax, 0xffffffff
jmp 0x140002312
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x80]
lea rax, [rbp + 0x88]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
jne 0x140001a98
mov eax, 0xffffffff
jmp 0x140002312
mov rax, qword [rbp + 0x80]
mov edx, dword [rbp + 0xa8]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rax
test eax, eax
jne 0x140001ac5
mov eax, 0xffffffff
jmp 0x140002312
mov rax, qword [rbp + 0x80]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__open_osfhandle]
call rax
mov dword [rbp + 0xa0], eax
cmp dword [rbp + 0xa0], 0xffffffff
je 0x140001b27
mov eax, dword [rbp + 0xa0]
lea rdx, [0x140006032]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__fdopen]
call rax
mov rdx, qword [rbp + 0x108]
mov qword [rdx], rax
mov rax, qword [rbp + 0x108]
mov rax, qword [rax]
test rax, rax
jne 0x140001b27
mov eax, 0xffffffff
jmp 0x140002312
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x20], rax
mov eax, dword [rbp + 0xf8]
and eax, 4
test eax, eax
je 0x140001b63
lea rdx, [rbp + 0x80]
lea rax, [rbp + 0x88]
mov rcx, rax
call sym.subprocess_create_named_pipe_helper
test eax, eax
je 0x140001b98
mov eax, 0xffffffff
jmp 0x140002312
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x80]
lea rax, [rbp + 0x88]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
jne 0x140001b98
mov eax, 0xffffffff
jmp 0x140002312
mov rax, qword [rbp + 0x88]
mov edx, dword [rbp + 0xa8]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rax
test eax, eax
jne 0x140001bc5
mov eax, 0xffffffff
jmp 0x140002312
mov rax, qword [rbp + 0x88]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__open_osfhandle]
call rax
mov dword [rbp + 0xa0], eax
cmp dword [rbp + 0xa0], 0xffffffff
je 0x140001c29
mov eax, dword [rbp + 0xa0]
lea rdx, [0x140006035]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__fdopen]
call rax
mov rdx, qword [rbp + 0x108]
mov qword [rdx + 8], rax
mov rax, qword [rbp + 0x108]
mov rax, qword [rax + 8]
test rax, rax
jne 0x140001c29
mov eax, 0xffffffff
jmp 0x140002312
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0xf8]
and eax, 1
test eax, eax
je 0x140001c64
mov rax, qword [rbp + 0x108]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x108]
mov qword [rax + 0x10], rdx
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
jmp 0x140001d66
mov eax, dword [rbp + 0xf8]
and eax, 4
test eax, eax
je 0x140001c95
lea rdx, [rbp + 0x80]
lea rax, [rbp + 0x88]
mov rcx, rax
call sym.subprocess_create_named_pipe_helper
test eax, eax
je 0x140001cca
mov eax, 0xffffffff
jmp 0x140002312
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x80]
lea rax, [rbp + 0x88]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
jne 0x140001cca
mov eax, 0xffffffff
jmp 0x140002312
mov rax, qword [rbp + 0x88]
mov edx, dword [rbp + 0xa8]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rax
test eax, eax
jne 0x140001cf7
mov eax, 0xffffffff
jmp 0x140002312
mov rax, qword [rbp + 0x88]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__open_osfhandle]
call rax
mov dword [rbp + 0xa0], eax
cmp dword [rbp + 0xa0], 0xffffffff
je 0x140001d5b
mov eax, dword [rbp + 0xa0]
lea rdx, [0x140006035]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__fdopen]
call rax
mov rdx, qword [rbp + 0x108]
mov qword [rdx + 0x10], rax
mov rax, qword [rbp + 0x108]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140001d5b
mov eax, 0xffffffff
jmp 0x140002312
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0xf8]
and eax, 4
test eax, eax
je 0x140001dcd
lea rax, [rbp + 0x40]
mov r9d, 0
mov r8d, 1
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp + 0x108]
mov qword [rdx + 0x28], rax
lea rax, [rbp + 0x40]
mov r9d, 0
mov r8d, 1
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp + 0x108]
mov qword [rdx + 0x30], rax
jmp 0x140001deb
mov rax, qword [rbp + 0x108]
mov qword [rax + 0x28], 0
mov rax, qword [rbp + 0x108]
mov qword [rax + 0x30], 0
mov qword [rbp + 0xc8], 0
mov dword [rbp + 0xc4], 0
jmp 0x140001f46
add qword [rbp + 0xc8], 1
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rax, qword [rax]
lea rdx, [0x140006038]
mov rcx, rax
call sym.strpbrk
test rax, rax
jne 0x140001e62
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rax, qword [rax]
movzx eax, byte [rax]
test al, al
jne 0x140001e6a
add qword [rbp + 0xc8], 2
mov dword [rbp + 0xc0], 0
jmp 0x140001f0c
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rdx, qword [rax]
mov eax, dword [rbp + 0xc0]
cdqe
add rax, rdx
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x22
je 0x140001eef
cmp eax, 0x5c
jne 0x140001ef9
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0xc0]
movsxd rdx, edx
add rdx, 1
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x22
jne 0x140001efc
add qword [rbp + 0xc8], 1
jmp 0x140001efc
add qword [rbp + 0xc8], 1
jmp 0x140001efd
nop
jmp 0x140001efd
nop
add qword [rbp + 0xc8], 1
add dword [rbp + 0xc0], 1
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rdx, qword [rax]
mov eax, dword [rbp + 0xc0]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x140001e79
add dword [rbp + 0xc4], 1
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rax, qword [rax]
test rax, rax
jne 0x140001e05
mov rax, qword [rbp + 0xc8]
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140003e70
sub rsp, rax
lea rax, [rsp + 0x50]
add rax, 0xf
shr rax, 4
shl rax, 4
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
jne 0x140001fb3
mov eax, 0xffffffff
jmp 0x140002312
mov qword [rbp + 0xc8], 0
mov dword [rbp + 0xc4], 0
jmp 0x1400021f8
cmp dword [rbp + 0xc4], 0
je 0x140001ff5
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0x98]
add rax, rdx
mov byte [rax], 0x20
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rax, qword [rax]
lea rdx, [0x140006038]
mov rcx, rax
call sym.strpbrk
test rax, rax
jne 0x14000204a
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rax, qword [rax]
movzx eax, byte [rax]
test al, al
jne 0x140002051
mov eax, 1
jmp 0x140002056
mov eax, 0
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x140002084
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0x98]
add rax, rdx
mov byte [rax], 0x22
mov dword [rbp + 0xc0], 0
jmp 0x140002196
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rdx, qword [rax]
mov eax, dword [rbp + 0xc0]
cdqe
add rax, rdx
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x22
je 0x140002120
cmp eax, 0x5c
jne 0x140002141
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0xc0]
movsxd rdx, edx
add rdx, 1
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x22
jne 0x140002144
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0x98]
add rax, rdx
mov byte [rax], 0x5c
jmp 0x140002144
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0x98]
add rax, rdx
mov byte [rax], 0x5c
jmp 0x140002145
nop
jmp 0x140002145
nop
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rdx, qword [rax]
mov eax, dword [rbp + 0xc0]
cdqe
lea rcx, [rdx + rax]
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0x98]
add rdx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
add dword [rbp + 0xc0], 1
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rdx, qword [rax]
mov eax, dword [rbp + 0xc0]
cdqe
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x140002093
cmp dword [rbp + 0x94], 0
je 0x1400021f1
mov rax, qword [rbp + 0xc8]
lea rdx, [rax + 1]
mov qword [rbp + 0xc8], rdx
mov rdx, qword [rbp + 0x98]
add rax, rdx
mov byte [rax], 0x22
add dword [rbp + 0xc4], 1
mov eax, dword [rbp + 0xc4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xf0]
add rax, rdx
mov rax, qword [rax]
test rax, rax
jne 0x140001fcd
mov rdx, qword [rbp + 0x98]
mov rax, qword [rbp + 0xc8]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp + 0x98]
lea rdx, [rbp + 0x60]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov rdx, qword [rbp + 0xb0]
mov qword [rsp + 0x30], rdx
mov edx, dword [rbp + 0xbc]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x14000229a
mov eax, 0xffffffff
jmp 0x140002312
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x108]
mov qword [rax + 0x18], rdx
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x108]
mov qword [rax + 0x20], rdx
mov rax, qword [rbp + 0x68]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x1400022fe
mov rax, qword [rbp + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rdx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x28]
cmp rdx, rax
je 0x1400022fe
mov rax, qword [rbp + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x108]
mov qword [rax + 0x38], 1
mov eax, 0
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret