Function at 0x4ec764
Capabilities:
Copy file
Create process on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5d
push 0
push 0
dec ecx
jne 0x4ec76c
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x4ecb55
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4feef0], 0
jne 0x4ecb37
mov eax, edi
call fcn.004eb7c8
lea edx, [ebp - 0x2a4]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2a4]
lea edx, [ebp - 0x2a0]
call fcn.004099c0
lea eax, [ebp - 0x2a0]
mov edx, 0x4ecb6c
call fcn.00404cac
mov eax, dword [ebp - 0x2a0]
call fcn.00404ea4
push eax
mov eax, dword [0x503498]
call fcn.00404ea4
push eax
call sub.kernel32.dll_MoveFileA
lea edx, [ebp - 0x2ac]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2ac]
lea edx, [ebp - 0x2a8]
call fcn.004099c0
lea eax, [ebp - 0x2a8]
mov edx, 0x4ecb6c
call fcn.00404cac
mov eax, dword [ebp - 0x2a8]
xor edx, edx
call fcn.0040980c
push 0x4ecb7c
push 0x4ecb84
mov ecx, dword [0x500668]
mov dl, 1
mov eax, dword [0x418a50]
call fcn.0041df10
mov ebx, eax
lea edx, [ebp - 0x2b4]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2b4]
lea edx, [ebp - 0x2b0]
call fcn.004099c0
lea eax, [ebp - 0x2b0]
mov edx, 0x4ecb94
call fcn.00404cac
mov edx, dword [ebp - 0x2b0]
mov eax, ebx
call fcn.0041db88
mov eax, ebx
call fcn.00403bd0
lea edx, [ebp - 0x2bc]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2bc]
lea edx, [ebp - 0x2b8]
call fcn.004099c0
lea eax, [ebp - 0x2b8]
mov edx, 0x4ecb94
call fcn.00404cac
mov edx, dword [ebp - 0x2b8]
lea eax, [ebp - 0x150]
call fcn.00402f90
mov edx, 1
lea eax, [ebp - 0x150]
call fcn.00403404
call fcn.00402934
lea edx, [ebp - 0x2c4]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2c4]
lea edx, [ebp - 0x2c0]
call fcn.004099c0
lea eax, [ebp - 0x2c0]
mov edx, 0x4ecb6c
call fcn.00404cac
mov edx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x29c]
call fcn.00402f90
mov edx, 1
lea eax, [ebp - 0x29c]
call fcn.00403404
call fcn.00402934
xor esi, esi
mov ebx, esi
mov edx, ebx
lea eax, [ebp - 0x150]
call fcn.00403420
call fcn.00402934
lea edx, [ebp - 1]
lea eax, [ebp - 0x150]
call fcn.004032b0
call fcn.00402934
mov edx, ebx
lea eax, [ebp - 0x29c]
call fcn.00403420
call fcn.00402934
lea edx, [ebp - 2]
lea eax, [ebp - 0x29c]
call fcn.004032b0
call fcn.00402934
mov al, byte [ebp - 2]
cmp al, byte [ebp - 1]
je 0x4ec9bc
mov edx, ebx
lea eax, [ebp - 0x29c]
call fcn.00403420
call fcn.00402934
lea edx, [ebp - 1]
lea eax, [ebp - 0x29c]
call fcn.00403528
call fcn.00402934
inc esi
cmp esi, 0x1f4
jne 0x4ec943
lea eax, [ebp - 0x150]
call fcn.0040310c
call fcn.00402934
lea eax, [ebp - 0x29c]
call fcn.0040310c
call fcn.00402934
lea edx, [ebp - 0x2cc]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2cc]
lea edx, [ebp - 0x2c8]
call fcn.004099c0
lea eax, [ebp - 0x2c8]
mov edx, 0x4ecb94
call fcn.00404cac
mov eax, dword [ebp - 0x2c8]
call fcn.00409928
push 0
lea edx, [ebp - 0x2d4]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2d4]
lea edx, [ebp - 0x2d0]
call fcn.004099c0
lea eax, [ebp - 0x2d0]
mov edx, 0x4ecbac
call fcn.00404cac
mov eax, dword [ebp - 0x2d0]
call fcn.00404ea4
push eax
lea edx, [ebp - 0x2d8]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2d8]
call fcn.00404ea4
push eax
call sub.kernel32.dll_CopyFileA
push 1
lea edx, [ebp - 0x2e0]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2e0]
lea edx, [ebp - 0x2dc]
call fcn.004099c0
mov eax, dword [ebp - 0x2dc]
call fcn.00404ea4
push eax
lea edx, [ebp - 0x2e4]
mov eax, 1
call fcn.00402bd0
mov eax, dword [ebp - 0x2e4]
call fcn.00404ea4
push eax
lea edx, [ebp - 0x2ec]
mov eax, dword [0x4ff480]
mov eax, dword [eax]
call fcn.004799c0
mov eax, dword [ebp - 0x2ec]
lea edx, [ebp - 0x2e8]
call fcn.004099c0
lea eax, [ebp - 0x2e8]
mov edx, 0x4ecbac
call fcn.00404cac
mov eax, dword [ebp - 0x2e8]
call fcn.00404ea4
push eax
push 0x4ecbb8
mov eax, edi
call fcn.0045ffb8
push eax
call sub.shell32.dll_ShellExecuteA
mov byte [0x4feef8], 1
mov eax, edi
call fcn.00475c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecb5c
lea eax, [ebp - 0x2ec]
mov edx, 0x14
call fcn.00404a08
ret