Function at 0x407fe0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4350b8]
push ebx
mov dword [esp + 4], eax
mov eax, dword [0x43b3b8]
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
cmp eax, 3
push edi
mov dword [esp + 0x18], ebp
jne 0x408013
test byte [0x43b3bc], 8
jne 0x408026
jmp 0x408218
cmp eax, 5
je 0x408026
cmp eax, 6
je 0x408026
cmp eax, 2
jne 0x408218
lea esi, [ebp + 0x5ba]
test esi, esi
jne 0x40803a
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor eax, eax
jmp 0x408043
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401f40
lea ecx, [esp + 0x10]
call fcn.004094c0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharLowerA]
mov edx, str.update
test edx, edx
je 0x4082f7
push edx
call edi
mov ebx, eax
test ebx, ebx
je 0x4082f7
mov eax, str.RsConfig.cfg
test eax, eax
jne 0x40808b
mov dword [esp + 0x14], eax
jmp 0x408096
push str.RsConfig.cfg
call edi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esi - 8]
add ebp, esi
cmp esi, ebp
jae 0x408202
push str.update
push esi
call fcn.00427aec
add esp, 8
test eax, eax
je 0x4080d1
lea esi, [eax + ebx]
push str.update
push esi
inc edi
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x4080bb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp esi, ebp
jb 0x4080a9
test edi, edi
jle 0x4082f3
lea ecx, [esp + 0x10]
call fcn.004094c0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x20], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x28], ebp
cmp eax, ebp
jl 0x408118
cmp dword [esi - 0xc], 1
jle 0x408154
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edi
call fcn.00401dd0
test eax, eax
je 0x4082f3
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409490
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x24], eax
jae 0x4081fb
push str.update
push esi
call fcn.00427aec
mov edi, eax
add esp, 8
test edi, edi
je 0x4081e0
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
sub ebp, edi
sub ebp, ebx
lea ecx, [edi + ebx]
add ebp, edx
lea eax, [edi + esi]
push ebp
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.00427720
mov ecx, esi
mov esi, str.RsConfig.cfg
mov edx, ecx
push str.update
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
sub eax, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x34]
add ebp, eax
mov dword [esp + 0x34], ebp
call fcn.00427aec
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x408179
mov ebp, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x24]
cmp esi, eax
jb 0x408165
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
push esi
mov ecx, ebp
call fcn.004083c0
mov ebx, eax
test ebx, ebx
jne 0x40834b
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x134]
mov dword [esp + 0x130], 0
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], al
lea esi, [ebp + 0x5ba]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0x30]
push str._s.cfg
push ecx
stosb byte es:[edi], al
call fcn.00426b7c
add esp, 0xc
lea edx, [esp + 0x130]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4082eb
lea ecx, [esp + 0x15c]
lea edx, [esp + 0x10]
push ecx
push esi
push str._s_s
push edx
call fcn.00401ff0
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.004094c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push 0
push str.virusdb.cfg
lea ecx, [esp + 0x18]
call fcn.00409560
test eax, eax
jg 0x4082c9
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.004083c0
mov ebx, eax
test ebx, ebx
jne 0x4082e0
lea edx, [esp + 0x130]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408278
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x40834b
test esi, esi
jne 0x408300
xor eax, eax
jmp 0x408307
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
jmp 0x408206
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401f40
lea ecx, [esp + 0x10]
call fcn.004094c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push str.RsConfig.cfg
push str.update
lea ecx, [esp + 0x18]
call fcn.004095a0
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.004083c0
mov ebx, eax
test ebx, ebx
je 0x408376
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add ebp, 0xace
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40837a
mov edx, dword [esp + 0x10]
mov eax, dword [0x4350bc]
lea ecx, [edx - 0xc]
cmp ecx, eax
je 0x4083a4
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4083a4
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x260
ret