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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rbp + 0x510], rax
xor edx, edx
mov qword [rsp + 0x50], 0x18
mov r8d, 0x104
mov qword [rsp + 0x60], 1
lea rcx, [rbp]
xor ebx, ebx
call fcn.1400024b0
xor r9d, r9d
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x50]
lea rdx, [0x140020bf8]
lea rcx, [0x140020c00]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140001227
mov rcx, qword [0x140020c00]
test rcx, rcx
je 0x140001212
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140020bf8]
test rcx, rcx
je 0x14000137c
jmp 0x140001376
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x140020c08]
lea rcx, [0x140020bf0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14000126e
mov rcx, qword [0x140020c08]
test rcx, rcx
je 0x140001259
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140020bf0]
test rcx, rcx
je 0x14000137c
jmp 0x140001376
xorps xmm0, xmm0
lea rcx, [rsp + 0x70]
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x30], rax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [0x140020bf0]
lea rcx, [rbp]
mov qword [rbp - 0x40], rax
mov edx, 0x104
mov rax, qword [0x140020bf8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x38], rax
mov dword [rsp + 0x70], 0x68
mov dword [rbp - 0x54], 0x101
mov word [rbp - 0x50], bx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rbp]
dec rcx
cmp byte [rcx + 1], bl
lea rcx, [rcx + 1]
jne 0x1400012e6
movzx eax, byte [0x14001c550]
xor r9d, r9d
movsd xmm0, qword [str.cmd.exe]
xor r8d, r8d
movsd qword [rcx], xmm0
xor edx, edx
mov byte [rcx + 8], al
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
lea rcx, [rbp]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000139e
mov rcx, qword [0x140020c00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140020c08]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140020bf0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140020bf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.1400014b0
mov rbx, qword [rsp + 0x630]
add rsp, 0x620
pop rbp
ret
mov qword [rsp + 0x28], rbx
lea r8, [0x140001070]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0x400
lea rcx, [rbp + 0x110]
call fcn.140004ccc
lea rax, [rbp + 0x110]
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], bl
jne 0x1400013e0
movsxd rax, ecx
mov byte [rbp + rax + 0x110], 0xa
lea eax, [rcx + 1]
movsxd rcx, eax
cmp rcx, 0x400
jae 0x140001496
nop word [rax + rax]
mov byte [rbp + rcx + 0x110], bl
lea rax, [rbp + 0x110]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140001425
mov rcx, qword [0x140020c08]
lea r9, [rbp - 8]
lea rdx, [rbp + 0x110]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x400
lea rcx, [rbp + 0x110]
call fcn.140004ccc
lea rcx, [rbp + 0x110]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], bl
jne 0x140001470
movsxd rcx, eax
mov byte [rbp + rcx + 0x110], 0xa
lea ecx, [rax + 1]
movsxd rcx, ecx
cmp rcx, 0x400
jb 0x140001410
call fcn.1400015d8
int3