Function at 0x14009aa20
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov qword [rsp + 0x70], rcx
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov r14d, r8d
mov qword [rsp + 0x60], rbx
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14009aaa1
mov rcx, qword [rsp + 0x60]
mov qword [rsi], rbx
test rcx, rcx
je 0x14009ac1c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009ac1c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x14009aad5
mov qword [rsi], rbx
jmp 0x14009ac07
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x78]
mov r9d, 4
mov dword [rsp + 0x78], eax
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x14009ab05
mov qword [rsi], rbx
jmp 0x14009ac07
mov rdx, qword [rsp + 0x60]
lea rcx, str.winsta0winlogon
xorps xmm0, xmm0
mov qword [rsp + 0x70], rbx
xor eax, eax
mov qword [rbp], rax
cmp r14d, 1
movups xmmword [rbp - 0x60], xmm0
lea rax, str.winsta0default
mov dword [rbp - 0x60], 0x68
cmove rax, rcx
xor r8d, r8d
movups xmmword [rbp - 0x50], xmm0
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x50], rax
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x24], 1
movups xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x20], bx
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x14009ab75
mov qword [rsi], rbx
jmp 0x14009ac07
lea rcx, [rbp + 0x10]
mov byte [rbp + 0x10], bl
sub rcx, rdi
nop
movzx eax, byte [rdi]
mov byte [rcx + rdi], al
lea rdi, [rdi + 1]
test al, al
jne 0x14009ab80
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x10]
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x490
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x14009abdd
mov qword [rsi], rbx
jmp 0x14009ac07
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x80]
mov rdi, rbx
mov rcx, qword [rsp + 0x70]
test rax, rax
cmovne rdi, rax
test rcx, rcx
je 0x14009ac04
call sub.USERENV.dll_DestroyEnvironmentBlock
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14009ac17
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], rbx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009ac2c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14025e930
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret