Function at 0x40fcb0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e577b
push eax
mov dword fs:[0], esp
sub esp, 0x350
push ebx
push ebp
mov ebp, dword [esp + 0x368]
push esi
test ebp, ebp
push edi
je 0x410012
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410012
push eax
push eax
push eax
push eax
mov dword [esp + 0x24], eax
push eax
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.0040a7e0
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x40fd22
test al, 1
je 0x40fd22
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x378]
mov edx, dword [esp + 0x374]
push ecx
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x40fd72
mov eax, dword [0x676468]
test eax, eax
je 0x41000e
push ebp
push ebx
push str.SetFolderSecurity____d____S_
push str.FileSecurity
push 0xf
push 0x6763fc
call fcn.00429e80
add esp, 0x18
mov eax, ebx
jmp 0x410014
mov eax, dword [esp + 0x14]
and eax, 0x10
cmp al, 0x10
je 0x40fd84
mov eax, ebx
jmp 0x410014
push 0x5c
push ebp
call fcn.004441ae
mov esi, eax
add esp, 8
test esi, esi
je 0x40feeb
inc esi
push str.mails
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
push str.MailsTemp
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
push str.MailsLeave
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
push str.files
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
push 0x63eb68
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
push str.tsdocbak
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
push 0x63eb58
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
push str.Temp
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
push str.SCDT
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
mov edi, str.Temp_Docerr_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Temp_Docerr_
push esi
call fcn.00444f6f
add esp, 0xc
test eax, eax
je 0x40fe96
push str.tsdlogonsetting
push esi
call fcn.004448cc
add esp, 8
test eax, eax
je 0x40fe96
push str.tsduserolwarrant
push esi
call fcn.004448cc
add esp, 8
test eax, eax
jne 0x40feeb
mov eax, dword [0x676468]
test eax, eax
je 0x40fee4
push esi
lea ecx, [esp + 0x14]
call fcn.0045d440
mov ecx, dword [eax]
mov dword [esp + 0x368], 0
push ecx
push str.filterspecialdoc__s
push str.Agent
push 0xf
push 0x6763fc
call fcn.00429e80
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x368], 0xffffffff
call fcn.0045ddc0
mov eax, ebx
jmp 0x410014
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push 0x63ead8
lea edx, [esp + 0x160]
push 0x103
push edx
stosb byte es:[edi], al
call fcn.00445498
add esp, 0x10
test eax, eax
jl 0x410012
mov ecx, 0x4e
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x158]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41000a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [esp + 0x44]
push 0x63e674
push edx
call esi
test eax, eax
je 0x40ffe7
lea eax, [esp + 0x44]
push 0x63e670
push eax
call esi
test eax, eax
je 0x40ffe7
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25d]
mov byte [esp + 0x25c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
lea edx, [esp + 0x25c]
push ecx
push ebp
stosw word es:[edi], ax
push 0x638274
push 0x103
push edx
stosb byte es:[edi], al
call fcn.00445498
add esp, 0x14
test eax, eax
jl 0x40ffe7
mov eax, dword [esp + 0x378]
mov ecx, dword [esp + 0x374]
push eax
lea edx, [esp + 0x260]
push ecx
push edx
call fcn.0040fcb0
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410003
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ff64
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x10]
mov eax, ebx
jmp 0x410014
xor eax, eax
mov ecx, dword [esp + 0x360]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x35c
ret