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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xcb0]
sub rsp, 0xdb0
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rbp + 0xca0], rax
mov rbx, r8
mov esi, edx
mov r14, rcx
cmp edx, 0xffffffff
jne 0x14000edc5
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
lea rcx, [rbp + 0xa92]
xor r15d, r15d
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0xa90], r15w
call fcn.140152380
lea rdx, str.SessionId_is_:__d
lea rcx, [rbp + 0xa90]
mov r8d, esi
call fcn.140008830
test rbx, rbx
je 0x14000ee77
lea rcx, [rbp + 0x292]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x290], r15w
call fcn.140152380
lea rdx, [rbp + 0xa90]
lea rcx, [rbp + 0x290]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x290]
lea rdx, [rbp + 0x290]
mov qword [rsp + 0x78], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.140008390
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140012c90
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [rbp + 0x50], 0x238
mov rdi, rax
nop dword [rax]
lea rdx, str.winlogon.exe
lea rcx, [rbp + 0x7c]
call fcn.14014f0bc
test eax, eax
jne 0x14000eec2
mov ecx, dword [rbp + 0x58]
lea rdx, [rbp - 0x78]
mov dword [rbp - 0x78], r15d
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x14000eec2
cmp dword [rbp - 0x78], esi
je 0x14000efc6
lea rdx, [rbp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000ee90
mov edi, dword [rbp - 0x78]
lea rdx, [rbp - 0x50]
mov ecx, esi
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x68]
lea r12d, [rdx + 0x30]
call fcn.140152380
lea rax, str.winsta0default
mov r8d, edi
mov qword [rbp - 0x20], rax
xor eax, eax
xor edx, edx
mov ecx, 0x2000000
mov dword [rbp - 0x30], 0x68
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [rbp - 0x60]
mov edx, 0x201eb
mov rcx, rax
mov r13, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000efce
test rbx, rbx
je 0x14000efbf
lea rcx, [rbp + 0x292]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x290], r15w
call fcn.140152380
lea rdx, str.Process_token_open_Error
lea rcx, [rbp + 0x290]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x290]
lea rdx, [rbp + 0x290]
mov qword [rsp + 0x78], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.140008390
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140012c90
xor eax, eax
jmp 0x14000f2c3
mov edi, dword [rbp + 0x58]
jmp 0x14000eed6
lea r8, [rbp - 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14000f012
test rbx, rbx
je 0x14000efbf
lea rcx, [rbp + 0x292]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x290], r15w
call fcn.140152380
lea rdx, str.Lookup_Privilege_value_Error:
jmp 0x14000ef6a
mov rax, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
mov r9d, 1
mov qword [rbp + 0x44], rax
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x2000000
mov dword [rbp + 0x40], 1
mov dword [rsp + 0x20], 1
mov dword [rbp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x70]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r9d, [rdx - 8]
mov r8d, esi
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rcx, qword [rbp - 0x70]
lea r8, [rbp + 0x40]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000f0c2
test rbx, rbx
je 0x14000efbf
lea rcx, [rbp + 0x292]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x290], r15w
call fcn.140152380
lea rdx, str.Adjust_Privilege_value_Error
jmp 0x14000ef6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x14000f100
test rbx, rbx
je 0x14000efbf
lea rcx, [rbp + 0x292]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x290], r15w
call fcn.140152380
lea rdx, str.Token_does_not_have_the_previlege
jmp 0x14000ef6a
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x68]
mov r8d, 1
mov qword [rbp - 0x68], r15
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x14000f124
mov r12d, 0x8000400
jmp 0x14000f128
mov qword [rbp - 0x68], r15
test rbx, rbx
je 0x14000f1a1
lea rcx, [rbp + 0x292]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x290], r15w
call fcn.140152380
lea rcx, [rbp + 0x290]
mov rdx, r14
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x290]
lea rdx, [rbp + 0x290]
mov qword [rsp + 0x78], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.140008390
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140012c90
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x48]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov r8, r14
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
xor edx, edx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14000f214
test rbx, rbx
je 0x14000f291
lea rcx, [rbp + 0x292]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x290], r15w
call fcn.140152380
lea rdx, str.CreateProcessAsUser_FAIL
jmp 0x14000f23c
test rbx, rbx
je 0x14000f291
lea rcx, [rbp + 0x292]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x290], r15w
call fcn.140152380
lea rdx, str.CreateProcessAsUser_SUCCESS
lea rcx, [rbp + 0x290]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x290]
lea rdx, [rbp + 0x290]
mov qword [rsp + 0x78], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.140008390
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140012c90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0xca0]
xor rcx, rsp
call fcn.14014e4d0
mov rbx, qword [rsp + 0xe08]
add rsp, 0xdb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret