Function at 0x14000d5c0
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 [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov dword [rsp + 0x80], 0x68
xor r13d, r13d
movzx r12d, 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 rbp, r8
mov qword [r11 - 0x468], rcx
mov qword [r11 - 0x460], rdx
mov rbx, rdx
mov rsi, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r13d
mov r14d, 1
lea r9, [rsp + 0xe0]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14000d972
test rbp, rbp
jne 0x14000d854
lea rcx, [rsp + 0xf1]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0xf0], sil
call fcn.14005fe50
lea rcx, [rsp + 0xf0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0xf0]
repne scasb al, byte [rdi]
not rcx
sub ecx, 2
cmp byte [rsp + rcx + 0xf0], 0x5c
je 0x14000d71a
lea rdi, [rsp + 0xf0]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x140076930]
mov word [rdi - 1], ax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xf0]
repne scasb al, byte [rdi]
mov rax, qword [str.cmd.exe]
mov qword [rsp + 0x50], r13
dec rdi
mov qword [rsp + 0x58], r13
mov qword [rdi], rax
xor dil, dil
test r12b, r12b
je 0x14000d796
lea rax, [rsp + 0x58]
xor r9d, r9d
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
mov edx, r14d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
lea rcx, [rsp + 0xf0]
test eax, eax
movzx edi, dil
cmove edi, r14d
call fcn.140002c60
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]
test eax, eax
je 0x14000d7eb
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x14000d962
test r12b, r12b
je 0x14000d962
mov rax, qword [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0xf0]
lea r8d, [r9 + 4]
mov edx, r14d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
cmp eax, 5
jne 0x14000d962
lea rcx, [rsp + 0xf0]
call fcn.1400025e0
test al, al
je 0x14000d962
lea rcx, [rsp + 0xf0]
jmp 0x14000d93e
xor dil, dil
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
test r12b, r12b
je 0x14000d8a9
lea rax, [rsp + 0x58]
xor r9d, r9d
mov edx, r14d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
movzx edi, dil
test eax, eax
mov rcx, rbp
cmove edi, r14d
call fcn.140002c60
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov rdx, rbp
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]
test eax, eax
je 0x14000d8f9
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x14000d962
test r12b, r12b
je 0x14000d962
mov rax, qword [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
mov edx, r14d
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
cmp eax, 5
jne 0x14000d962
mov rcx, rbp
call fcn.1400025e0
test al, al
je 0x14000d962
mov rcx, rbp
mov rax, qword [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
mov edx, r14d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000d972
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rsi
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0x500
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret