Function at 0x140002360
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 [section..data]
xor rax, rsp
mov qword [rbp + 0x18], rax
movups xmm0, xmmword [str.Winsta0default]
xor ebx, ebx
mov r14d, r9d
movups xmm1, xmmword [0x14001d5b0]
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.140002230
test eax, eax
je 0x140002496
mov rcx, qword [0x140022dc8]
lea rdx, str.SeImpersonatePrivilege
call fcn.140002230
mov rcx, qword [0x140022dc8]
lea rdx, str.SeAssignPrimaryTokenPrivilege
call fcn.140002230
mov rcx, qword [0x140022dc8]
lea rdx, str.SeTcbPrivilege
call fcn.140002230
mov rcx, qword [0x140022dc8]
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 0x1400024d6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0xea60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, r12
mov edx, 0x7530
sub r8, rax
mov rdi, rax
mov rcx, rax
lea rax, [rdx + 0x7fff8ace]
test rax, rax
je 0x1400024b0
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400024b0
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140002471
jmp 0x1400024b5
mov rcx, qword [rsp + 0x60]
lea rdx, str.SeAssignPrimaryTokenPrivilege
call fcn.140002230
test eax, eax
jne 0x140002432
jmp 0x1400026fa
test rdx, rdx
jne 0x1400024b9
sub rcx, 2
mov word [rcx], bx
lea r8, [0x14001d650]
mov rcx, rdi
call fcn.140001d30
mov r8, rsi
mov rcx, rdi
call fcn.140001d30
movzx eax, word [r15]
cmp ax, 0x75
je 0x1400024ea
cmp ax, 0x2a
jne 0x1400025b6
xor edx, edx
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x68]
call fcn.1400045d0
xor eax, eax
mov dword [rbp - 0x80], 0x68
mov qword [rsp + 0x68], rax
test r14d, r14d
mov qword [rsp + 0x70], rax
mov esi, 0x10
mov qword [rsp + 0x78], rax
cmovne esi, ebx
lea rax, [rbp - 8]
mov qword [rbp - 0x70], rax
jne 0x140002553
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov rcx, qword [0x140022db8]
lea r8, [rbp - 0x10]
mov r9d, 4
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rcx, qword [0x140022db8]
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, [0x14001d654]
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 0x140002657
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Create123Process456AsUser_Failed_to_create_proc:__d_n
call fcn.1400011f0
movzx eax, word [r15]
cmp ax, 0x74
je 0x1400025ca
cmp ax, 0x2a
jne 0x14000269d
xor edx, edx
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x68]
call fcn.1400045d0
mov rcx, qword [0x140022db8]
xor eax, eax
mov qword [rsp + 0x68], rax
mov r9, rdi
mov qword [rsp + 0x70], rax
mov r8, r12
mov qword [rsp + 0x78], rax
xor edx, edx
lea rax, [rbp - 8]
mov dword [rbp - 0x80], 0x68
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
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x140002649
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Create123Process456WithTokenW_Failed_to_create_proc:__d_n
call fcn.1400011f0
jmp 0x14000269d
lea rcx, str.___Create123Process456WithTokenW_OK_n
call fcn.1400011f0
jmp 0x140002698
lea rcx, str.___Create123Process456AsUser_OK_n
call fcn.1400011f0
test r14d, r14d
je 0x140002682
lea rcx, str.___Process_output:_n
call fcn.1400011f0
mov rcx, qword [rsp + 0x68]
or 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 0x1400026a8
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test rdi, rdi
je 0x1400026bf
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.140005484
mov rcx, rax
call fcn.1400056c0
mov eax, ebx
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140003090
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
or ecx, 0xffffffff
call fcn.140008434
int3