Function at 0x14001a150
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Query environment variable
Read file on windows
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov rax, qword [0x1400643c8]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov edi, r9d
mov rsi, r8
mov r15, rdx
mov rbx, rcx
mov dword [rbp - 0x70], 1
xor r13d, r13d
mov qword [rbp - 0x78], r13
mov dword [rbp - 0x80], 0x18
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov r9d, 0x40000
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14001a51c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [rbp - 0x60], 0x68
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], r13w
mov rax, qword [rsp + 0x60]
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], r13w
xor r8d, r8d
mov edx, 0x8000
lea rcx, [rbp + 0x30]
call fcn.14001a560
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
cmp qword [rbx + 0x18], 8
jb 0x14001a257
mov rbx, qword [rbx]
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14001a31e
mov edx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14001a2e1
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x14004d6b0]
mov ecx, 0x200
call fcn.14001e604
mov r12, rax
test rax, rax
jne 0x14001a330
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x14001a4dd
mov ebx, 0x16
nop word [rax + rax]
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov r8d, 0x200
mov rdx, r12
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001a53c
mov esi, dword [rsp + 0x50]
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
cmp rsi, 0xf
ja 0x14001a3af
mov qword [rbp + 0x20], rsi
mov r8d, esi
mov rdx, r12
lea rcx, [rbp + 0x10]
call fcn.14001ff70
mov byte [rbp + rsi + 0x10], 0
mov r14, qword [rbp + 0x28]
mov rsi, qword [rbp + 0x20]
mov rbx, qword [rbp + 0x10]
jmp 0x14001a41d
mov r14, rsi
or r14, 0xf
cmp r14, 0x16
cmovb r14, rbx
lea rcx, [r14 + 1]
cmp rcx, 0x1000
jb 0x14001a3f7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001a559
mov rcx, rax
call fcn.14001df20
test rax, rax
je 0x14001a54d
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14001a3ff
call fcn.14001df20
mov rbx, rax
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], r14
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.14001ff70
mov byte [rbx + rsi], 0
mov qword [rbp + 0x10], rbx
lea r9, [rbp + 0x10]
cmp r14, 0x10
cmovae r9, rbx
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14001a468
lea rax, [rsi + rcx]
mov qword [r15 + 0x10], rax
mov rax, r15
cmp rdx, 0x10
jb 0x14001a450
mov rax, qword [r15]
lea rdi, [rax + rcx]
mov r8, rsi
mov rdx, r9
mov rcx, rdi
call fcn.14001ff70
mov byte [rsi + rdi], 0
jmp 0x14001a483
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call fcn.140003a60
mov r14, qword [rbp + 0x28]
mov rbx, qword [rbp + 0x10]
cmp r14, 0x10
jb 0x14001a4ba
lea rdx, [r14 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001a4b2
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a54d
mov rcx, rbx
call fcn.14001df5c
cmp dword [rsp + 0x50], 0x200
jae 0x14001a330
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.14001df5c
mov bl, 1
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x14001a519
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a514
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a553
call fcn.14001df5c
movzx eax, bl
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14001df00
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 0x6d
je 0x14001a4c8
jmp 0x14001a340
call fcn.140024798
nop
call fcn.140024798
nop
call fcn.140002d50
int3