Function at 0x469ff0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8430
push 0x47d4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
movzx eax, byte [0x4c8d21]
test eax, eax
je 0x46a023
jmp 0x46a1f2
lea ecx, [ebp - 0x28]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46a1eb
mov dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 3
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0x24], 0
je 0x46a1d2
mov ecx, dword [ebp - 0x24]
shl ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x24]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 3
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x46a1c8
lea eax, [ebp - 0x30]
push eax
push str.SeBackupPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x46a0b9
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
push ecx
push str.SeRestorePrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x46a0dc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x40]
push edx
push str.SeTakeOwnershipPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x46a0ff
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x20], 0
jmp 0x46a111
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
sub edx, 1
cmp dword [ebp - 0x20], edx
jge 0x46a1b0
mov eax, dword [ebp - 0x20]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 8]
cmp edx, dword [ebp - 0x2c]
jne 0x46a146
mov eax, dword [ebp - 0x20]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 4]
cmp edx, dword [ebp - 0x30]
je 0x46a1ab
mov eax, dword [ebp - 0x20]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 8]
cmp edx, dword [ebp - 0x34]
jne 0x46a16a
mov eax, dword [ebp - 0x20]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 4]
cmp edx, dword [ebp - 0x38]
je 0x46a1ab
mov eax, dword [ebp - 0x20]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 8]
cmp edx, dword [ebp - 0x3c]
jne 0x46a18e
mov eax, dword [ebp - 0x20]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 4]
cmp edx, dword [ebp - 0x40]
je 0x46a1ab
mov eax, dword [ebp - 0x20]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 0xc]
or edx, 2
mov eax, dword [ebp - 0x20]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax + 0xc], edx
jmp 0x46a108
push 0
push 0
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xffffffff
call fcn.0046a1e0
jmp 0x46a1eb
mov byte [0x4c8d21], 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret