Function at 0x45e658
Capabilities:
Acquire debug privileges
Get token membership

Disassembly:
push 0xb4
mov eax, 0x51b7a3
call fcn.004d8af2
mov dword [ebp - 0x80], edx
mov ebx, ecx
mov dword [ebp - 0x94], ebx
mov esi, dword [ebp + 8]
lea edi, [ebp - 0xc0]
push 6
mov dword [ebp - 0x94], ebx
xor edx, edx
pop ecx
xor eax, eax
mov dword [ebp - 0x78], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 4], edx
push eax
push 0x800
lea eax, [ebp - 0xc0]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
mov edi, eax
test edi, edi
jns 0x45e71d
push edi
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x45e6da
push edi
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
jmp 0x45e6df
mov ecx, 0x80004005
push 0xc1
push ecx
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x90]
call fcn.00406620
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0x88]
lea ecx, [ecx - 0x10]
call fcn.00407189
jmp 0x45e915
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
push 0x53d240
push eax
call fcn.004d6394
add esp, 0x14
and dword [ebp - 0x94], 0
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x45e7b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xc6
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x90]
call fcn.00406620
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0x88]
lea ecx, [ecx - 0x10]
call fcn.00407189
jmp 0x45e90d
cmp dword [ebp - 0x94], 0
setne al
and dword [ebp - 0x7c], 0
mov byte [esi], al
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 4
and dword [ebp - 0x98], 0
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_LsaEnumerateAccountRights]
mov edi, eax
test edi, edi
jns 0x45e85a
push edi
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x45e817
push edi
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
jmp 0x45e81c
mov ecx, 0x80004005
push 0xcb
push ecx
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x90]
call fcn.00406620
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 5
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0x88]
lea ecx, [ecx - 0x10]
call fcn.00407189
jmp 0x45e8fa
xor al, al
xor esi, esi
mov byte [ebp - 0x71], al
cmp dword [ebp - 0x98], esi
jbe 0x45e8e6
mov edi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x84]
call fcn.0040687a
push edi
lea edx, [ebp - 0x84]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
call fcn.0042bb74
pop ecx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x90], 0
jl 0x45e940
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x88]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov edx, str.SeDebugPrivilege
lea ecx, [ebp - 0x84]
call fcn.004044d6
test al, al
jne 0x45e92c
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x84]
lea ecx, [ecx - 0x10]
call fcn.00407189
inc esi
add edi, 8
cmp esi, dword [ebp - 0x98]
jb 0x45e86c
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0x80]
mov byte [ecx], al
lea ecx, [ebx + 8]
and dword [ebx], 0
and dword [ebx + 4], 0
call fcn.0040687a
cmp dword [ebp - 0x7c], 0
je 0x45e90d
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
and dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x70]
call fcn.004d6486
cmp dword [ebp - 0x78], 0
je 0x45e924
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
mov eax, ebx
call fcn.004d8aa1
ret
mov ecx, dword [ebp - 0x84]
mov byte [ebp - 0x71], 1
lea ecx, [ecx - 0x10]
call fcn.00407189
jmp 0x45e8e3
cmp dword [ebp - 0x8c], 0
mov eax, 0xd0
cmovne eax, dword [ebp - 0x8c]
push eax
push dword [ebp - 0x90]
push ecx
mov ecx, dword [ebp - 0x88]
mov esi, esp
mov dword [ebp - 0x80], esi
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0xa8]
mov dword [esi], eax
call fcn.00406620
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0xa0]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x88]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x84]
jmp 0x45e84d