Function at 0x402050
Capabilities:
Create process on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
push ebx
push esi
push edi
call fcn.00401630
mov esi, dword [ebp + 0x10]
call fcn.00401d50
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
jne 0x402084
mov ecx, dword [ebp + 8]
call fcn.00401ba0
mov dword [esp + 0xc], eax
mov edi, eax
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x402121
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenProcessToken
push esi
call edi
push str.LookupPrivilegeValueW
push esi
mov dword [esp + 0x18], eax
call edi
push str.AdjustTokenPrivileges
push esi
mov ebx, eax
call edi
cmp dword [esp + 0x10], 0
mov edi, eax
je 0x402116
test ebx, ebx
je 0x402116
test edi, edi
je 0x402116
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x402116
lea ecx, [esp + 0x1c]
push ecx
push str.SeShutdownPrivilege
push 0
call ebx
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_ExitWindowsEx]
lea eax, [edi - 0x8005]
cmp eax, 0x11
ja case.0x40213d.32774
movzx ecx, byte [eax + 0x4022f8]
jmp dword [ecx*4 + 0x4022dc]
push 0
push 0x401f20
push 0
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 8
call ebx
jmp case.0x40213d.32774
push 0
push 0x401f20
push 0
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
call ebx
jmp case.0x40213d.32774
push 0
push 0x401f20
push 0
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
call ebx
jmp case.0x40213d.32774
push 1
push 0
push 0
mov ecx, str.URL_HELP
call fcn.004099f0
push eax
push 0x421008
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp case.0x40213d.32774
push 1
push 0
push 1
jmp 0x4021d8
push 0
push 0
push 0
call fcn.00419a84
lea eax, [edi - 0x800c]
cmp eax, 4
ja case.0x4021ec.32782
jmp dword [eax*4 + 0x40230c]
mov esi, 0x258
jmp 0x40220d
mov esi, 0x708
jmp 0x40220d
mov esi, 0xe10
jmp 0x40220d
mov esi, 0x1c20
lea edx, [esp + 0x28]
push edx
call fcn.004065e0
mov dword [esp + 0x48], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea edi, [esp + 0x2c]
call fcn.004024e0
cmp eax, 1
je 0x402243
mov eax, edi
push eax
call fcn.004066f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x4c]
cmp eax, 4
ja case.default.0x40224c
jmp dword [eax*4 + 0x402320]
call fcn.00402030
push 0
push 0xc
call ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.004066f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402030
push 0
push 0
call ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.004066f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402030
push 0
push 2
call ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.004066f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 1
push 0
push 1
jmp 0x4022c1
push 0
push 0
push 0
call fcn.00419a84
lea ecx, [esp + 0x28]
push ecx
call fcn.004066f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10