Function at 0x406610
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0xace]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], esi
je 0x40665a
push 0x43af78
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40665a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x250
ret 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x406690
mov eax, dword [esp + 0x264]
mov ecx, ebx
push eax
push esi
call fcn.00406350
mov ebp, eax
test ebp, ebp
je 0x406690
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x250
ret 4
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x124]
mov dword [esp + 0x120], 0
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebx + 0x5ba]
lea ecx, [esp + 0x1c]
push eax
push str._s.cfg
push ecx
call fcn.00426b7c
add esp, 0xc
lea edx, [esp + 0x120]
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
jne 0x406703
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x250
ret 4
mov ecx, dword [0x4350b8]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x14c]
lea eax, [ebx + 0x5ba]
push edx
push eax
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.00401ff0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x40679d
mov ecx, dword [0x4350bc]
add eax, 0xfffffff4
cmp eax, ecx
je 0x40676f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406765
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call fcn.00426ac0
add esp, 4
mov edx, dword [0x4350b8]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00401dd0
test eax, eax
je 0x40679d
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x10]
inc ecx
add esi, 0xc
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jl 0x4067cf
push str.virusdb.cfg
push ecx
call fcn.00427aec
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4067cf
sub eax, ecx
test eax, eax
jg 0x4067e1
mov edx, dword [esp + 0x264]
push edx
push ecx
mov ecx, ebx
call fcn.00406350
mov ebp, eax
test ebp, ebp
jne 0x4067fc
lea eax, [esp + 0x120]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40670d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
test ebp, ebp
je 0x40682c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4350bc]
lea ecx, [edx - 0xc]
cmp ecx, eax
je 0x406856
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406856
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x250
ret 4