Function at 0x2a6a70
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x248
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x78], rbp
mov qword [rbp + 0x260], rcx
mov qword [rbp + 0x268], rdx
mov qword [rbp + 0x270], r8
mov rcx, qword [rbp + 0x268]
call fcn.000207e0
mov rcx, qword [rbp + 0x270]
call fcn.000207e0
nop
lea rcx, [rbp + 0x70]
xor edx, edx
lea r8, [0x002a6e1c]
mov r9d, 0xda6
call fcn.002a1020
mov rcx, qword [rbp + 0x70]
call fcn.00021b20
mov rcx, qword [rbp + 0x260]
mov rdx, rax
call fcn.00021bb0
mov dword [rbp + 0x208], 0x18
mov dword [rbp + 0x218], 0xffffffff
mov qword [rbp + 0x210], 0
lea rcx, [rbp + 0x220]
lea rdx, [rbp + 0x198]
lea r8, [rbp + 0x208]
xor r9, r9
call sub.KERNEL32.DLL_CreatePipe
nop
lea rcx, [rbp + 0x1a0]
mov edx, 0x68
xor r8, r8
call fcn.0001b7e0
mov dword [rbp + 0x1a0], 0x68
mov dword [rbp + 0x1dc], 0x101
mov word [rbp + 0x1e0], 0
mov ecx, 0xfffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov qword [rbp + 0x1f0], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x200], rax
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x270]
call fcn.00020d00
lea rcx, [rbp + 0x68]
lea rdx, [0x002a6e3c]
lea r8, [0x002a6e1c]
mov r9d, 0xb301
call fcn.002a1020
mov rcx, qword [rbp + 0x68]
call fcn.00021b20
lea rcx, [rbp + 0x60]
mov rdx, rax
call fcn.00021bb0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x268]
call fcn.00021eb0
mov rcx, qword [rbp + 0x60]
call fcn.00021b20
mov rbx, rax
mov rcx, qword [rbp + 0x88]
call fcn.00021b20
xor ecx, ecx
mov rdx, rbx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x228]
mov qword [rsp + 0x48], rax
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
setne al
mov byte [rbp + 0x87], al
mov rcx, qword [rbp + 0x198]
call sub.KERNEL32.DLL_CloseHandle
cmp byte [rbp + 0x87], 0
je 0x2a6d2b
nop
mov rcx, qword [rbp + 0x220]
lea rdx, [rbp + 0x97]
mov r8d, 0xff
lea r9, [rbp + 0x90]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_ReadFile
test eax, eax
setne al
mov byte [rbp + 0x197], al
cmp dword [rbp + 0x90], 0
jbe 0x2a6ced
mov eax, dword [rbp + 0x90]
mov byte [rax + rbp + 0x97], 0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x97]
mov r8d, pe_nt_image_headers64
call fcn.00021be0
mov rcx, qword [rbp + 0x260]
mov rdx, qword [rbp + 0x58]
call fcn.00021eb0
cmp byte [rbp + 0x197], 0
je 0x2a6d03
cmp dword [rbp + 0x90], 0
jne 0x2a6c7c
mov rcx, qword [rbp + 0x228]
or edx, 0xffffffff
call sub.KERNEL32.DLL_WaitForSingleObject
nop
mov rcx, qword [rbp + 0x230]
call sub.KERNEL32.DLL_CloseHandle
mov rcx, qword [rbp + 0x228]
call sub.KERNEL32.DLL_CloseHandle
nop
mov rcx, qword [rbp + 0x220]
call sub.KERNEL32.DLL_CloseHandle
nop
lea rcx, [rbp + 0x58]
mov edx, 4
call fcn.00020730
lea rcx, [rbp + 0x88]
call fcn.00020650
lea rcx, [rbp + 0x268]
mov edx, 2
call fcn.00020730
mov rax, qword [rbp + 0x260]
lea rsp, [rbp + 0x248]
pop rbx
pop rbp
ret