Function at 0x180001fb4
Capabilities:
Acquire debug privileges
Get token privileges

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9f78]
mov eax, 0xa078
call fcn.180004210
sub rsp, rax
mov eax, 0x1000
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov edx, 0x210
mov ecx, eax
mov dword [rbp + 0x9fd8], eax
mov dword [rbp + 0x9fc8], 0x20
mov r15d, 1
mov qword [rsp + 0x48], r12
call fcn.180004860
mov dword [rsi], r12d
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov r13, rax
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x20], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0x10000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180002054
mov rcx, r13
call fcn.180003ec0
xor eax, eax
jmp 0x18000273c
mov rcx, qword [rsp + 0x40]
call fcn.180003138
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.NTDLL.DLL
mov qword [0x18001cdb8], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, 0x3e800
mov ecx, edi
mov qword [0x18001cdc0], rax
mov dword [rbp + 0x9fc8], edi
call fcn.180004b18
mov r8d, edi
mov edi, 5
jmp 0x1800020dc
mov rcx, r14
call fcn.180003ec0
mov ecx, dword [rbp + 0x9fc8]
call fcn.180004b18
mov r8d, dword [rbp + 0x9fc8]
lea r9, [rbp + 0x9fc8]
mov rdx, rax
mov ecx, edi
mov r14, rax
call qword [0x18001cdb8]
cmp eax, 0xc0000004
je 0x1800020c2
mov qword [rsp + 0x60], r14
test eax, eax
jne 0x18000272f
mov eax, dword [r14]
mov r8d, dword [r14 + 0x50]
neg eax
sbb ecx, ecx
xor edx, edx
and ecx, r15d
mov r15d, ecx
mov dword [rsp + 0x58], ecx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180002700
cmp dword [r14 + 0x60], 0
jbe 0x180002482
mov r15d, 4
and qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x40]
mov r8, rax
mov edx, r15d
mov rcx, rdi
mov dword [rsp + 0x20], 0x2000000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x180002465
mov rcx, qword [rsp + 0x40]
mov edx, 2
call fcn.1800029fc
mov rsi, rax
test rax, rax
je 0x18000245a
lea rdx, str.Token
mov rcx, rax
call fcn.1800052b4
test eax, eax
je 0x180002445
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x180002445
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x48]
mov edx, 0x2000000
mov rcx, rax
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x48]
call fcn.180002f38
test eax, eax
je 0x180002433
mov rdx, qword [rbp + 0x9fc0]
mov eax, dword [rbp + 0x9fd8]
cmp dword [rdx], eax
jb 0x18000223d
add eax, eax
mov rcx, r13
mov dword [rbp + 0x9fd8], eax
imul rdx, rax, 0x210
call fcn.180004bd0
mov r13, rax
test rax, rax
je 0x180002710
mov rdx, qword [rbp + 0x9fc0]
mov eax, dword [rdx]
imul rcx, rax, 0x210
mov rax, qword [rsp + 0x40]
mov qword [rcx + r13 + 0x208], rax
mov eax, dword [rdx]
mov rcx, qword [rsp + 0x40]
imul rdx, rax, 0x210
add rdx, r13
call fcn.180002bd8
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x5c]
lea r8, [rbp + 0x1f70]
mov r9d, 0x1000
mov edx, 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180002428
mov eax, dword [rbp + 0x1f70]
test eax, eax
je 0x180002428
xor edi, edi
test eax, eax
je 0x180002423
lea rcx, [rdi + rdi*2]
lea rdx, [rbp + 0x1f74]
lea r9, [rbp + 0x9fd0]
lea rdx, [rdx + rcx*4]
lea r8, [rsp + 0x70]
xor ecx, ecx
mov dword [rbp + 0x9fd0], 0x1000
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
lea rdx, str.SeAssignPrimaryTokenPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x1800022fd
mov dword [rbx], 1
jmp 0x180002415
lea rdx, str.SeCreateTokenPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x18000231e
mov dword [rbx + 4], 1
jmp 0x180002415
lea rdx, str.SeTcbPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x18000233f
mov dword [rbx + 8], 1
jmp 0x180002415
lea rdx, str.SeTakeOwnershipPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x180002360
mov dword [rbx + 0xc], 1
jmp 0x180002415
lea rdx, str.SeBackupPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x180002381
mov dword [rbx + 0x10], 1
jmp 0x180002415
lea rdx, str.SeRestorePrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x18000239f
mov dword [rbx + 0x14], 1
jmp 0x180002415
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x1800023bd
mov dword [rbx + 0x18], 1
jmp 0x180002415
lea rdx, [0x180012588]
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x1800023db
mov dword [rbx + 0x1c], 1
jmp 0x180002415
lea rdx, str.SeRelabelPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x1800023f9
mov dword [rbx + 0x20], 1
jmp 0x180002415
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x180002415
mov dword [rbx + 0x24], 1
inc edi
cmp edi, dword [rbp + 0x1f70]
jb 0x1800022b0
mov rdi, qword [rsp + 0x50]
mov rax, qword [rbp + 0x9fc0]
inc dword [rax]
jmp 0x18000243e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
jmp 0x18000244a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.180003ec0
jmp 0x180002465
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r12d
add r15d, 4
cmp r12d, dword [r14 + 0x60]
jb 0x180002149
mov rsi, qword [rbp + 0x9fc0]
mov r15d, dword [rsp + 0x58]
lea r8, [rsp + 0x40]
mov edx, 0x2000000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r12d, r12d
test eax, eax
je 0x1800026f7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1800026ec
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x48]
lea r8d, [r12 + 1]
mov rcx, rax
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1800026ec
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x48]
call fcn.180002f38
test eax, eax
je 0x1800026df
mov eax, dword [rsi]
imul rcx, rax, 0x210
mov rax, qword [rsp + 0x40]
mov qword [rcx + r13 + 0x208], rax
mov eax, dword [rsi]
mov rcx, qword [rsp + 0x40]
imul rdx, rax, 0x210
add rdx, r13
call fcn.180002bd8
mov rcx, qword [rsp + 0x40]
inc dword [rsi]
lea rax, [rsp + 0x5c]
lea r8, [rbp + 0x1f70]
lea edx, [r12 + 3]
mov r9d, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800026d8
mov edi, r12d
cmp dword [rbp + 0x1f70], r12d
jbe 0x1800026d3
mov eax, edi
lea rdx, [rbp + 0x1f74]
lea r9, [rbp + 0x9fd0]
lea rcx, [rax + rax*2]
lea r8, [rsp + 0x70]
mov dword [rbp + 0x9fd0], 0x1000
lea rdx, [rdx + rcx*4]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
lea rdx, str.SeAssignPrimaryTokenPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x1800025ad
mov dword [rbx], 1
jmp 0x1800026c5
lea rdx, str.SeCreateTokenPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x1800025ce
mov dword [rbx + 4], 1
jmp 0x1800026c5
lea rdx, str.SeTcbPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x1800025ef
mov dword [rbx + 8], 1
jmp 0x1800026c5
lea rdx, str.SeTakeOwnershipPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x180002610
mov dword [rbx + 0xc], 1
jmp 0x1800026c5
lea rdx, str.SeBackupPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x180002631
mov dword [rbx + 0x10], 1
jmp 0x1800026c5
lea rdx, str.SeRestorePrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x18000264f
mov dword [rbx + 0x14], 1
jmp 0x1800026c5
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x18000266d
mov dword [rbx + 0x18], 1
jmp 0x1800026c5
lea rdx, [0x180012588]
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x18000268b
mov dword [rbx + 0x1c], 1
jmp 0x1800026c5
lea rdx, str.SeRelabelPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x1800026a9
mov dword [rbx + 0x20], 1
jmp 0x1800026c5
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x70]
call fcn.1800052b4
test eax, eax
jne 0x1800026c5
mov dword [rbx + 0x24], 1
inc edi
cmp edi, dword [rbp + 0x1f70]
jb 0x18000255e
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
jmp 0x1800026f1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800026d8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [r14]
add r14, rax
test r15d, r15d
je 0x18000272f
jmp 0x180002105
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call fcn.180003ec0
mov rax, r13
add rsp, 0xa078
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret