Function at 0x180008250
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create thread
Create two anonymous pipes
Terminate process
Terminate thread
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa30]
sub rsp, 0xb30
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x180010010]
xor rax, rsp
mov qword [rbp + 0xa20], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x70], r8
xor r15d, r15d
mov qword [0x180011cd8], r15
lea r12, [0x1800115c0]
cmp r12, rdx
je 0x1800082c1
cmp qword [rdx + 0x18], 0x10
jb 0x1800082b5
mov rdx, qword [rdx]
mov r8, qword [rdi + 0x10]
mov rcx, r12
call fcn.1800079d0
xor edx, edx
mov r8d, 0xa00
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.C:WindowsSystem32cmd.exe
lea rcx, [rbp + 0x20]
call fcn.180001060
mov rdx, qword [r14 + 8]
mov rcx, qword [r14]
call fcn.180008cd0
mov rax, qword [r14]
mov qword [r14 + 8], rax
mov dword [rbp + 0x10], 0xffffffff
mov dword [rsp + 0x58], 0x18
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x60], r15
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [0x180011de0]
lea rcx, [0x180011df8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1800083ea
mov rcx, qword [0x180011df8]
test rcx, rcx
je 0x180008347
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180011de0]
test rcx, rcx
je 0x18000835a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180008390
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18000838b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800083dc
mov rcx, r8
call fcn.18000a084
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1800083d5
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1800083d0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800083e3
mov rcx, r8
call fcn.18000a084
xor eax, eax
jmp 0x18000872b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [0x180011df0]
lea rcx, [0x180011de8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1800084c0
mov rcx, qword [0x180011df0]
test rcx, rcx
je 0x180008420
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180011de8]
test rcx, rcx
je 0x180008433
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180008469
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x180008464
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800084b9
mov rcx, r8
call fcn.18000a084
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1800083d5
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1800083d0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x1800083cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp - 0x5c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x60], 0x68
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], r15w
mov rax, qword [0x180011de8]
mov qword [rbp - 0x10], rax
mov rax, qword [0x180011de0]
mov qword [rbp], rax
mov qword [rbp - 8], rax
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x180008513
mov rax, qword [rsi]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
test eax, eax
je 0x180008626
mov rax, qword [rsp + 0x70]
mov qword [0x180011cd8], rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
mov r9, r14
lea r8, [0x180007d40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18000859e
mov rdx, qword [rdi]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x14]
mov r8d, dword [rdi + 0x10]
mov rcx, qword [0x180011df0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x14]
mov r8d, 2
lea rdx, [0x18000cc88]
mov rcx, qword [0x180011df0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x2710
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test ebx, ebx
je 0x180008609
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rdx, [rbp + 0x10]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, r15d
test eax, eax
je 0x180008626
cmp dword [rbp + 0x10], r15d
sete bl
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x180007ce0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
mov edx, 0xbb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180008667
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x180011df8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180011df0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180011de8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180011de0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
lea rdx, [0x18000c4d8]
mov rcx, r12
call fcn.1800079d0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1800086e4
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1800086df
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000875b
mov rcx, r8
call fcn.18000a084
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x180008729
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x180008724
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180008762
mov rcx, r8
call fcn.18000a084
mov eax, ebx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rcx, qword [rbp + 0xa20]
xor rcx, rsp
call fcn.18000a060
add rsp, 0xb30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3