Function at 0x1400fed80
Capabilities:
Acquire debug privileges
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x518
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0xf1]
xor edx, edx
mov r8d, 0x40f
mov byte [rsp + 0xf0], 0
call fcn.1401e42d0
test rbx, rbx
je 0x1400fedef
cmp byte [rbx], 0
je 0x1400fedef
lea r8, str.cmd.exe__c__s
lea rcx, [rsp + 0xf0]
mov r9, rbx
mov edx, 0x410
call fcn.1401e5f98
mov byte [rsp + 0x4ff], 0
jmp 0x1400fee01
movabs rax, 0x6578652e646d63
mov qword [rsp + 0xf0], rax
lea r8, [rdi + 0x28]
lea rdx, [rdi + 0x30]
mov rcx, rdi
call fcn.1400fec70
test eax, eax
je 0x1400ff026
xor edx, edx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x540], rbp
lea r8d, [rdx + 0x68]
mov qword [rsp + 0x510], rsi
call fcn.1401e42d0
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], WSASetLastError
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r11, qword [rdi + 0x30]
xor ebp, ebp
mov word [rsp + 0xc0], bp
mov dword [rsp + 0xbc], 0x101
mov qword [rsp + 0xd0], r11
mov qword [rsp + 0xe0], r11
mov qword [rsp + 0xd8], r11
call fcn.1400fd760
lea rcx, str.SeDebugPrivilege
mov rsi, rax
call fcn.1400fcf20
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x60]
mov rdx, rsi
mov qword [rsp + 0x60], rbp
lea ebx, [rbp + 0x20]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ecx, 0x420
lea r8, [rsp + 0xf0]
test eax, eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
cmovne ebx, ecx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x1400fefd9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400fef2c
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400fef5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateProcess_err__d
lea rdx, str..TProcess.cpp
mov r8d, 0xfe
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045a0
lea rax, [rsp + 0x68]
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], rbp
mov qword [rsp + 0x30], rbp
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400feff2
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x1400fefd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_create_process__err_d
lea rdx, str..TProcess.cpp
mov r8d, 0x101
mov ecx, 3
mov dword [rsp + 0x20], eax
call fcn.1400045a0
xor eax, eax
jmp 0x1400ff016
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400feff2
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x68]
xor edx, edx
mov r8d, 0x10000
mov rcx, rdi
mov qword [rdi + 0x20], r11
call fcn.140001050
mov rbp, qword [rsp + 0x540]
mov rsi, qword [rsp + 0x510]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x518
pop rdi
pop rbx
ret