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

Disassembly:
push 0xffffffffffffffff
push 0x10024cf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a8
push ebx
push esi
push edi
mov edi, dword [esp + 0x4c4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1a4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x10005537
push ebp
xor ebx, ebx
mov al, byte [esp + 0x68]
test al, 2
jne 0x100052a1
test al, 0x10
je 0x100052a1
cmp dword [esp + 0x4d0], ebx
je 0x100052a1
mov esi, 0x1002c304
lea eax, [esp + 0x94]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000514e
cmp cl, bl
je 0x1000514a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000514e
add eax, 2
add esi, 2
cmp cl, bl
jne 0x1000512a
xor eax, eax
jmp 0x10005153
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10005513
mov esi, 0x1002c300
lea eax, [esp + 0x94]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000518b
cmp cl, bl
je 0x10005187
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000518b
add eax, 2
add esi, 2
cmp cl, bl
jne 0x10005167
xor eax, eax
jmp 0x10005190
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10005513
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.10006aa0
mov edx, dword [esp + 0x4c8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x4c0], ebx
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.10006b30
lea ecx, [esp + 0x38]
push 0x1002c374
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.10007510
add esp, 0xc
mov ecx, dword [0x100264c0]
mov byte [esp + 0x4c0], 1
push ecx
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.10006460
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4c4], bl
call fcn.10006aa0
lea edx, [esp + 0x94]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.10007510
add esp, 0xc
mov edx, dword [0x100264c0]
lea ecx, [esp + 0x38]
push edx
push ebx
push eax
mov byte [esp + 0x4cc], 2
call fcn.10006460
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c4], bl
call fcn.10006aa0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x10005265
mov eax, 0x100264bc
mov ecx, dword [esp + 0x4d4]
mov edx, dword [esp + 0x4d0]
push ecx
mov ecx, dword [esp + 0x4d0]
push edx
push ecx
push eax
call fcn.10005060
add esp, 0x10
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c0], 0xffffffff
push 1
call fcn.10006aa0
jmp 0x10005513
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call fcn.10006aa0
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x94]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.10006b30
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c0], 3
call fcn.10006a20
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x24]
call fcn.10006a20
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x10005303
xor ebp, ebp
jmp 0x1000530a
mov ecx, dword [esp + 0x2c]
lea ebp, [ecx + eax]
lea ecx, [esp + 0x24]
call fcn.10006a20
mov esi, dword [esp + 0x28]
cmp esi, ebp
je 0x1000532f
movsx edx, byte [esi]
push edx
call sub.MSVCRT.dll_tolower
add esp, 4
mov byte [edi], al
inc esi
inc edi
cmp esi, ebp
jne 0x1000531b
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.10006aa0
mov esi, dword [esp + 0x4cc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.10006bf0
test al, al
je 0x10005384
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.10006bd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c0], 4
call fcn.10006a20
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.10006a20
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x100053ae
xor ebp, ebp
jmp 0x100053b5
mov ecx, dword [esp + 0x1c]
lea ebp, [eax + ecx]
lea ecx, [esp + 0x14]
call fcn.10006a20
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x100053de
movsx edx, byte [esi]
push edx
call sub.MSVCRT.dll_tolower
add esp, 4
mov byte [edi], al
inc esi
inc edi
cmp esi, ebp
jne 0x100053c6
mov esi, dword [esp + 0x18]
cmp esi, ebx
jne 0x100053e7
mov esi, 0x100264bc
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ebx
push esi
call fcn.10006910
cmp eax, dword [0x100264c0]
je 0x100054a7
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2ad]
mov byte [esp + 0x2ac], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2ac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x88]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x4c8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2ac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x8c]
shl ecx, 0x10
add ecx, ebp
mov dword [esp + 0x4bc], ecx
mov ecx, dword [esp + 0x4dc]
mov eax, dword [ecx + 8]
push eax
call fcn.10006e00
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100054cc
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100054c3
cmp al, 0xff
je 0x100054c3
dec al
mov byte [ecx], al
jmp 0x100054cc
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c0], 0xffffffff
je 0x10005507
mov al, byte [ecx - 1]
cmp al, bl
je 0x100054fd
cmp al, 0xff
je 0x100054fd
dec al
mov byte [ecx - 1], al
jmp 0x10005507
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x68]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100050fd
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4b4
ret