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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1060]
mov eax, 0x1160
call fcn.140046a70
sub rsp, rax
mov rax, qword [0x14005b028]
xor rax, rsp
mov qword [rbp + 0x1050], rax
mov r12, rdx
mov r14, rcx
xor ebx, ebx
mov dword [rbp - 0x60], 0x18
mov dword [rbp - 0x50], 1
mov qword [rbp - 0x58], rbx
xor r9d, r9d
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140043085
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004336d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14004307a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x3c], xmm1
movups xmmword [rbp - 0x2c], xmm1
movups xmmword [rbp - 0x1c], xmm1
movups xmmword [rbp - 0xc], xmm1
movups xmmword [rbp + 4], xmm1
mov dword [rbp + 0x14], eax
mov dword [rbp - 0x40], 0x68
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x18], rax
psrldq xmm1, 8
movd eax, xmm1
bts eax, 8
mov dword [rbp - 4], eax
mov r13, qword [r14 + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r13
cmp rax, 0x18
jb 0x14004339d
cmp qword [r14 + 0x18], 8
jb 0x14004310d
mov r14, qword [r14]
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
lea r15, [r13 + 0x18]
mov esi, 7
lea rdi, [rbp + 0x30]
cmp r15, rsi
jbe 0x1400431bf
mov rsi, r15
or rsi, 7
cmp rsi, rcx
jbe 0x14004314e
mov rsi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14004317d
mov eax, 0xa
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140043397
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400431a9
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140043397
mov rcx, rax
call fcn.140045a98
test rax, rax
je 0x14004335f
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400431bb
test rcx, rcx
je 0x1400431b8
call fcn.140045a98
mov rdi, rax
jmp 0x1400431bb
mov rdi, rbx
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], rsi
movups xmm0, xmmword [str.powershell.exe__Command]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x1400509f8]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [0x140050a08]
movups xmmword [rdi + 0x20], xmm0
lea rcx, [rdi + 0x30]
lea r8, [r13*2]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + r15*2], bx
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140043255
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140043328
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, 0x2000
lea rdx, [rbp + 0x50]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140043308
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140043308
mov r8d, eax
shr r8, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140006b30
nop
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140014010
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14004325f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400432f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140043301
call fcn.140045a90
jmp 0x14004325f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x14004336b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043366
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043366
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140045a90
mov eax, ebx
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.140045a70
mov rbx, qword [rsp + 0x11b0]
add rsp, 0x1160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400012b0
int3
call fcn.140001350
int3