Function at 0x14000c550
Capabilities:
Get token privileges

Disassembly:
jmp 0x14000c550
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x230
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x1f8], rax
lea rcx, [0x14002e556]
call fcn.140001645
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xf8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x28]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000c5e5
jmp 0x14000c807
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000c61c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14000c61c
jmp 0x14000c807
mov eax, dword [rbp + 0x44]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x14000c647
jmp 0x14000c807
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x44]
mov r8, qword [rbp + 0x88]
mov edx, 3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000c678
jmp 0x14000c807
mov dword [rbp + 0xa4], 0
jmp 0x14000c692
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax]
cmp dword [rbp + 0xa4], eax
jae 0x14000c807
mov eax, dword [rbp + 0xa4]
imul rax, rax, 0xc
lea rcx, [rbp + 0xc8]
mov rdx, qword [rbp + 0x88]
mov rdi, rcx
lea rsi, [rdx + rax + 4]
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 0x64], 0
lea r9, [rbp + 0x64]
xor r8d, r8d
lea rdx, [rbp + 0xc8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x14000c704
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14000c704
jmp 0x14000c807
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0
je 0x14000c802
lea r9, [rbp + 0x64]
mov r8, qword [rbp + 0xf8]
lea rdx, [rbp + 0xc8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x14000c7f5
mov rdx, qword [rbp + 0x220]
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x14000c7f5
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0x118]
call sub.VCRUNTIME140D.dll_memset
mov dword [rbp + 0x118], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rbp + 0xc8]
mov qword [rbp + rax + 0x11c], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rbp + rax + 0x124], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rbp + 0x118]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14000c7f3
mov dword [rbp + 4], 1
jmp 0x14000c807
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000c684
cmp qword [rbp + 0x88], 0
je 0x14000c81e
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rbp + 0x28], 0
je 0x14000c82f
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001fdb0]
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x1f8]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x200]
pop rdi
pop rsi
pop rbp
ret