Function at 0x412bf0
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.00413060
add esp, 4
test eax, eax
jne 0x412c1f
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 [0x42ada4], eax
call esi
mov dword [0x42ada0], eax
mov ecx, dword [esp + 0x248]
push ecx
call fcn.004123e0
mov eax, dword [0x42a9c0]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 4
cmp eax, ebx
je 0x412c7b
mov edx, dword [0x42a9b4]
mov eax, dword [0x42ae00]
push 0x104
push edx
push eax
call esi
mov ecx, dword [0x42a9b4]
push ecx
push ebx
call fcn.00412610
add esp, 8
cmp dword [0x42ad88], ebx
jne 0x412c8b
cmp dword [0x42ad80], ebx
je 0x412ca9
call fcn.00413630
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x412fa3
mov eax, dword [0x42ad88]
cmp eax, ebx
jne 0x412f5f
call fcn.00413400
test eax, eax
je 0x412fa3
cmp dword [0x42ad80], ebx
je 0x412ceb
mov eax, dword [0x42ad34]
cmp dword [eax + 0x64], ebx
je 0x412cf0
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 0x412f8f
mov eax, dword [0x42ad34]
mov ecx, dword [0x42a9c0]
mov edi, dword [esp + 0x24c]
cmp ecx, ebx
jne 0x412d68
cmp dword [0x42a9bc], ebx
jne 0x412d68
mov eax, dword [0x42a9b4]
mov ecx, dword [0x42ae00]
push 0x104
push eax
push ecx
call esi
mov eax, dword [0x42a9b4]
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x412d2e
cmp byte [eax + 1], cl
je 0x412d40
cmp cl, bl
je 0x412d40
cmp byte [eax + 1], 0x3a
jne 0x412d40
mov byte [eax + 3], bl
mov eax, dword [0x42a9b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x412d51
cmp eax, 5
jne 0x412d63
push ebx
push edi
call fcn.00412840
add esp, 8
test eax, eax
jne 0x412f9c
mov eax, dword [0x42ad34]
cmp dword [esp + 0x10], ebx
jne 0x412d84
call fcn.00413630
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x412fa3
mov eax, dword [0x42ad34]
cmp dword [0x42ae30], ebx
je 0x412d97
push ebx
call fcn.00410e20
add esp, 4
jmp 0x412db4
test byte [eax + 0x14], 2
jne 0x412da2
call fcn.00402c30
call fcn.00413480
test eax, eax
je 0x412fa3
call fcn.004056d0
cmp dword [0x42ae28], ebx
jne 0x412dfa
cmp dword [0x42ae34], ebx
jne 0x412dfa
mov eax, dword [0x42a9dc]
cmp eax, ebx
je 0x412dfa
push eax
call fcn.0040e4c0
mov edx, dword [0x42a9b4]
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 [0x42ae04]
cmp eax, ebx
je 0x412e0b
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42ae2c], ebx
je 0x412ea4
cmp dword [0x42ae34], ebx
jne 0x412ea4
cmp dword [0x42ae28], ebx
jne 0x412e47
cmp dword [0x42ad84], ebx
jne 0x412e47
call fcn.00403cf0
test eax, eax
je 0x412e47
push 1
push edi
call fcn.00412840
add esp, 8
cmp dword [0x42ae30], ebx
je 0x412e5b
mov edx, dword [0x42ad34]
mov eax, dword [edx]
test ah, ah
jns 0x412ea4
push 8
push 6
call fcn.00403a00
add esp, 8
cmp eax, ebx
je 0x412ea4
cmp byte [eax], bl
je 0x412ea4
mov eax, dword [0x42ae08]
mov ecx, dword [0x42ae00]
push ebx
push 0x4116e0
push eax
push 0x83
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x412ea4
cmp dword [0x42ae28], ebx
jne 0x412ea4
mov dword [0x42ae2c], 0x10
mov eax, dword [0x42ae04]
cmp eax, ebx
je 0x412f07
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x42ae2c], 0x10
je 0x412efb
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 0x412efb
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 0x412ede
pop ebp
mov dword [0x42ae04], ebx
mov dword [0x42ae08], ebx
cmp dword [0x42ae28], ebx
jne 0x412fab
cmp dword [0x42ae2c], ebx
jne 0x412fab
cmp dword [0x42ad84], ebx
jne 0x412fab
cmp dword [0x42ae34], ebx
jne 0x412fab
push 1
push ebx
push 0x3000000
call fcn.00403d80
mov eax, dword [0x425270]
add esp, 0xc
cmp eax, ebx
je 0x412fab
push 1
push 1
push 0x4000000
call fcn.00403d80
add esp, 0xc
jmp 0x412fab
dec eax
push eax
call fcn.00411fd0
push ebx
push ebx
push 0x1000000
call fcn.00403d80
push ebx
push ebx
push 0x2000000
call fcn.00403d80
push ebx
push ebx
push 0x3000000
call fcn.00403d80
add esp, 0x28
jmp 0x412fab
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412fab
call fcn.00413360
jmp 0x412fab
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x10]
pop edi
cmp eax, ebx
pop esi
je 0x412fba
call fcn.00412320
call fcn.00413360
cmp dword [0x42ae2c], 0x10
jne 0x413026
cmp dword [0x42adbc], ebx
je 0x41301d
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 0x413026
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 0x413036
mov edx, dword [0x42ae34]
mov dword [esp + 4], edx
cmp dword [0x42ae2c], ebx
je 0x413046
mov dword [esp + 4], 0xfffffffe
mov eax, dword [esp + 4]
pop ebx
add esp, 0x230
ret 0x10