Function at 0x408020
Capabilities:
Accept command line arguments
Create process on windows
Delete file
Move file
Self delete

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e652
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x508
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp - 0x44c]
mov edi, eax
mov dword [ebp - 0x514], edi
cmp ecx, 2
jne 0x40811a
lea eax, [ebp - 0x268]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40870f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40870f
push 0x400
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0040a1b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 4]
lea eax, [ebp - 0x418]
push str.Delete_file:_s_fail__error_code:_d
push 0x400
push eax
call fcn.004042a0
add esp, 0x14
lea eax, [ebp - 0x418]
push 0
push str.debug
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40870f
cmp ecx, 3
jl 0x40870f
push dword [edi + 4]
call fcn.00411443
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
lea ecx, [ebp - 0x4b8]
call fcn.00401270
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x458]
xorps xmm0, xmm0
mov dword [ebp - 0x450], 0
movq qword [ebp - 0x458], xmm0
call fcn.00407c40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a0]
mov edx, dword [edi + 8]
call fcn.00401270
xorps xmm0, xmm0
mov dword [ebp - 0x420], 0
xor eax, eax
mov dword [ebp - 0x41c], 7
movups xmmword [ebp - 0x430], xmm0
mov word [ebp - 0x430], ax
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x458]
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x504], edi
mov dword [ebp - 0x510], eax
cmp edi, eax
je 0x40866f
push edi
lea edx, [ebp - 0x4b8]
lea ecx, [ebp - 0x488]
call fcn.004087c0
add esp, 4
push edi
lea edx, [ebp - 0x4a0]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x448]
call fcn.004087c0
add esp, 4
mov byte [ebp - 4], 5
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x40820d
mov edx, dword [edi]
push ecx
lea ecx, [ebp - 0x470]
call fcn.00401450
add esp, 4
mov byte [ebp - 4], 6
lea eax, [ebp - 0x470]
cmp dword [ebp - 0x45c], 8
push 0x4296d4
cmovae eax, dword [ebp - 0x470]
push eax
call fcn.0040ee98
add esp, 8
test eax, eax
jne 0x4082bb
cmp dword [ebp - 0x434], 8
lea ecx, [ebp - 0x448]
mov eax, dword [ebp - 0x438]
cmovae ecx, dword [ebp - 0x448]
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x508], eax
cmp eax, edx
ja 0x4082a1
cmp edx, 8
mov dword [ebp - 0x420], eax
lea esi, [ebp - 0x430]
cmovae esi, dword [ebp - 0x430]
add eax, eax
push eax
push ecx
push esi
call fcn.0040a350
mov eax, dword [ebp - 0x508]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x4082bb
push ecx
mov byte [ebp - 0x50c], 0
lea ecx, [ebp - 0x430]
push dword [ebp - 0x50c]
push eax
call fcn.00401b90
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
cmovae eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x474], 8
lea ecx, [ebp - 0x488]
lea eax, [ebp - 0x448]
cmovae ecx, dword [ebp - 0x488]
cmp dword [ebp - 0x434], 8
push 2
cmovae eax, dword [ebp - 0x448]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x408387
push 0x400
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0040a1b0
add esp, 0xc
lea edi, [ebp - 0x448]
cmp dword [ebp - 0x434], 8
lea esi, [ebp - 0x488]
cmovae edi, dword [ebp - 0x448]
cmp dword [ebp - 0x474], 8
cmovae esi, dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Move_File1:_s__File2:_s_fail__error_code:_d
lea eax, [ebp - 0x418]
push 0x400
push eax
call fcn.004042a0
add esp, 0x18
lea eax, [ebp - 0x418]
push 0
push str.debug
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [ebp - 0x504]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x45c]
cmp ecx, 8
jb 0x4083cb
mov edx, dword [ebp - 0x470]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4083c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40872f
push ecx
push edx
call fcn.0040895b
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
cmp ecx, 8
jb 0x40842c
mov edx, dword [ebp - 0x448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408422
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40872f
push ecx
push edx
call fcn.0040895b
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x474]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
cmp ecx, 8
jb 0x40848d
mov edx, dword [ebp - 0x488]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408483
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40872f
push ecx
push edx
call fcn.0040895b
add esp, 8
add edi, 0x18
mov dword [ebp - 0x504], edi
cmp edi, dword [ebp - 0x510]
jne 0x4081d1
cmp dword [ebp - 0x420], 0
je 0x408580
xorps xmm0, xmm0
mov dword [ebp - 0x500], 0x44
push 0x400
lea eax, [ebp - 0x418]
movlpd qword [ebp - 0x4fc], xmm0
push 0
push eax
movlpd qword [ebp - 0x4f4], xmm0
movlpd qword [ebp - 0x4ec], xmm0
movlpd qword [ebp - 0x4e4], xmm0
movlpd qword [ebp - 0x4dc], xmm0
movlpd qword [ebp - 0x4d4], xmm0
movlpd qword [ebp - 0x4cc], xmm0
movlpd qword [ebp - 0x4c4], xmm0
call fcn.0040a1b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp - 0x514]
lea eax, [ebp - 0x430]
cmp dword [ebp - 0x41c], 8
cmovae eax, dword [ebp - 0x430]
push dword [ecx]
push eax
lea eax, [ebp - 0x418]
push str._s___s_
push eax
call fcn.00408900
add esp, 0x10
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x500]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x41c]
cmp ecx, 8
jb 0x4085c0
mov edx, dword [ebp - 0x430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4085b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40872f
push ecx
push edx
call fcn.0040895b
add esp, 8
mov ecx, dword [ebp - 0x48c]
xor eax, eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
cmp ecx, 8
jb 0x40861d
mov edx, dword [ebp - 0x4a0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408613
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40872f
push ecx
push edx
call fcn.0040895b
add esp, 8
lea ecx, [ebp - 0x458]
call fcn.00408740
mov ecx, dword [ebp - 0x4a4]
cmp ecx, 8
jb 0x408668
mov edx, dword [ebp - 0x4b8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40865e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40872f
push ecx
push edx
call fcn.0040895b
add esp, 8
mov al, 1
jmp 0x408711
mov ecx, dword [ebp - 0x48c]
xor eax, eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
cmp ecx, 8
jb 0x4086c8
mov edx, dword [ebp - 0x4a0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4086be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40872f
push ecx
push edx
call fcn.0040895b
add esp, 8
lea ecx, [ebp - 0x458]
call fcn.00408740
mov ecx, dword [ebp - 0x4a4]
cmp ecx, 8
jb 0x40870f
mov edx, dword [ebp - 0x4b8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408705
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40872f
push ecx
push edx
call fcn.0040895b
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040891d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040e6af
int3