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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10009da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
mov eax, dword [0x10010360]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
jne 0x10001d88
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ebx, ebx
mov dword [ebp - 0x14], ecx
je 0x10001d88
test ecx, ecx
jle 0x10001d88
push eax
push eax
push 0x7e2
call fcn.10002b90
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x35c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + ebx - 1], 0x5c
je 0x10001d35
mov edi, 0x1000e3b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x35c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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, 0x1000e3a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x35c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x154]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10001d99
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test eax, eax
jne 0x10001f28
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x258]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + ebx - 1], 0x5c
je 0x10001e00
mov edi, 0x1000e3b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x258]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x258]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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 [ebp - 0x154]
shr edi, 4
and edi, 1
je 0x10001eb3
mov esi, 0x1000e3bc
lea eax, [ebp - 0x128]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10001e6e
test cl, cl
je 0x10001e6a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10001e6e
add eax, 2
add esi, 2
test cl, cl
jne 0x10001e4a
xor eax, eax
jmp 0x10001e73
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10001f0d
mov esi, 0x1000e3b8
lea eax, [ebp - 0x128]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10001eaa
test cl, cl
je 0x10001ea6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10001eaa
add eax, 2
add esi, 2
test cl, cl
jne 0x10001e86
xor eax, eax
jmp 0x10001eaf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10001f0d
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10001edf
cmp dword [ebp + 0x10], edi
je 0x10001edf
lea edx, [ebp - 0x258]
push edx
call esi
test eax, eax
jne 0x10001edf
mov eax, dword [ebp + 8]
mov dword [0x10010360], 1
push eax
jmp 0x10001d82
push 0
push 0
push 0x7e2
call fcn.10002b90
test edi, edi
je 0x10001f0d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10001f0d
mov ecx, dword [ebp + 0x10]
push esi
push ecx
lea edx, [ebp - 0x258]
push eax
push edx
call fcn.10001c70
add esp, 0x10
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x154]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb eax, eax
inc eax
jmp 0x10001d9b
mov edx, dword [ebp + 8]
push edx
jmp 0x10001d82