Function at 0x1400d0a80
Capabilities:
Get token privileges

Disassembly:
push rbp
push r12
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r12d, r12d
mov r15, rcx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400d0c93
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x2c8], rbx
xor r9d, r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x2d0], rsi
lea edx, [r9 + 3]
xor r8d, r8d
mov qword [rsp + 0x298], rdi
mov qword [rsp + 0x290], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400d0c66
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400d0c66
mov edx, dword [rsp + 0x30]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rsp + 0x38]
mov rdi, rax
test rax, rax
jne 0x1400d0b64
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400e1f80
lea edx, [rdi + 1]
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + gethostbyaddr]
jmp 0x1400d0c71
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rdi
mov edx, 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r14d, eax
test eax, eax
jne 0x1400d0b9c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400d0c66
mov ebx, r12d
cmp dword [rdi], ebx
jbe 0x1400d0c5d
nop word [rax + rax]
movsxd rax, ebx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
lea rdx, [rax*2 + 1]
xor ecx, ecx
mov dword [rsp + 0x40], Ordinal_266
add rdx, rax
lea rdx, [rdi + rdx*4]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x1400d0c53
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
cmp word [rsp + 0x70], r12w
jne 0x1400d0c01
mov r8, r12
jmp 0x1400d0c1a
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], r12w
jne 0x1400d0c10
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140004990
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.140028450
test eax, eax
sete sil
cmp qword [rsp + 0x60], 8
jb 0x1400d0c4e
mov rcx, qword [rsp + 0x48]
call sub.mfc110u.dll_Ordinal_1482
test sil, sil
jne 0x1400d0caf
inc ebx
cmp ebx, dword [rdi]
jb 0x1400d0bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x2d0]
mov rbx, qword [rsp + 0x2c8]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0x2a0
pop r15
pop r12
pop rbp
ret
movsxd rax, ebx
inc rax
lea rax, [rax + rax*2]
cmp dword [rdi + rax*4], r12d
jne 0x1400d0ce8
mov dword [rdi + rax*4], 2
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
setne al
jmp 0x1400d0c73