Function at 0x180005150
Capabilities:
Create pipe
Create process on windows
Delete file
Write and execute a file
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x18018f080]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
mov dword [rbp + 0x24], eax
mov dword [rbp - 0x40], 0x68
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov dword [rbp - 0x80], Ordinal_27
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x78], r15
xor r9d, r9d
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x180005478
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x18000520a
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180005462
mov dword [rbp - 0x50], r15d
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x18000528a
mov rcx, qword [rbx]
lea rsi, [rcx + rax*2]
mov r14, rcx
jmp 0x180005291
lea rsi, [rbx + rax*2]
mov r14, rbx
movdqu xmmword [rbp - 0x68], xmm0
mov rax, r15
mov qword [rbp - 0x58], rax
sub rsi, r14
mov rdi, rsi
sar rdi, 1
je 0x180005330
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x1800054a3
add rdi, rdi
cmp rdi, 0x1000
jb 0x1800052f7
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x18000549d
call fcn.18011b460
mov rcx, rax
test rax, rax
je 0x180005456
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180005309
test rdi, rdi
je 0x180005306
mov rcx, rdi
call fcn.18011b460
jmp 0x180005309
mov rax, r15
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
add rdi, rax
mov qword [rbp - 0x58], rdi
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x60], rdi
mov rax, qword [rbp - 0x58]
jmp 0x180005334
mov rdi, qword [rbp - 0x60]
mov word [rsp + 0x50], r15w
cmp rdi, rax
je 0x18000534a
mov word [rdi], r15w
add qword [rbp - 0x60], 2
jmp 0x18000535b
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.180014f30
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp - 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x18000541f
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 7
jbe 0x1800053d5
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x18000541b
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005416
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005456
call fcn.18011b8e4
mov al, 1
jmp 0x18000547a
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180005462
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000545d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000545d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18011b8e4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.18011b440
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180002d90
int3
call fcn.180014770
int3