Function at 0x1400274f0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1d0
mov eax, 8
imul rax, rax, 1
mov qword [rsp + rax + 0x78], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 0
mov qword [rsp + rax + 0x78], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 1
mov qword [rsp + rax + 0x88], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 0
mov qword [rsp + rax + 0x88], 0xffffffffffffffff
mov qword [rsp + 0xa8], 0xffffffffffffffff
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
xor eax, eax
test eax, eax
jne 0x140027566
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
xor eax, eax
test eax, eax
jne 0x140027590
call fcn.140027e70
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400275d1
jmp 0x140027c85
mov rdx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x58]
call fcn.140027e90
test eax, eax
je 0x1400275ec
jmp 0x140027c85
mov edx, 0x2e
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call sub.VCRUNTIME140.dll_strrchr
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140027650
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x98], 0xffffffffffffffff
inc qword [rsp + 0x98]
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x98]
cmp byte [rax + rcx], 0
jne 0x140027624
mov rax, qword [rsp + 0x98]
cmp rax, 4
jbe 0x14002765e
lea rax, str..exe
mov qword [rsp + 0x70], rax
jmp 0x140027667
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x54], 0x104
mov eax, dword [rsp + 0x54]
mov edx, eax
lea rcx, [rsp + 0xf0]
call fcn.140008d20
test rax, rax
jne 0x14002768c
jmp 0x140027c85
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0xc8], eax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x54]
mov r8, qword [rsp + 0x70]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathA]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1400276e3
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0x54], eax
ja 0x14002766f
cmp dword [rsp + 0x54], 0
jne 0x1400276ef
jmp 0x140027c85
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x50], 0
jmp 0x14002770b
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
cmp qword [rcx + rax*8], 0
je 0x140027786
cmp dword [rsp + 0x50], 0
jne 0x140027729
jmp 0x140027701
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x110], rax
mov qword [rsp + 0xa0], 0xffffffffffffffff
inc qword [rsp + 0xa0]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xa0]
cmp byte [rax + rcx], 0
jne 0x14002774f
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x68]
lea eax, [rcx + rax + 1]
mov dword [rsp + 0x68], eax
jmp 0x140027701
mov eax, dword [rsp + 0x68]
inc eax
cdqe
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140008d20
test rax, rax
jne 0x1400277a8
jmp 0x140027c85
mov dword [rsp + 0x50], 0
jmp 0x1400277bc
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
cmp qword [rcx + rax*8], 0
je 0x1400278ea
cmp dword [rsp + 0x50], 0
jne 0x1400278b7
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov edx, 0x2f
mov rcx, qword [rcx + rax*8]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140027832
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov edx, 0x5c
mov rcx, qword [rcx + rax*8]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140027841
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
jmp 0x140027858
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x60], rax
mov edx, 0x20
mov rcx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x140027889
mov dl, 0x22
lea rcx, [rsp + 0xb0]
call fcn.1400084a0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xb0]
call fcn.140008fe0
cmp qword [rsp + 0xd0], 0
je 0x1400278b5
mov dl, 0x22
lea rcx, [rsp + 0xb0]
call fcn.1400084a0
jmp 0x1400278e5
mov dl, 0x20
lea rcx, [rsp + 0xb0]
call fcn.1400084a0
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0xb0]
call fcn.140008fe0
jmp 0x1400277b2
cmp dword [rsp + 0x50], 1
jg 0x140027954
mov edx, 0x20
mov rcx, qword [rsp + 0xd8]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
je 0x140027925
mov dl, 0x22
lea rcx, [rsp + 0xb0]
call fcn.1400084a0
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0xb0]
call fcn.140008fe0
cmp qword [rsp + 0xe0], 0
je 0x140027954
mov dl, 0x22
lea rcx, [rsp + 0xb0]
call fcn.1400084a0
mov dword [rsp + 0x128], 0x18
mov dword [rsp + 0x138], 1
mov qword [rsp + 0x130], 0
mov eax, 8
imul rax, rax, 1
lea rax, [rsp + rax + 0x78]
mov ecx, 8
imul rcx, rcx, 0
lea rcx, [rsp + rcx + 0x78]
xor r9d, r9d
lea r8, [rsp + 0x128]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400279af
jmp 0x140027c85
mov eax, 8
imul rax, rax, 0
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400279d4
jmp 0x140027c85
mov eax, 8
imul rax, rax, 1
lea rax, [rsp + rax + 0x88]
mov ecx, 8
imul rcx, rcx, 0
lea rcx, [rsp + rcx + 0x88]
xor r9d, r9d
lea r8, [rsp + 0x128]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140027a13
jmp 0x140027c85
mov eax, 8
imul rax, rax, 1
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140027a3b
jmp 0x140027c85
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x118], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x120], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov rcx, qword [rsp + 0x118]
mov r8, rcx
mov rcx, qword [rsp + 0x120]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140027aaa
jmp 0x140027c85
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x160], 0x68
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x1c0], rax
mov eax, 8
imul rax, rax, 1
mov rax, qword [rsp + rax + 0x78]
mov qword [rsp + 0x1b8], rax
mov eax, 8
imul rax, rax, 0
mov rax, qword [rsp + rax + 0x88]
mov qword [rsp + 0x1b0], rax
xor eax, eax
mov word [rsp + 0x1a0], ax
mov dword [rsp + 0x19c], 0x101
lea rax, [rsp + 0x140]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140027b7e
jmp 0x140027c85
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x140]
call fcn.140027e10
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 0
xor edx, edx
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov rcx, qword [rsp + 0x1f0]
mov dword [rcx], eax
mov eax, 8
imul rax, rax, 1
mov edx, 1
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov rcx, qword [rsp + 0x1e8]
mov dword [rcx], eax
mov r8d, dword [rsp + 0x150]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x140027c1c
jmp 0x140027c85
mov rax, qword [rsp + 0x1f8]
mov rcx, qword [rsp + 0xe8]
mov qword [rax], rcx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xb0]
call fcn.140009040
lea rcx, [rsp + 0xf0]
call fcn.140009040
mov rcx, qword [rsp + 0x58]
call fcn.140028020
xor eax, eax
jmp 0x140027d67
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x78], 0xffffffffffffffff
je 0x140027caa
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 1
cmp qword [rsp + rax + 0x78], 0xffffffffffffffff
je 0x140027ccf
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x88], 0xffffffffffffffff
je 0x140027cfa
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
imul rax, rax, 1
cmp qword [rsp + rax + 0x88], 0xffffffffffffffff
je 0x140027d25
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + rax + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xa8], 0xffffffffffffffff
je 0x140027d3e
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xb0]
call fcn.140009040
lea rcx, [rsp + 0xf0]
call fcn.140009040
mov rcx, qword [rsp + 0x58]
call fcn.140028020
mov eax, 0xffffffe7
add rsp, 0x1d0
pop rdi
ret