Function at 0x1400021c0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rbp + 0x18], rax
movups xmm0, xmmword [str.Winsta0default]
xor ebx, ebx
mov r14d, r9d
movups xmm1, xmmword [0x140021d18]
mov rsi, r8
mov r12, rdx
movups xmmword [rbp - 8], xmm0
mov r15, rcx
mov edi, ebx
movups xmmword [rbp + 8], xmm1
mov r13d, ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x60]
lea rdx, str.SeImpersonatePrivilege
call fcn.140002090
test eax, eax
je 0x140002511
mov rcx, qword [0x140026ea8]
lea rdx, str.SeImpersonatePrivilege
call fcn.140002090
mov rcx, qword [0x140026ea8]
lea rdx, str.SeAssignPrimaryTokenPrivilege
call fcn.140002090
mov rcx, qword [0x140026ea8]
lea rdx, str.SeTcbPrivilege
call fcn.140002090
mov rcx, qword [0x140026ea8]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea r13d, [rbx + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140002388
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0xea60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x7530
mov r10, r12
mov r9d, r8d
sub r10, rax
mov rdi, rax
mov rdx, rax
nop word [rax + rax]
lea rcx, [r9 + 0x7fff8ace]
test rcx, rcx
je 0x140002303
movzx ecx, word [r10 + rdx]
test cx, cx
je 0x140002303
mov word [rdx], cx
add rdx, 2
sub r9, 1
jne 0x1400022e0
test r9, r9
lea rax, [rdx - 2]
mov rcx, r8
cmovne rax, rdx
mov word [rax], bx
mov rax, rdi
cmp word [rax], bx
je 0x140002326
add rax, 2
sub rcx, 1
jne 0x140002317
mov rax, r8
sub rax, rcx
test rcx, rcx
cmove rax, rbx
je 0x14000237d
lea rcx, [rdi + rax*2]
sub r8, rax
je 0x14000236f
lea r9, [0x140021e20]
mov eax, 0x7ffffffe
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x14000236f
movzx edx, word [r9 + rcx]
test dx, dx
je 0x14000236f
mov word [rcx], dx
dec rax
add rcx, 2
sub r8, 1
jne 0x140002350
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bx
mov r8, rsi
mov rcx, rdi
call fcn.140001a90
movzx eax, word [r15]
cmp ax, 0x75
je 0x14000239c
cmp ax, 0x2a
jne 0x140002473
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x20], rax
test r14d, r14d
mov qword [rsp + 0x78], rax
mov esi, 0x10
lea rax, [rbp - 8]
cmovne esi, ebx
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x80], 0x68
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x70], rax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rsp + 0x68], xmm0
jne 0x140002410
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov rcx, qword [0x140026e98]
lea r8, [rbp - 0x10]
mov r9d, 4
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rcx, qword [0x140026e98]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov r8, rdi
mov qword [rsp + 0x48], rax
mov rdx, r12
lea rax, [0x140021e24]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14000253d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateProcessAsUser_Failed_to_create_proc:__d_n
call fcn.140001010
movzx eax, word [r15]
cmp ax, 0x74
je 0x140002487
cmp ax, 0x2a
jne 0x140002585
mov rcx, qword [0x140026e98]
xorps xmm0, xmm0
xor eax, eax
mov r9, rdi
mov qword [rbp - 0x20], rax
mov r8, r12
mov qword [rsp + 0x78], rax
xor edx, edx
lea rax, [rbp - 8]
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
movups xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x80], 0x68
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x14000252f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateProcessWithTokenW_Failed_to_create_proc:__d_n
call fcn.140001010
jmp 0x140002585
mov rcx, qword [rsp + 0x60]
lea rdx, str.SeAssignPrimaryTokenPrivilege
call fcn.140002090
test eax, eax
je 0x1400025e2
jmp 0x140002292
lea rcx, str.___CreateProcessWithTokenW_OK_n
call fcn.140001010
jmp 0x140002580
lea rcx, str.___CreateProcessAsUser_OK_n
call fcn.140001010
test r14d, r14d
je 0x14000256a
lea rcx, str.___Process_output:_n
call fcn.140001010
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
test r13d, r13d
je 0x140002590
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test rdi, rdi
je 0x1400025a7
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, 1
call fcn.140006d78
mov rcx, rax
call fcn.1400071f0
mov eax, ebx
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140002d40
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.____Current_process_doesnt_have_SeImpersonate_or_SeAssignPrimaryToken_privileges__exiting...__n
call fcn.140001010
mov ecx, 0xffffffff
call fcn.14000bdb0
int3