Function at 0x1400a5874
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov eax, 0x1110
call fcn.1400c3750
sub rsp, rax
xor esi, esi
mov rbx, rcx
mov rdi, rdx
and qword [rsp + 0x88], rsi
and dword [rsp + 0xa0], esi
lea rcx, [rsp + 0xa8]
lea r8d, [rsi + 0x60]
xor edx, edx
mov dword [rsp + 0x80], Ordinal_27
mov dword [rsp + 0x90], 1
call sub.msvcrt.dll_memset
and qword [rsp + 0x68], rsi
xor eax, eax
mov rcx, rbx
and qword [rsp + 0x1148], rax
and qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.msvcrt.dll__wcsdup]
mov rbp, rax
test rax, rax
je 0x1400a5ade
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x1148]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400a5ad5
mov rcx, qword [rsp + 0x1148]
lea edx, [rsi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rsp + 0xf8]
bts dword [rsp + 0xdc], 8
mov qword [rsp + 0x100], rax
mov dword [rsp + 0xa0], Ordinal_113
test rdi, rdi
je 0x1400a598f
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov rdx, rdi
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x1400a598f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_process_run_data___CreateEnvironmentBlock__0x_08x__n
mov edx, eax
call fcn.14000a838
jmp 0x1400a5ab4
lea rax, [rsp + 0x68]
xor r9d, r9d
mov r8, rbp
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa0]
xor edx, edx
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], rsi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000400
mov rcx, rdi
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test eax, eax
je 0x1400a5a91
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x100], 0
and qword [rsp + 0xf8], 0
jmp 0x1400a5a3d
mov eax, dword [rsp + 0x1140]
test eax, eax
je 0x1400a5a6b
xor edi, edi
test eax, eax
je 0x1400a5a3d
lea rbx, [rsp + 0x110]
movzx edx, byte [rbx]
lea rcx, [0x1400d9d50]
call fcn.14000a838
inc edi
inc rbx
cmp edi, dword [rsp + 0x1140]
jb 0x1400a5a20
mov rcx, qword [rsp + 0x1148]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x1140]
lea rdx, [rsp + 0x110]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a5a07
mov rcx, qword [rsp + 0x68]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a5aa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_process_run_data___CreateProcessAsUser__0x_08x__n
mov edx, eax
call fcn.14000a838
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400a5ab4
call sub.USERENV.dll_DestroyEnvironmentBlock
mov rcx, qword [rsp + 0x1148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x1400a5ad5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
mov eax, esi
mov rbx, qword [rsp + 0x1130]
add rsp, 0x1110
pop rdi
pop rsi
pop rbp
ret