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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x1140]
mov eax, 0x1240
call fcn.14001d7b0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1130], rax
xor r13d, r13d
mov dword [rbp - 0x70], 0x18
mov r12, rdx
mov dword [rsp + 0x50], r13d
mov r15, rcx
mov qword [rbp - 0x68], r13
xor edx, edx
mov dword [rsp + 0x54], r13d
lea rcx, [rbp + 0x130]
mov dword [rbp - 0x60], 1
mov r8d, 0x1000
call fcn.14001f350
mov ebx, 1
lock xadd dword [0x14003274c], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea r9d, [rbx + 1]
lea rdx, str..PipeRemoteExeAnon._08x._08x
lea rcx, [rbp + 0x20]
call fcn.1400010d0
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea r9d, [r13 + 1]
mov dword [rsp + 0x30], 0x1d4c0
lea rcx, [rbp + 0x20]
mov dword [rsp + 0x28], 0x1000
mov edx, 0x40000001
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rdi, rax
test rax, rax
je 0x140004490
mov qword [rsp + 0x30], r13
lea r9, [rbp - 0x70]
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000449a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xffffffff
jmp 0x1400045c2
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140004490
xorps xmm0, xmm0
mov qword [rsp + 0x1290], r14
movups xmmword [rbp - 0x50], xmm0
mov rcx, r12
mov dword [rbp - 0x50], 0x68
movaps xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x10], r13w
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp + 0x10], rsi
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp], xmm0
psrldq xmm0, 0xc
movd eax, xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
or eax, 0x101
mov dword [rbp - 0x14], eax
xor eax, eax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, 2
lea ecx, [rax + 0xa]
add ecx, ebx
movsxd rbx, ecx
mov rcx, rbx
call fcn.14000f544
cmp word [r15], 0x22
lea r8, str._s__s
mov r14, rax
mov qword [rsp + 0x20], r12
lea rax, str.__s___s
mov r9, r15
cmovne r8, rax
mov rdx, rbx
mov rcx, r14
call fcn.140001010
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x50]
mov rdx, r14
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x8000010
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400045e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_failed___d_._n
call fcn.1400038e0
mov rcx, r14
call fcn.14000f528
mov eax, 0xffffffff
mov r14, qword [rsp + 0x1290]
mov rcx, qword [rbp + 0x1130]
xor rcx, rsp
call fcn.140005350
add rsp, 0x1240
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x58]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor r9d, r9d
mov qword [rbp - 0x80], r13
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x78], rax
test rax, rax
je 0x1400046e0
lea rax, [rsp + 0x70]
mov r8d, 0x1000
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x130]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400046d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400046d4
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.GetOverlappedResultEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400046af
mov r9d, 0xa
mov dword [rsp + 0x20], r13d
lea r8, [rsp + 0x54]
xor ecx, ecx
lea rdx, [rsp + 0x70]
call rax
test eax, eax
jne 0x1400046d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400046e6
mov rcx, qword [rbp - 0x78]
mov edx, 0xa
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400046e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], r13d
jne 0x14000472e
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x14000472e
mov dword [rsp + 0x50], 0xffffffff
mov rcx, r14
call fcn.14000f528
mov eax, dword [rsp + 0x50]
jmp 0x1400045ba