Function at 0x455730
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e0eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x65b4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004fe200
test eax, eax
je 0x4559de
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 0x45582c
push 1
push 2
lea ecx, [ebp - 0xa4]
call fcn.0040b160
mov dword [ebp - 4], 0
push 0x61ec60
lea edx, [ebp - 0xa4]
push edx
call fcn.00409c80
add esp, 8
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00409610
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.0040bf30
push eax
push 0x61ec74
push 0x2a
push 0x61ec84
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0040c050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00409ef0
xor eax, eax
jmp 0x455aad
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 0x455922
push 1
push 2
lea ecx, [ebp - 0x124]
call fcn.0040b160
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x24]
push edx
push str.GetLastError:
lea eax, [ebp - 0x124]
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x124]
call fcn.00409610
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.0040bf30
push eax
push 0x61ecbc
push 0x3f
push 0x61eccc
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
call fcn.0040c050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00409ef0
xor eax, eax
jmp 0x455aad
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4559d9
push 1
push 2
lea ecx, [ebp - 0x1a4]
call fcn.0040b160
mov dword [ebp - 4], 4
push 0x61ece0
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.00409c80
add esp, 8
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x1a4]
call fcn.00409610
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.0040bf30
push eax
push 0x61ecf0
push 0x45
push 0x61ed00
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x278]
call fcn.0040c050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.00409ef0
xor eax, eax
jmp 0x455aad
jmp 0x455aa8
cmp dword [ebp + 8], 8
jne 0x4559eb
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 0x455aa8
push 1
push 2
lea ecx, [ebp - 0x224]
call fcn.0040b160
mov dword [ebp - 4], 6
push 0x61ed14
lea eax, [ebp - 0x224]
push eax
call fcn.00409c80
add esp, 8
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00409610
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.0040bf30
push eax
push str.ShutDownWindow
push 0x53
push 0x61ed34
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x294]
call fcn.0040c050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00409ef0
xor eax, eax
jmp 0x455aad
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret