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

Disassembly:
sub esp, 0x22c
mov eax, dword [esp + 0x230]
push ebx
xor ebx, ebx
push eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
call fcn.0040b170
add esp, 4
test eax, eax
jne 0x40ad8f
pop ebx
add esp, 0x22c
ret 0x10
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push ebx
call esi
push 1
mov dword [0x41e0e0], eax
call esi
mov dword [0x41e0dc], eax
mov ecx, dword [esp + 0x244]
push ecx
call fcn.0040a5d0
mov eax, dword [0x41dee0]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 4
cmp eax, ebx
je 0x40adeb
mov edx, dword [0x41ded8]
mov eax, dword [0x41e134]
push 0x104
push edx
push eax
call esi
mov ecx, dword [0x41ded8]
push ecx
push ebx
call fcn.0040a7e0
add esp, 8
cmp dword [0x41e0c4], ebx
jne 0x40adfb
cmp dword [0x41e0bc], ebx
je 0x40ae19
call fcn.0040b6c0
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40b0bc
mov eax, dword [0x41e0c4]
cmp eax, ebx
jne 0x40b06c
call fcn.0040b490
test eax, eax
je 0x40b0bc
mov eax, dword [0x41dee0]
mov edi, dword [esp + 0x248]
cmp eax, ebx
jne 0x40ae90
mov edx, dword [0x41ded8]
mov eax, dword [0x41e134]
push 0x104
push edx
push eax
call esi
mov eax, dword [0x41ded8]
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x40ae5b
cmp byte [eax + 1], cl
je 0x40ae6d
cmp cl, bl
je 0x40ae6d
cmp byte [eax + 1], 0x3a
jne 0x40ae6d
mov byte [eax + 3], bl
mov eax, dword [0x41ded8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x40ae7e
cmp eax, 5
jne 0x40ae90
push ebx
push edi
call fcn.0040aa10
add esp, 8
test eax, eax
jne 0x40b0b5
cmp dword [esp + 0x10], ebx
jne 0x40aea7
call fcn.0040b6c0
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40b0bc
cmp dword [0x41e164], ebx
je 0x40aeb6
call fcn.00409550
jmp 0x40aed9
mov ecx, dword [0x41e084]
test byte [ecx + 0x14], 2
jne 0x40aec7
call fcn.00402b60
call fcn.0040b510
test eax, eax
je 0x40b0bc
call fcn.00404f00
cmp dword [0x41e15c], ebx
jne 0x40af1f
cmp dword [0x41e168], ebx
jne 0x40af1f
mov eax, dword [0x41defc]
cmp eax, ebx
je 0x40af1f
push eax
call fcn.00408660
mov edx, dword [0x41ded8]
lea eax, [esp + 0x34]
push edx
push str.rundll32_desk.cpl_InstallScreenSaver__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x30]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [0x41e138]
cmp eax, ebx
je 0x40af30
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41e160], ebx
je 0x40afad
cmp dword [0x41e168], ebx
jne 0x40afad
cmp dword [0x41e15c], ebx
jne 0x40af64
cmp dword [0x41e0c0], ebx
jne 0x40af64
call fcn.00403800
test eax, eax
je 0x40af64
push 1
push edi
call fcn.0040aa10
add esp, 8
cmp dword [0x41e164], ebx
je 0x40af78
mov edx, dword [0x41e084]
mov eax, dword [edx]
test ah, ah
jns 0x40afad
mov eax, dword [0x41e13c]
mov ecx, dword [0x41e134]
push ebx
push 0x409ce0
push eax
push 0x83
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x40afad
cmp dword [0x41e15c], ebx
jne 0x40afad
mov dword [0x41e160], 0x10
mov eax, dword [0x41e138]
cmp eax, ebx
je 0x40b010
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x41e160], 0x10
je 0x40b004
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea edx, [esp + 0x1c]
push ebx
push edx
call esi
test eax, eax
je 0x40b004
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call ebp
push ebx
push ebx
lea edx, [esp + 0x20]
push ebx
push edx
call esi
test eax, eax
jne 0x40afe7
pop ebp
mov dword [0x41e138], ebx
mov dword [0x41e13c], ebx
cmp dword [0x41e15c], ebx
jne 0x40b0c4
cmp dword [0x41e160], ebx
jne 0x40b0c4
cmp dword [0x41e0c0], ebx
jne 0x40b0c4
cmp dword [0x41e168], ebx
jne 0x40b0c4
push 1
push ebx
push 0x3000000
call fcn.00403870
mov eax, dword [0x419258]
add esp, 0xc
cmp eax, ebx
je 0x40b0c4
push 1
push 1
push 0x4000000
call fcn.00403870
add esp, 0xc
jmp 0x40b0c4
dec eax
push eax
call fcn.0040a330
push ebx
push ebx
push 0x1000000
call fcn.00403870
push ebx
push ebx
push 0x2000000
call fcn.00403870
push ebx
push ebx
push 0x3000000
call fcn.00403870
mov eax, dword [0x419258]
add esp, 0x28
cmp eax, ebx
je 0x40b0c4
push ebx
push 1
push 0x4000000
call fcn.00403870
add esp, 0xc
jmp 0x40b0c4
call fcn.0040b420
jmp 0x40b0c4
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x10]
pop edi
cmp eax, ebx
pop esi
je 0x40b0d3
call fcn.0040a530
call fcn.0040b420
cmp dword [0x41e160], 0x10
jne 0x40b13f
cmp dword [0x41e0f4], ebx
je 0x40b136
lea eax, [esp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b13f
lea ecx, [esp + 0x10]
push ecx
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ebx
push edx
push ebx
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 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 0x40b14f
mov ecx, dword [0x41e168]
mov dword [esp + 4], ecx
cmp dword [0x41e160], ebx
je 0x40b15f
mov dword [esp + 4], 0xfffffffe
mov eax, dword [esp + 4]
pop ebx
add esp, 0x22c
ret 0x10