Function at 0x4ecc20
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcfb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
mov ax, word [0xf55894]
push ebx
push esi
push edi
mov word [ebp - 0x218], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], esp
stosw word es:[edi], ax
push ecx
mov dword [ebp - 4], 0
mov edi, 1
call fcn.004fa6c0
push eax
lea edx, [ebp - 0x418]
push 0x530278
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x218]
push eax
push 0x810
push ecx
call fcn.004edee0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4ecccb
push esi
push str.OpenPolicy
call fcn.004ee070
add esp, 8
mov ax, 0xd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x418]
push edx
push eax
push 0
call fcn.004edf30
add esp, 0xc
test eax, eax
je 0x4ed4ec
mov ax, word [ebp + 0xc]
cmp ax, 1
jne 0x4ecd03
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeTcbPrivilege
push ecx
push edx
jmp 0x4ecd18
cmp ax, 0xffff
jne 0x4ecd22
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeTcbPrivilege
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0xe]
cmp ax, 1
jne 0x4ecd3d
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeCreateTokenPrivilege
push edx
push eax
jmp 0x4ecd52
cmp ax, 0xffff
jne 0x4ecd5c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeCreateTokenPrivilege
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x10]
cmp ax, 1
jne 0x4ecd77
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeTakeOwnershipPrivilege
push eax
push ecx
jmp 0x4ecd8c
cmp ax, 0xffff
jne 0x4ecd96
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeTakeOwnershipPrivilege
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x12]
cmp ax, 1
jne 0x4ecdb1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeCreatePagefilePrivilege
push ecx
push edx
jmp 0x4ecdc6
cmp ax, 0xffff
jne 0x4ecdd0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeCreatePagefilePrivilege
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x14]
cmp ax, 1
jne 0x4ecdeb
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeLockMemoryPrivilege
push edx
push eax
jmp 0x4ece00
cmp ax, 0xffff
jne 0x4ece0a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeLockMemoryPrivilege
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x16]
cmp ax, 1
jne 0x4ece25
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeAssignPrimaryTokenPrivilege
push eax
push ecx
jmp 0x4ece3a
cmp ax, 0xffff
jne 0x4ece44
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeAssignPrimaryTokenPrivilege
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x18]
cmp ax, 1
jne 0x4ece5f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeIncreaseQuotaPrivilege
push ecx
push edx
jmp 0x4ece74
cmp ax, 0xffff
jne 0x4ece7e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeIncreaseQuotaPrivilege
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x1a]
cmp ax, 1
jne 0x4ece99
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeIncreaseBasePriorityPrivilege
push edx
push eax
jmp 0x4eceae
cmp ax, 0xffff
jne 0x4eceb8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeIncreaseBasePriorityPrivilege
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x1c]
cmp ax, 1
jne 0x4eced3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeCreatePermanentPrivilege
push eax
push ecx
jmp 0x4ecee8
cmp ax, 0xffff
jne 0x4ecef2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeCreatePermanentPrivilege
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x1e]
cmp ax, 1
jne 0x4ecf0d
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeDebugPrivilege
push ecx
push edx
jmp 0x4ecf22
cmp ax, 0xffff
jne 0x4ecf2c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeDebugPrivilege
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x20]
cmp ax, 1
jne 0x4ecf47
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeAuditPrivilege
push edx
push eax
jmp 0x4ecf5c
cmp ax, 0xffff
jne 0x4ecf66
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeAuditPrivilege
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x22]
cmp ax, 1
jne 0x4ecf81
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeSecurityPrivilege
push eax
push ecx
jmp 0x4ecf96
cmp ax, 0xffff
jne 0x4ecfa0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeSecurityPrivilege
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x24]
cmp ax, 1
jne 0x4ecfbb
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeSystemEnvironmentPrivilege
push ecx
push edx
jmp 0x4ecfd0
cmp ax, 0xffff
jne 0x4ecfda
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeSystemEnvironmentPrivilege
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x26]
cmp ax, 1
jne 0x4ecff5
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeChangeNotifyPrivilege
push edx
push eax
jmp 0x4ed00a
cmp ax, 0xffff
jne 0x4ed014
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeChangeNotifyPrivilege
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x28]
cmp ax, 1
jne 0x4ed02f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeBackupPrivilege
push eax
push ecx
jmp 0x4ed044
cmp ax, 0xffff
jne 0x4ed04e
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeBackupPrivilege
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x2a]
cmp ax, 1
jne 0x4ed069
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeRestorePrivilege
push ecx
push edx
jmp 0x4ed07e
cmp ax, 0xffff
jne 0x4ed088
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeRestorePrivilege
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x2c]
cmp ax, 1
jne 0x4ed0a3
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeShutdownPrivilege
push edx
push eax
jmp 0x4ed0b8
cmp ax, 0xffff
jne 0x4ed0c2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeShutdownPrivilege
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x2e]
cmp ax, 1
jne 0x4ed0dd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeLoadDriverPrivilege
push eax
push ecx
jmp 0x4ed0f2
cmp ax, 0xffff
jne 0x4ed0fc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeLoadDriverPrivilege
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x30]
cmp ax, 1
jne 0x4ed117
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeProfileSingleProcessPrivilege
push ecx
push edx
jmp 0x4ed12c
cmp ax, 0xffff
jne 0x4ed136
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeProfileSingleProcessPrivilege
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x32]
cmp ax, 1
jne 0x4ed151
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeSystemtimePrivilege
push edx
push eax
jmp 0x4ed166
cmp ax, 0xffff
jne 0x4ed170
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeSystemtimePrivilege
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x34]
cmp ax, 1
jne 0x4ed18b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeUndockPrivilege
push eax
push ecx
jmp 0x4ed1a0
cmp ax, 0xffff
jne 0x4ed1aa
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeUndockPrivilege
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x36]
cmp ax, 1
jne 0x4ed1c5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeRemoteShutdownPrivilege
push ecx
push edx
jmp 0x4ed1da
cmp ax, 0xffff
jne 0x4ed1e4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeRemoteShutdownPrivilege
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x38]
cmp ax, 1
jne 0x4ed1ff
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeSystemProfilePrivilege
push edx
push eax
jmp 0x4ed214
cmp ax, 0xffff
jne 0x4ed21e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeSystemProfilePrivilege
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x3a]
cmp ax, 1
jne 0x4ed239
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeUnsolicitedInputPrivilege
push eax
push ecx
jmp 0x4ed24e
cmp ax, 0xffff
jne 0x4ed258
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeUnsolicitedInputPrivilege
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x3c]
cmp ax, 1
jne 0x4ed273
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeMachineAccountPrivilege
push ecx
push edx
jmp 0x4ed288
cmp ax, 0xffff
jne 0x4ed292
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeMachineAccountPrivilege
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x3e]
cmp ax, 1
jne 0x4ed2ad
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeEnableDelegationPrivilege
push edx
push eax
jmp 0x4ed2c2
cmp ax, 0xffff
jne 0x4ed2cc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeEnableDelegationPrivilege
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x40]
cmp ax, 1
jne 0x4ed2e7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeSyncAgentPrivilege
push eax
push ecx
jmp 0x4ed2fc
cmp ax, 0xffff
jne 0x4ed306
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeSyncAgentPrivilege
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x42]
cmp ax, 1
jne 0x4ed321
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeInteractiveLogonRight
push ecx
push edx
jmp 0x4ed336
cmp ax, 0xffff
jne 0x4ed340
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeInteractiveLogonRight
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x44]
cmp ax, 1
jne 0x4ed35b
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeNetworkLogonRight
push edx
push eax
jmp 0x4ed370
cmp ax, 0xffff
jne 0x4ed37a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeNetworkLogonRight
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x46]
cmp ax, 1
jne 0x4ed395
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeBatchLogonRight
push eax
push ecx
jmp 0x4ed3aa
cmp ax, 0xffff
jne 0x4ed3b4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeBatchLogonRight
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x48]
cmp ax, 1
jne 0x4ed3cf
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeServiceLogonRight
push ecx
push edx
jmp 0x4ed3e4
cmp ax, 0xffff
jne 0x4ed3ee
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeServiceLogonRight
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x4a]
cmp ax, 1
jne 0x4ed409
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeDenyInteractiveLogonRight
push edx
push eax
jmp 0x4ed41e
cmp ax, 0xffff
jne 0x4ed428
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeDenyInteractiveLogonRight
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x4c]
cmp ax, 1
jne 0x4ed443
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push str.SeDenyNetworkLogonRight
push eax
push ecx
jmp 0x4ed458
cmp ax, 0xffff
jne 0x4ed462
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push str.SeDenyNetworkLogonRight
push edx
push eax
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov ax, word [ebp + 0x4e]
cmp ax, 1
jne 0x4ed47d
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 1
push str.SeDenyBatchLogonRight
push ecx
push edx
jmp 0x4ed492
cmp ax, 0xffff
jne 0x4ed49c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0
push str.SeDenyBatchLogonRight
push eax
push ecx
call fcn.004ee100
add esp, 0x10
mov esi, eax
mov eax, dword [ebp + 0x50]
cmp ax, 1
jne 0x4ed4b6
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push str.SeDenyServiceLogonRight
push edx
push eax
jmp 0x4ed4cb
cmp ax, 0xffff
jne 0x4ed4d5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push str.SeDenyServiceLogonRight
push ecx
push edx
call fcn.004ee100
add esp, 0x10
mov esi, eax
test esi, esi
je 0x4ed505
push esi
push str.SetPrivilegeOnAccount
call fcn.004ee070
add esp, 8
or edi, 0xffffffff
jmp 0x4ed505
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAccountSid
call fcn.004ee090
add esp, 8
mov edi, 0xfffffffe
mov eax, dword [ebp - 0x18]
push eax
call sub.ADVAPI32.dll_LsaClose
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ed525
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ax, di
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret