Function at 0x660c5280
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x180]
push ebx
sub esp, 0x1bc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x188], edi
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, esi
add eax, ebx
je 0x660c52ae
test esi, esi
je 0x660c57d3
mov dword [ebp - 0x158], ebx
cmp ebx, 0xf
ja 0x660c5740
cmp ebx, 1
jne 0x660c55e0
movzx eax, byte [esi]
mov byte [ebp - 0x180], al
lea eax, [ebp - 0x180]
mov dword [ebp - 0x184], ebx
mov byte [eax + ebx], 0
mov eax, 0x3fffffff
sub eax, dword [ebp - 0x184]
cmp eax, 5
jbe 0x660c57df
mov dword [esp + 4], 6
lea ecx, [ebp - 0x188]
mov dword [esp], str._.png
call fcn.661b0180
sub esp, 8
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x188]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1a4], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x660c5577
lea esi, [esi]
nop
test byte [ebp - 0x158], 0x10
jne 0x660c5541
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov byte [ebp + eax - 0x130], 0
lea eax, [ebp - 0x168]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x190], eax
mov ebx, eax
cmp eax, 0xf
ja 0x660c5648
cmp eax, 1
jne 0x660c5630
movzx edx, byte [ebp - 0x12c]
mov byte [ebp - 0x168], dl
lea edx, [ebp - 0x168]
mov dword [ebp - 0x16c], eax
mov byte [edx + eax], 0
mov eax, dword [ebp - 0x16c]
mov dword [esp + 8], 0xc70f6907
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x170]
mov dword [esp], eax
call fcn.661c6e00
xor edx, edx
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov esi, eax
mov eax, edi
div esi
mov dword [ebp - 0x1a0], esi
lea ecx, [edx*4]
mov esi, edx
mov dword [ebp - 0x1ac], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x660c5449
mov ecx, dword [ebp - 0x170]
mov ebx, dword [eax]
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x19c], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x1a8], edx
test edx, edx
je 0x660c55a8
cmp edi, ecx
je 0x660c55f8
mov ebx, dword [ebx]
test ebx, ebx
je 0x660c5449
mov ecx, dword [ebx + 0x1c]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x1a0]
cmp esi, edx
je 0x660c542a
mov dword [esp], 0x20
call fcn.661cddf0
lea esi, [eax + 0xc]
mov dword [eax], 0
mov ebx, eax
lea ecx, [ebp - 0x168]
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x170]
cmp eax, ecx
je 0x660c5798
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x168]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x16c]
mov byte [ebp - 0x168], 0
mov dword [ebp - 0x16c], 0
mov dword [ebx + 8], eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 8], 1
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.6616e100
sub esp, 0xc
test al, al
jne 0x660c56d8
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x1ac]
mov dword [ebx + 0x1c], edi
mov ecx, dword [eax]
add esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x660c5710
mov eax, dword [eax]
mov dword [ebx], eax
mov eax, dword [esi]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
add dword [eax + 0xc], 1
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x19c], eax
lea edi, [ebp - 0x168]
cmp dword [ebp - 0x19c], edi
je 0x660c5541
mov eax, dword [ebp - 0x168]
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x19c]
mov dword [esp], eax
call fcn.661cddb0
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
sub esp, 8
test eax, eax
jne 0x660c5340
mov eax, dword [ebp - 0x1a4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x188]
lea edi, [ebp - 0x180]
cmp eax, edi
je 0x660c559c
mov edi, dword [ebp - 0x180]
mov dword [esp], eax
lea edx, [edi + 1]
mov dword [esp + 4], edx
call fcn.661cddb0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edi, ecx
je 0x660c55d3
lea esi, [esi]
mov ebx, dword [ebx]
test ebx, ebx
je 0x660c5449
mov ecx, dword [ebx + 0x1c]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x1a0]
cmp esi, edx
jne 0x660c5449
cmp edi, ecx
jne 0x660c55b0
mov eax, dword [ebx + 8]
test eax, eax
jne 0x660c55b0
jmp 0x660c5518
lea eax, [ebp - 0x180]
test ebx, ebx
je 0x660c52d5
jmp 0x660c5771
mov eax, dword [ebp - 0x1a8]
cmp eax, dword [ebx + 8]
jne 0x660c5432
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x19c]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x660c5518
jmp 0x660c5432
test eax, eax
jne 0x660c57eb
lea edx, [ebp - 0x168]
jmp 0x660c53aa
lea eax, [ebp - 0x190]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x170]
mov dword [esp], eax
call fcn.661b02e0
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x170], eax
sub esp, 8
mov dword [ebp - 0x168], edx
cmp ebx, 4
jae 0x660c56a8
test ebx, ebx
je 0x660c5694
movzx edx, byte [ebp - 0x12c]
mov byte [eax], dl
test bl, 2
jne 0x660c57c1
mov eax, dword [ebp - 0x190]
mov edx, dword [ebp - 0x170]
jmp 0x660c53aa
mov edx, dword [ebp - 0x12c]
lea edi, [eax + 4]
lea esi, [ebp - 0x12c]
and edi, 0xfffffffc
mov dword [eax], edx
mov edx, dword [ebp + ebx - 0x130]
mov dword [eax + ebx - 4], edx
sub eax, edi
lea ecx, [eax + ebx]
sub esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x660c5694
lea eax, [ebp - 0x18c]
mov dword [esp], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 4], eax
call fcn.66186ce0
mov esi, dword [ebp + 8]
mov eax, edi
xor edx, edx
sub esp, 8
div dword [esi + 4]
lea eax, [edx*4]
mov dword [ebp - 0x1ac], eax
jmp 0x660c54e3
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [edi + 8], ebx
mov dword [ebx], eax
test eax, eax
je 0x660c572d
mov eax, dword [eax + 0x1c]
xor edx, edx
div dword [edi + 4]
mov dword [ecx + edx*4], ebx
mov eax, dword [ebp + 8]
add eax, 8
mov dword [esi], eax
jmp 0x660c5505
lea eax, [ebp - 0x158]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x188]
mov dword [esp], eax
call fcn.661b02e0
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x188], eax
sub esp, 8
mov dword [ebp - 0x180], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ebx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x188]
jmp 0x660c52d5
mov eax, dword [ebp - 0x168]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x164]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x160]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebx + 0x18], eax
jmp 0x660c5483
movzx edx, word [ebp + ebx - 0x12e]
mov word [eax + ebx - 2], dx
jmp 0x660c5694
mov dword [esp], 0x661de1a4
call fcn.661d32b0
mov dword [esp], 0x661de44e
call fcn.661d33a0
lea eax, [ebp - 0x168]
jmp 0x660c5679