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

Disassembly:
jmp 0x1401017a0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x298
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b8]
lea rcx, [0x14030419b]
call fcn.1400cf004
mov r8d, 0x18
xor edx, edx
mov rcx, qword [rbp + 0x278]
call fcn.1400cd75e
mov ecx, 0xa000
call fcn.1400cdad8
mov qword [rbp + 8], rax
mov edx, 0x4000
mov rcx, qword [rbp + 8]
call fcn.1400ca478
mov qword [rbp + 0x28], rax
mov edx, 0x400
mov rcx, qword [rbp + 8]
call fcn.1400ca478
mov qword [rbp + 0x48], rax
mov edx, 0x400
mov rcx, qword [rbp + 8]
call fcn.1400ca478
mov qword [rbp + 0x68], rax
mov edx, 0x400
mov rcx, qword [rbp + 8]
call fcn.1400ca478
mov qword [rbp + 0x88], rax
mov edx, 0x400
mov rcx, qword [rbp + 8]
call fcn.1400ca478
mov qword [rbp + 0xa8], rax
lea rax, [rbp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rbp + 0xd0], WSAGetLastError
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rbp + 0x10c], 0x101
xor eax, eax
mov word [rbp + 0x110], ax
mov qword [rbp + 0x120], 0
mov qword [rbp + 0x128], 0
mov qword [rbp + 0x130], 0
mov qword [rbp + 0xe0], 0
mov r8d, 0x4000
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x268]
call fcn.1400cf96e
mov r8d, 0x400
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x258]
call fcn.1400cf96e
mov r8d, 0x400
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x260]
call fcn.1400cf96e
mov r8d, 0x400
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x250]
call fcn.1400cf96e
mov qword [rbp + 0x158], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x400
jb 0x140101956
mov qword [rbp + 0x158], 0
jmp 0x140101976
mov rdx, qword [rbp + 0xa8]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x158], rax
mov eax, dword [rbp + 0x270]
or eax, 0x8000400
mov rcx, qword [rbp + 0x278]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0xd0]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rbp + 0x158]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 1
mov r8, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1401019fe
mov rcx, qword [rbp + 8]
call fcn.1400ce58c
mov rcx, qword [rbp + 8]
call fcn.1400ccd4f
mov eax, 1
jmp 0x140101a47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x258]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x250]
mov r8, qword [rbp + 0x268]
lea rdx, str._s_as__s_s:__d
mov ecx, gethostname
call fcn.1400cc778
mov rcx, qword [rbp + 8]
call fcn.1400ce58c
mov rcx, qword [rbp + 8]
call fcn.1400ccd4f
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret