Function at 0x10006fe0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x158
mov eax, dword [0x1001734c]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x164]
cmp byte [esi], 0
mov dword [esp + 4], eax
mov dword [esp + 0x10], esi
je 0x100072f0
push ebx
mov ebx, dword [esp + 0x16c]
cmp byte [ebx], 0
je 0x100072ef
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10007030
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x104
mov dword [esp + 0x14], edi
jge 0x100072ee
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10007053
sub eax, edx
cmp eax, 0x104
jae 0x100072ee
push ebp
push 0x400
call fcn.1000bbf6
mov ebp, eax
mov edx, ebp
add esp, 4
mov dword [esp + 0x14], ebp
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10007083
cmp byte [edi + ebp - 1], 0x5c
je 0x100070b4
mov edi, ebp
add edi, 0xffffffff
jmp 0x100070a0
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x100070a0
mov cx, word [0x10011c20]
mov word [edi], cx
mov eax, esi
mov ecx, esi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100070b8
mov edi, ebp
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100070c8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x24]
mov ecx, eax
push edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x20], edi
je 0x100072e4
jmp 0x10007100
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x38], 0
je 0x100072dd
mov ecx, esi
call fcn.10002c20
test eax, eax
jne 0x100072dd
cmp dword [esi + 0x18], eax
jne 0x100072dd
lea eax, [esp + 0x50]
push eax
call fcn.10006f20
add esp, 4
test eax, eax
jne 0x100072c5
test byte [esp + 0x24], 0x10
push 0x400
je 0x100071e8
call fcn.1000bbf6
mov ebp, eax
mov edx, ebp
add esp, 4
mov eax, ebx
sub edx, ebx
jmp 0x10007160
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10007160
mov ecx, dword [esp + 0x18]
cmp byte [ecx + ebp - 1], 0x5c
je 0x10007194
mov edi, ebp
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10007180
mov dx, word [0x10011c20]
mov word [edi], dx
lea eax, [esp + 0x50]
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100071a0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100071b2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.10006fe0
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 0x10
jmp 0x100072c1
call fcn.1000bbf6
push 0x400
mov ebp, eax
push 0
push ebp
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x34]
mov dword [ebp], edx
mov ecx, dword [esp + 0x50]
mov dword [ebp + 4], ecx
mov edx, dword [esp + 0x54]
lea eax, [ebp + 4]
add eax, 4
mov dword [eax], edx
add eax, 4
mov esi, eax
add esp, 0x10
mov ecx, ebx
sub esi, ebx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x10007222
mov ecx, dword [esp + 0x18]
cmp byte [eax + ecx - 1], 0x5c
je 0x10007254
mov edi, eax
add edi, 0xffffffff
mov edi, edi
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10007240
mov dx, word [0x10011c20]
mov word [edi], dx
lea ecx, [esp + 0x50]
mov esi, ecx
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x10007260
sub ecx, esi
mov edi, eax
mov edx, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10007272
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x10007290
sub ecx, esi
push 0
sub ecx, ebp
lea eax, [ecx + eax + 1]
mov ecx, dword [esp + 0x14]
push eax
push ebp
push 0x400
push 0xa021
call fcn.10002f60
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007100
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x158]
pop esi
xor ecx, esp
call fcn.1000bc08
add esp, 0x158
ret