Function at 0x180001770
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor ebx, ebx
mov qword [rbp - 0x38], 0xffffffffffffffff
mov dword [rbp - 0x40], ebx
mov r14d, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x38]
lea edx, [rbx + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1800017d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken___failed._Error:__d_n
call fcn.1800011c0
jmp 0x1800019b4
mov r9d, dword [rbp - 0x40]
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r8 + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x180001819
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x180001819
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation___failed._Error:__d_n
call fcn.1800011c0
jmp 0x1800019b4
mov ecx, dword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1800019b4
mov r9d, dword [rbp - 0x40]
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
mov r8, r14
mov edx, 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x18000186a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation___failed._Error:__d_n
call fcn.1800011c0
jmp 0x1800019b4
mov qword [rsp + 0x80], rsi
mov esi, ebx
cmp dword [r14], ebx
jbe 0x1800019ac
mov qword [rsp + 0x88], rdi
nop word [rax + rax]
mov eax, esi
lea r9, [rbp - 0x3c]
xor r8d, r8d
mov dword [rbp - 0x3c], ebx
lea rdx, [rbp - 0x30]
lea rcx, [rax + rax*2]
movsd xmm0, qword [r14 + rcx*4 + 4]
mov eax, dword [r14 + rcx*4 + 0xc]
xor ecx, ecx
movsd qword [rbp - 0x30], xmm0
mov dword [rbp - 0x28], eax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x1800018d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180001990
mov eax, dword [rbp - 0x3c]
inc eax
mov ecx, eax
add rcx, rcx
mov dword [rbp - 0x3c], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1800019a4
lea r9, [rbp - 0x3c]
mov r8, rax
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x180001990
lea rdx, str.SeImpersonatePrivilege
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x180001937
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
cmp esi, dword [r14]
jb 0x180001890
jmp 0x1800019a4
mov rax, qword [rbp - 0x30]
lea r8, [rbp - 0x20]
mov rcx, qword [rbp - 0x38]
mov r9d, 0x10
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x14], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x180001981
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800019a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.AdjustTokenPrivileges___failed._Error:__d_n
jmp 0x18000199d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.LookupPrivilegeName___failed._Error:__d_n
mov edx, eax
call fcn.1800011c0
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1800019c3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1800019d1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180001db0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret