Function at 0x456450
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1f18
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x65d4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004ff220
test eax, eax
je 0x4566fe
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 0x45654c
push 1
push 2
lea ecx, [ebp - 0xa4]
call fcn.0040b040
mov dword [ebp - 4], 0
push 0x61fdc0
lea edx, [ebp - 0xa4]
push edx
call fcn.00409b60
add esp, 8
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004094f0
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.0040be10
push eax
push 0x61fdd4
push 0x2a
push 0x61fde4
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00409dd0
xor eax, eax
jmp 0x4567cd
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 0x456642
push 1
push 2
lea ecx, [ebp - 0x124]
call fcn.0040b040
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x24]
push edx
push str.GetLastError:
lea eax, [ebp - 0x124]
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x124]
call fcn.004094f0
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.0040be10
push eax
push 0x61fe1c
push 0x3f
push 0x61fe2c
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00409dd0
xor eax, eax
jmp 0x4567cd
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4566f9
push 1
push 2
lea ecx, [ebp - 0x1a4]
call fcn.0040b040
mov dword [ebp - 4], 4
push 0x61fe40
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.00409b60
add esp, 8
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x1a4]
call fcn.004094f0
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.0040be10
push eax
push 0x61fe50
push 0x45
push 0x61fe60
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x278]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.00409dd0
xor eax, eax
jmp 0x4567cd
jmp 0x4567c8
cmp dword [ebp + 8], 8
jne 0x45670b
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 0x4567c8
push 1
push 2
lea ecx, [ebp - 0x224]
call fcn.0040b040
mov dword [ebp - 4], 6
push 0x61fe74
lea eax, [ebp - 0x224]
push eax
call fcn.00409b60
add esp, 8
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x224]
call fcn.004094f0
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.0040be10
push eax
push str.ShutDownWindow
push 0x53
push 0x61fe94
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x294]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00409dd0
xor eax, eax
jmp 0x4567cd
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret