Function at 0x18000d270
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 [0x180138040]
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], 0x18
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 0x18000d598
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 0x18000d32a
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 0x18000d582
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 0x18000d3aa
mov rcx, qword [rbx]
lea rsi, [rcx + rax*2]
mov r14, rcx
jmp 0x18000d3b1
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 0x18000d450
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x18000d5c3
add rdi, rdi
cmp rdi, 0x1000
jb 0x18000d417
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x18000d5bd
call fcn.1800be3c8
mov rcx, rax
test rax, rax
je 0x18000d576
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18000d429
test rdi, rdi
je 0x18000d426
mov rcx, rdi
call fcn.1800be3c8
jmp 0x18000d429
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 0x18000d454
mov rdi, qword [rbp - 0x60]
mov word [rsp + 0x50], r15w
cmp rdi, rax
je 0x18000d46a
mov word [rdi], r15w
add qword [rbp - 0x60], 2
jmp 0x18000d47b
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.180018db0
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 0x18000d53f
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 0x18000d4f5
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x18000d53b
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d536
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000d576
call fcn.1800be3c0
mov al, 1
jmp 0x18000d59a
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x18000d582
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d57d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000d57d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800be3c0
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.1800be3a0
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180002c80
int3
call fcn.180018b60
int3