Function at 0x412520
Capabilities:
Create process on windows
Get disk information
Shutdown system

Disassembly:
sub esp, 0x230
mov eax, dword [esp + 0x234]
push ebx
xor ebx, ebx
push eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
call fcn.00412980
add esp, 4
test eax, eax
jne 0x41254f
pop ebx
add esp, 0x230
ret 0x10
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push ebx
call esi
push 1
mov dword [0x42a87c], eax
call esi
mov dword [0x42a878], eax
mov ecx, dword [esp + 0x248]
push ecx
call fcn.00411d60
mov eax, dword [0x42a458]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 4
cmp eax, ebx
je 0x4125ab
mov edx, dword [0x42a450]
mov eax, dword [0x42a8d8]
push 0x104
push edx
push eax
call esi
mov ecx, dword [0x42a450]
push ecx
push ebx
call fcn.00411f80
add esp, 8
cmp dword [0x42a860], ebx
jne 0x4125bb
cmp dword [0x42a858], ebx
je 0x4125d9
call fcn.00412f50
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4128c8
mov eax, dword [0x42a860]
cmp eax, ebx
jne 0x41286b
call fcn.00412d20
test eax, eax
je 0x4128c8
cmp dword [0x42a858], ebx
je 0x41261b
mov eax, dword [0x42a80c]
cmp dword [eax + 0x64], ebx
je 0x412620
mov ecx, dword [eax + 0x68]
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 0x64]
push 0x20019
add ecx, eax
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4128b4
mov eax, dword [0x42a80c]
mov ecx, dword [0x42a458]
mov edi, dword [esp + 0x24c]
cmp ecx, ebx
jne 0x412690
mov eax, dword [0x42a450]
mov ecx, dword [0x42a8d8]
push 0x104
push eax
push ecx
call esi
mov eax, dword [0x42a450]
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x412656
cmp byte [eax + 1], cl
je 0x412668
cmp cl, bl
je 0x412668
cmp byte [eax + 1], 0x3a
jne 0x412668
mov byte [eax + 3], bl
mov eax, dword [0x42a450]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x412679
cmp eax, 5
jne 0x41268b
push ebx
push edi
call fcn.004121b0
add esp, 8
test eax, eax
jne 0x4128c1
mov eax, dword [0x42a80c]
cmp dword [esp + 0x10], ebx
jne 0x4126ac
call fcn.00412f50
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4128c8
mov eax, dword [0x42a80c]
cmp dword [0x42a908], ebx
je 0x4126bb
call fcn.00410a30
jmp 0x4126d8
test byte [eax + 0x14], 2
jne 0x4126c6
call fcn.00402b60
call fcn.00412da0
test eax, eax
je 0x4128c8
call fcn.004052f0
cmp dword [0x42a900], ebx
jne 0x41271e
cmp dword [0x42a90c], ebx
jne 0x41271e
mov eax, dword [0x42a474]
cmp eax, ebx
je 0x41271e
push eax
call fcn.0040e290
mov edx, dword [0x42a450]
lea eax, [esp + 0x38]
push edx
push str.rundll32_desk.cpl_InstallScreenSaver__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x34]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [0x42a8dc]
cmp eax, ebx
je 0x41272f
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42a904], ebx
je 0x4127ac
cmp dword [0x42a90c], ebx
jne 0x4127ac
cmp dword [0x42a900], ebx
jne 0x412763
cmp dword [0x42a85c], ebx
jne 0x412763
call fcn.004039e0
test eax, eax
je 0x412763
push 1
push edi
call fcn.004121b0
add esp, 8
cmp dword [0x42a908], ebx
je 0x412777
mov edx, dword [0x42a80c]
mov eax, dword [edx]
test ah, ah
jns 0x4127ac
mov eax, dword [0x42a8e0]
mov ecx, dword [0x42a8d8]
push ebx
push 0x4111c0
push eax
push 0x83
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x4127ac
cmp dword [0x42a900], ebx
jne 0x4127ac
mov dword [0x42a904], 0x10
mov eax, dword [0x42a8dc]
cmp eax, ebx
je 0x41280f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x42a904], 0x10
je 0x412803
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea edx, [esp + 0x20]
push ebx
push edx
call esi
test eax, eax
je 0x412803
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x1c]
push ecx
call ebp
push ebx
push ebx
lea edx, [esp + 0x24]
push ebx
push edx
call esi
test eax, eax
jne 0x4127e6
pop ebp
mov dword [0x42a8dc], ebx
mov dword [0x42a8e0], ebx
cmp dword [0x42a900], ebx
jne 0x4128d0
cmp dword [0x42a904], ebx
jne 0x4128d0
cmp dword [0x42a85c], ebx
jne 0x4128d0
cmp dword [0x42a90c], ebx
jne 0x4128d0
push 1
push ebx
push 0x3000000
call fcn.00403a50
mov eax, dword [0x42503c]
add esp, 0xc
cmp eax, ebx
je 0x4128d0
push 1
push 1
push 0x4000000
call fcn.00403a50
add esp, 0xc
jmp 0x4128d0
dec eax
push eax
call fcn.00411a90
push ebx
push ebx
push 0x1000000
call fcn.00403a50
push ebx
push ebx
push 0x2000000
call fcn.00403a50
push ebx
push ebx
push 0x3000000
call fcn.00403a50
mov eax, dword [0x42503c]
add esp, 0x28
cmp eax, ebx
je 0x4128d0
push ebx
push 1
push 0x4000000
call fcn.00403a50
add esp, 0xc
jmp 0x4128d0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4128d0
call fcn.00412c80
jmp 0x4128d0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x10]
pop edi
cmp eax, ebx
pop esi
je 0x4128df
call fcn.00411c90
call fcn.00412c80
cmp dword [0x42a904], 0x10
jne 0x41294b
cmp dword [0x42a894], ebx
je 0x412942
lea ecx, [esp + 0xc]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41294b
lea edx, [esp + 0x14]
push edx
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebx
push eax
push ebx
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp dword [esp + 4], ebx
jne 0x41295b
mov edx, dword [0x42a90c]
mov dword [esp + 4], edx
cmp dword [0x42a904], ebx
je 0x41296b
mov dword [esp + 4], 0xfffffffe
mov eax, dword [esp + 4]
pop ebx
add esp, 0x230
ret 0x10