Function at 0x10001b10
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 8]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10001b66
jmp 0x10001d26
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 3
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0x28], 0
jne 0x10001b85
jmp 0x10001d26
mov ecx, dword [ebp - 0x28]
shl ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10001ba1
jmp 0x10001d26
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x28]
shl eax, 1
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 3
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10001bc4
jmp 0x10001d26
lea eax, [ebp - 0x24]
push eax
push str.SeBackupPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10001be7
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x1c]
push ecx
push str.SeRestorePrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10001c0a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x14]
push edx
push str.SeTakeOwnershipPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10001c2d
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x10001c3a
jmp 0x10001d26
mov dword [ebp - 4], 0
jmp 0x10001c4c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [edx]
jae 0x10001d00
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax + 4]
cmp edx, dword [ebp - 0x24]
jne 0x10001c87
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax + 8]
cmp edx, dword [ebp - 0x20]
je 0x10001cfb
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + edx + 4]
cmp ecx, dword [ebp - 0x1c]
jne 0x10001cb4
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + edx + 8]
cmp ecx, dword [ebp - 0x18]
je 0x10001cfb
mov edx, dword [ebp - 4]
imul edx, edx, 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + ecx + 4]
cmp eax, dword [ebp - 0x14]
jne 0x10001ce1
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + ecx + 8]
cmp eax, dword [ebp - 0x10]
je 0x10001cfb
mov ecx, 1
test ecx, ecx
je 0x10001cfb
mov edx, dword [ebp - 4]
imul edx, edx, 0xc
mov eax, dword [ebp - 0xc]
mov dword [eax + edx + 0xc], 2
jmp 0x10001c43
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10001d1e
jmp 0x10001d26
xor ecx, ecx
jne 0x10001b4a
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret