Function at 0x4066e0
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 0x40672a
push 0x43d400
push esi
call fcn.0042a9c0
add esp, 8
test eax, eax
jne 0x40672a
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 0x406760
mov eax, dword [esp + 0x264]
mov ecx, ebx
push eax
push esi
call fcn.00406420
mov ebp, eax
test ebp, ebp
je 0x406760
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.00429590
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 0x4067d3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x250
ret 4
mov ecx, dword [0x437348]
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.004025c0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x40686d
mov ecx, dword [0x43734c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x40683f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406835
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call fcn.004292c0
add esp, 4
mov edx, dword [0x437348]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.004023a0
test eax, eax
je 0x40686d
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 0x40689f
push str.virusdb.cfg
push ecx
call fcn.0042a63f
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x40689f
sub eax, ecx
test eax, eax
jg 0x4068b1
mov edx, dword [esp + 0x264]
push edx
push ecx
mov ecx, ebx
call fcn.00406420
mov ebp, eax
test ebp, ebp
jne 0x4068cc
lea eax, [esp + 0x120]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4067dd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
test ebp, ebp
je 0x4068fc
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 [0x43734c]
lea ecx, [edx - 0xc]
cmp ecx, eax
je 0x406926
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406926
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x250
ret 4