Function at 0x18000bf5c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x500
mov rax, qword [0x1800830c8]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov dword [rsp + 0x80], 0x68
xor r13d, r13d
mov bpl, r9b
mov qword [r11 - 0x4b0], r13
mov qword [r11 - 0x4a0], r13
mov qword [r11 - 0x4a8], r13
mov dword [r11 - 0x48c], r13d
mov dword [r11 - 0x490], r13d
mov dword [r11 - 0x494], r13d
mov dword [r11 - 0x498], r13d
mov word [r11 - 0x478], r13w
mov qword [r11 - 0x470], r13
mov word [r11 - 0x476], r13w
mov dword [rsp + 0xbc], 0x101
mov rsi, r8
mov qword [r11 - 0x468], rcx
mov qword [r11 - 0x460], rdx
mov rdi, rdx
mov r12, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r13d
lea r14d, [r13 + 1]
lea r9, [rsp + 0xe0]
mov r8, rbx
mov rcx, rax
mov rdx, rdi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, r13d
je 0x18000c302
cmp rsi, r13
jne 0x18000c1df
lea rcx, [rsp + 0xf1]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0xf0], r13b
call fcn.180052810
lea rcx, [rsp + 0xf0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rsp + 0xf0]
call fcn.1800529c0
dec eax
cmp byte [rsp + rax + 0xf0], 0x5c
je 0x18000c0a8
lea rdx, [0x180068820]
lea rcx, [rsp + 0xf0]
call fcn.1800530d0
lea rdx, str.cmd.exe
lea rcx, [rsp + 0xf0]
call fcn.1800530d0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov dil, r13b
mov ebx, 4
cmp bpl, r13b
je 0x18000c120
lea rax, [rsp + 0x58]
lea rcx, [rsp + 0xf0]
xor r9d, r9d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov r8d, ebx
mov edx, r14d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
lea rcx, [rsp + 0xf0]
cmp eax, r13d
movzx edi, r13b
cmove edi, r14d
call fcn.180002a90
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0xf0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, r13d
je 0x18000c176
mov rcx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dil, r13b
je 0x18000c2f2
cmp bpl, r13b
je 0x18000c2f2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, ebx
mov edx, r14d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
cmp eax, 5
jne 0x18000c2f2
lea rcx, [rsp + 0xf0]
call fcn.180002458
cmp al, r13b
je 0x18000c2f2
lea rcx, [rsp + 0xf0]
jmp 0x18000c2cf
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov dil, r13b
mov ebx, 4
cmp bpl, r13b
je 0x18000c239
lea rax, [rsp + 0x58]
xor r9d, r9d
mov r8d, ebx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
movzx edi, r13b
cmp eax, r13d
mov rcx, rsi
cmove edi, r14d
call fcn.180002a90
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov rdx, rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, r13d
je 0x18000c28a
mov rcx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dil, r13b
je 0x18000c2f2
cmp bpl, r13b
je 0x18000c2f2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, ebx
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
cmp eax, 5
jne 0x18000c2f2
mov rcx, rsi
call fcn.180002458
cmp al, r13b
je 0x18000c2f2
mov rcx, rsi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, ebx
mov edx, r14d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov rcx, qword [rsp + 0x58]
cmp rcx, r13
je 0x18000c302
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, r12
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1800527e0
add rsp, 0x500
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret