Function at 0x100b7cb0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022e615
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
test eax, eax
je 0x100b7f0b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x6c], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x100b7f26
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100b7f86
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x100b7f86
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x64], vtable.ATL::CAccessToken.0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
push ecx
push 0
push 0
push 1
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100b7f56
xor esi, esi
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 4
cmp eax, 0x400
ja 0x100b7de1
push eax
call fcn.100b7bf0
add esp, 4
test al, al
mov eax, dword [ebp - 0x34]
je 0x100b7de1
call fcn.100bab10
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x100b7ded
push eax
lea ecx, [ebp - 0x44]
call fcn.100b6540
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x100b7e18
mov byte [ebp - 4], 3
test esi, esi
je 0x100b7f56
mov edi, dword [esi]
push esi
mov esi, edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
je 0x100b7f56
jmp 0x100b7e00
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x34]
push eax
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x100b7e57
mov byte [ebp - 4], 3
test esi, esi
je 0x100b7f56
nop dword [eax + eax]
mov edi, dword [esi]
push esi
mov esi, edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
jne 0x100b7e40
jmp 0x100b7f56
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
push dword [eax]
call fcn.10084890
test esi, esi
je 0x100b7e7d
mov ecx, dword [esi]
push esi
mov dword [ebp - 0x40], ecx
mov esi, ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test esi, esi
jne 0x100b7e68
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x39], 1
test eax, eax
je 0x100b7e91
push eax
call esi
push 4
push 0
call fcn.100b9c1b
add esp, 8
push edi
call esi
mov esi, dword [ebp - 0x50]
jmp 0x100b7ec7
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.100836c0
mov al, byte [ebp - 0x39]
lea ecx, [ebp - 0x30]
mov byte [esi + 0x18], al
call fcn.100895a0
mov eax, esi
lea esp, [ebp - 0xc8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret
push 0x10238600
lea ecx, [ebp - 0x7c]
call fcn.10081ad0
push 0x102ca4c4
lea eax, [ebp - 0x7c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.10081d80
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_open_current_process
push esi
push eax
lea ecx, [ebp - 0x90]
call fcn.10081d90
push 0x102ca4a8
lea eax, [ebp - 0x90]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.10081d80
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_get_user_from_the_token
push esi
push eax
lea ecx, [ebp - 0xa4]
call fcn.10081d90
push 0x102ca4a8
lea eax, [ebp - 0xa4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.10081d80
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_open_process_token
push esi
push eax
lea ecx, [ebp - 0xb8]
call fcn.10081d90
push 0x102ca4a8
lea eax, [ebp - 0xb8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3