Function at 0x40ad40
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4254a9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x433610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
call fcn.0040a670
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x1c]
push eax
push str.SeCreateTokenPrivilege
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], 1
call ebx
test eax, eax
je 0x40adb1
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeAssignPrimaryTokenPrivilege
push edi
call ebx
test eax, eax
je 0x40add5
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeLockMemoryPrivilege
push edi
call ebx
test eax, eax
je 0x40adf9
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeIncreaseQuotaPrivilege
push edi
call ebx
test eax, eax
je 0x40ae1d
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeUnsolicitedInputPrivilege
push edi
call ebx
test eax, eax
je 0x40ae41
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeMachineAccountPrivilege
push edi
call ebx
test eax, eax
je 0x40ae65
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeTcbPrivilege
push edi
call ebx
test eax, eax
je 0x40ae89
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeSecurityPrivilege
push edi
call ebx
test eax, eax
je 0x40aead
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeTakeOwnershipPrivilege
push edi
call ebx
test eax, eax
je 0x40aed1
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeLoadDriverPrivilege
push edi
call ebx
test eax, eax
je 0x40aef5
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeSystemProfilePrivilege
push edi
call ebx
test eax, eax
je 0x40af19
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeSystemtimePrivilege
push edi
call ebx
test eax, eax
je 0x40af3d
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeProfileSingleProcessPrivilege
push edi
call ebx
test eax, eax
je 0x40af61
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeIncreaseBasePriorityPrivilege
push edi
call ebx
test eax, eax
je 0x40af85
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeCreatePagefilePrivilege
push edi
call ebx
test eax, eax
je 0x40afa9
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeCreatePermanentPrivilege
push edi
call ebx
test eax, eax
je 0x40afcd
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeBackupPrivilege
push edi
call ebx
test eax, eax
je 0x40aff1
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeRestorePrivilege
push edi
call ebx
test eax, eax
je 0x40b015
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeDebugPrivilege
push edi
call ebx
test eax, eax
je 0x40b039
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeAuditPrivilege
push edi
call ebx
test eax, eax
je 0x40b05d
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeSystemEnvironmentPrivilege
push edi
call ebx
test eax, eax
je 0x40b081
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeRemoteShutdownPrivilege
push edi
call ebx
test eax, eax
je 0x40b0a5
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeUndockPrivilege
push edi
call ebx
test eax, eax
je 0x40b0c9
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeSyncAgentPrivilege
push edi
call ebx
test eax, eax
je 0x40b0ed
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeEnableDelegationPrivilege
push edi
call ebx
test eax, eax
je 0x40b111
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeManageVolumePrivilege
push edi
call ebx
test eax, eax
je 0x40b135
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeImpersonatePrivilege
push edi
call ebx
test eax, eax
je 0x40b159
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeCreateGlobalPrivilege
push edi
call ebx
test eax, eax
je 0x40b17d
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeTrustedCredManAccessPrivilege
push edi
call ebx
test eax, eax
je 0x40b1a1
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeRelabelPrivilege
push edi
call ebx
test eax, eax
je 0x40b1c5
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea eax, [ebp - 0x1c]
push eax
push str.SeIncreaseWorkingSetPrivilege
push edi
call ebx
test eax, eax
je 0x40b1e9
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea edx, [ebp - 0x1c]
push edx
push str.SeTimeZonePrivilege
push edi
call ebx
test eax, eax
je 0x40b20d
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
lea ecx, [ebp - 0x1c]
push ecx
push str.SeCreateSymbolicLinkPrivilege
push edi
call ebx
test eax, eax
je 0x40b231
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040a700
mov byte [esi + 0x38], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418330
mov esp, ebp
pop ebp
ret