Function at 0x140007c44
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov eax, dword [rsp + 0x170]
mov esi, 1
mov r14, rcx
mov ebx, eax
mov r13, rdx
xor edi, edi
and eax, 2
lea r8d, [rsi + 0x26]
lea rcx, [r11 - 0x67]
xor edx, edx
and ebx, esi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x170], eax
mov byte [r11 - 0x68], dil
call fcn.1400fdc00
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x88], 0x18
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x98], edi
call fcn.14005cecc
mov qword [rsp + 0x60], rdi
call fcn.140003964
lea r9, [0x140136f98]
lea r8, [0x140136998]
lea rdx, [0x140117710]
lea rcx, str.WTSGetActiveConsoleSessionId
call fcn.14005afa4
mov rax, qword [0x140136998]
or dword [rsp + 0x70], 0xffffffff
mov r15, qword [rsp + 0x168]
mov r12, qword [rsp + 0x150]
mov ebp, dword [rsp + 0x148]
cmp rax, rdi
je 0x140007fe3
call rax
mov dword [rsp + 0x70], eax
cmp eax, 0xffffffff
je 0x140007fe3
mov qword [rsp + 0x80], rdi
cmp ebx, edi
je 0x140007de0
mov r8, qword [0x140136988]
cmp r8, rdi
je 0x140007fe3
lea rdx, [rsp + 0x60]
mov ecx, eax
call r8
cmp eax, edi
je 0x140007fe3
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x148]
lea r9d, [rsi + 7]
lea r8, [rsp + 0x80]
lea edx, [rsi + 0x12]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x148], edi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rbx, qword [rsp + 0x68]
cmp eax, edi
cmovne rbx, qword [rsp + 0x80]
mov qword [rsp + 0x68], rbx
cmp rbx, rdi
jne 0x140007ec2
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov r9d, esi
mov edx, 0xf01ff
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x140007eb5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x201eb
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, edi
je 0x140007fe3
lea r8, [rsp + 0x168]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, edi
je 0x140007fe3
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x60]
mov r9d, esi
mov qword [rsp + 0xa4], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x2000000
mov dword [rsp + 0xa0], esi
mov dword [rsp + 0x20], esi
mov dword [rsp + 0xac], 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp eax, edi
je 0x140007fe3
mov rcx, qword [rsp + 0x68]
mov r9d, 4
lea r8, [rsp + 0x70]
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
cmp eax, edi
je 0x140007fe3
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0xa0]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, edi
je 0x140007fe3
mov rbx, qword [rsp + 0x68]
mov rsi, rbx
cmp rbx, rdi
je 0x140007fe3
mov edi, ebp
or edi, 0x10
cmp dword [rsp + 0x170], 0
je 0x140007f03
mov rcx, rbx
call fcn.1400060a0
mov rbx, rax
test rax, rax
je 0x140007fe3
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], rbx
jmp 0x140007f12
cmp qword [rsp + 0x178], 0
jne 0x140007fe3
and qword [rsp + 0x78], 0
mov rcx, r12
test r12, r12
jne 0x140007f54
mov rax, qword [0x1401369a0]
test rax, rax
je 0x140007f54
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov rdx, rsi
call rax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140007f47
bts edi, 0xa
test eax, eax
je 0x140007fe3
mov rbx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x160]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edi
mov edi, dword [rsp + 0x140]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x88]
mov r8, r13
mov rdx, r14
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
test rcx, rcx
je 0x140007fc3
call qword [0x1401369a8]
and qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140007fd3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
test ebx, ebx
je 0x140007ff7
jmp 0x14000811d
mov rcx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x160]
mov edi, dword [rsp + 0x140]
test rcx, rcx
je 0x140008002
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x60], 0
cmp dword [rsp + 0x170], 0
je 0x14000806b
xor ecx, ecx
call fcn.1400060a0
mov rcx, qword [rsp + 0x158]
mov r9, qword [rsp + 0x138]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x130]
mov r8, r13
mov rdx, r14
mov rcx, rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x1400080f5
mov rcx, qword [rsp + 0x178]
mov rax, qword [rsp + 0x158]
test rcx, rcx
je 0x1400080bd
mov r8, qword [rsp + 0x188]
mov rdx, qword [rsp + 0x180]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], ebp
mov r9d, ebp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
jmp 0x1400080f5
mov r9, qword [rsp + 0x138]
mov r8, qword [rsp + 0x130]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov rdx, r13
mov rcx, r14
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
test rcx, rcx
je 0x140008107
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
and qword [rsp + 0x60], 0
test rcx, rcx
je 0x14000811d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret