Function at 0x10000a9d4
Capabilities:
Get token privileges

Disassembly:
mov eax, dword [rsp + 0x6c]
cmp dword [rcx], eax
je 0x10000aac8
jmp 0x10000aac1
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
lea rbp, [0x1000298d8]
mov qword [rax - 0x20], rbp
and qword [rax - 0x18], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000133a7
and dword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edi, [r9 + 3]
mov edx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10000aa57
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000133d7
mov ecx, dword [rsp + 0x60]
call qword [0x100039920]
mov rbx, rax
test rax, rax
je 0x100013407
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
mov r8, rbx
mov edx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x100013437
lea r8, [rsp + 0x68]
lea rdx, str.SeChangeNotifyPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor r11d, r11d
cmp dword [rbx], r11d
jbe 0x10000aad4
lea rcx, [rbx + 8]
mov eax, dword [rsp + 0x68]
cmp dword [rcx - 4], eax
je 0x10000a9ba
mov dword [rcx + 4], 4
inc r11d
add rcx, 0xc
cmp r11d, dword [rbx]
jb 0x10000aab4
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100013471
mov rcx, rbx
call qword [case.0x10000aeca.0]
nop
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000ab1c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1000133d0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x10000ab1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x100013400
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x10000ab1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x100013430
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x10000ab1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, rbx
call qword [case.0x10000aeca.0]
nop
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10001346a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x10000ab1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, rbx
call qword [case.0x10000aeca.0]
nop
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1000134a4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x10000ab1e