Function at 0x4570c0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec548
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x66d4f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.005066d0
test eax, eax
je 0x45736e
mov eax, dword [ebp + 8]
or eax, 4
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4571bc
push 1
push 2
lea ecx, [ebp - 0xa4]
call fcn.0040a750
mov dword [ebp - 4], 0
push 0x62ed90
lea edx, [ebp - 0xa4]
push edx
call fcn.00409270
add esp, 8
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00408c00
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x29c]
call fcn.0040b520
push eax
push 0x62eda4
push 0x2a
push 0x62edb4
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.004094e0
xor eax, eax
jmp 0x45743d
lea edx, [ebp - 0x1c]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4572b2
push 1
push 2
lea ecx, [ebp - 0x124]
call fcn.0040a750
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x24]
push edx
push str.GetLastError:
lea eax, [ebp - 0x124]
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x124]
call fcn.00408c00
mov dword [ebp - 0x2a0], eax
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2a4]
call fcn.0040b520
push eax
push 0x62edec
push 0x3f
push 0x62edfc
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.004094e0
xor eax, eax
jmp 0x45743d
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x457369
push 1
push 2
lea ecx, [ebp - 0x1a4]
call fcn.0040a750
mov dword [ebp - 4], 4
push 0x62ee10
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.00409270
add esp, 8
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x1a4]
call fcn.00408c00
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2ac]
call fcn.0040b520
push eax
push 0x62ee20
push 0x45
push 0x62ee30
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x278]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.004094e0
xor eax, eax
jmp 0x45743d
jmp 0x457438
cmp dword [ebp + 8], 8
jne 0x45737b
mov dword [ebp + 8], 1
mov ecx, dword [ebp + 8]
or ecx, 4
mov dword [ebp + 8], ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x457438
push 1
push 2
lea ecx, [ebp - 0x224]
call fcn.0040a750
mov dword [ebp - 4], 6
push 0x62ee44
lea eax, [ebp - 0x224]
push eax
call fcn.00409270
add esp, 8
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00408c00
mov dword [ebp - 0x2b0], eax
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2b4]
call fcn.0040b520
push eax
push str.ShutDownWindow
push 0x53
push 0x62ee64
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x294]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004094e0
xor eax, eax
jmp 0x45743d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret