Function at 0x14000f520
Capabilities:
Create process on windows
Get token privileges

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1400561e0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r15d, r9d
mov qword [rbp - 0x68], r8
mov r13, rdx
mov dword [rbp - 0x80], r9d
mov r12, qword [rbp + 0xe0]
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
mov esi, ebx
mov qword [rbp - 0x70], rbx
xor edx, edx
lea r8d, [rbx + 0x68]
lea rcx, [rbp - 0x30]
call fcn.14001dc30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
cmp byte [rbp + 0xd0], al
je 0x14000f6bd
xor edi, edi
mov dword [rsp + 0x70], edi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x70]
lea rdx, str.WTSQueryUserToken
lea rcx, str.Wtsapi32.dll
call fcn.14000f1bc
cmp dword [rsp + 0x70], edi
je 0x14000f7e3
mov dword [rsp + 0x78], edi
lea edi, [rbx + 1]
mov dword [rsp + 0x74], edi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
lea r8, [rsp + 0x74]
lea edx, [rbx + 0x12]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x68]
cmp dword [rsp + 0x74], 3
jne 0x14000f635
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 8]
lea r8, [rbp - 0x80]
lea edx, [rbx + 0x13]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000f654
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x60], rax
jmp 0x14000f654
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, edi
xor r8d, r8d
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
movups xmm0, xmmword [str.S_1_16_12288]
movups xmmword [rbp + 0x40], xmm0
movsd xmm1, qword [0x1400405e0]
movsd qword [rbp + 0x50], xmm1
movzx eax, word [0x1400405e8]
mov word [rbp + 0x58], ax
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x40]
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x14000f7e3
mov dword [rbp - 0x40], 0x20
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x48], rcx
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea r9d, [rax + 0x10]
lea r8, [rbp - 0x48]
mov edx, 0x19
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jmp 0x14000f707
lea r8, [rsp + 0x68]
mov edx, 0xf01ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000f7f3
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov edi, 1
mov dword [rsp + 0x20], edi
mov r9d, edi
xor r8d, r8d
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp qword [rsp + 0x60], rbx
je 0x14000f7e3
mov dword [rbp - 0x78], r15d
mov r9d, 4
lea r8, [rbp - 0x78]
lea edx, [r9 + 8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x14000f7e3
mov dword [rbp - 0x30], 0x68
lea rax, str.WinSta0Default
mov qword [rbp - 0x20], rax
movzx eax, byte [rbp + 0xd8]
lea esi, [rax*4 + 0x420]
mov r15d, 0x30
cmp byte [rbp + 0xd0], bl
jne 0x14000f788
mov ecx, r15d
call fcn.14001b228
mov qword [rbp - 0x80], rax
test rax, rax
je 0x14000f786
mov r8d, 0x101000
mov edx, edi
mov rcx, rax
call fcn.1400075bc
mov rbx, rax
jmp 0x14000f788
xor ebx, ebx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], esi
and dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov r9, rbx
mov r8, qword [rbp - 0x68]
mov rdx, r13
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test rbx, rbx
je 0x14000f7e3
mov rcx, rbx
call fcn.140007e0c
mov rdx, r15
mov rcx, rbx
call fcn.14001af80
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000f7f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000f803
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x14000f828
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x50]
mov dword [r12], eax
mov rax, qword [rbp - 0x58]
jmp 0x14000f82a
xor eax, eax
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14001af60
add rsp, 0x170
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret