Function at 0x10006340
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x25c
mov ecx, 0x43
xor eax, eax
push ebx
mov ebx, dword [esp + 0x264]
push ebp
push esi
mov esi, dword [esp + 0x270]
push edi
lea edi, [esp + 0x160]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x164]
mov ecx, ebx
push eax
call fcn.10001c50
cmp eax, esi
je 0x1000638a
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x25c
ret
mov edi, str..
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x160]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10004420
mov edi, eax
lea eax, [esp + 0x160]
push eax
mov dword [esp + 0x14], edi
call fcn.10005b30
mov ebp, eax
add esp, 4
test ebp, ebp
jle 0x100064e5
lea ecx, [esp + 0x20]
lea edx, [esp + 0x160]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x100064e5
lea ebp, [ebp + ebp*4]
shl ebp, 6
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
mov dword [esp + 0x1c], edi
test byte [esp + 0x20], 0x10
je 0x10006446
lea eax, [esp + 0x4c]
push eax
call fcn.10005b00
add esp, 4
test eax, eax
jne 0x1000649a
mov ecx, dword [esp + 0x20]
lea edi, [esp + 0x4c]
mov dword [ebx], ecx
mov edx, dword [esp + 0x3c]
add ebx, 4
or ecx, 0xffffffff
mov dword [ebx], edx
mov eax, dword [esp + 0x40]
add ebx, 4
mov dword [ebx], eax
xor eax, eax
add ebx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
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, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
not ecx
dec ecx
lea ebx, [ebx + ecx + 1]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000642e
push esi
mov dword [ebx], 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x270]
sub ebx, edi
add ebx, 4
push 0
push ebx
push edi
push ebp
push 0xa000
call fcn.10002320
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x1000654d
jmp 0x10006547
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52e
je 0x10006520
cmp eax, 5
je 0x10006520
cmp eax, 0x3ed
je 0x10006520
cmp eax, 0x15
je 0x10006520
cmp eax, 3
je 0x10006520
cmp eax, 0x7b
je 0x10006520
push 0
lea ecx, [esp + 0x14]
push 4
mov dword [esp + 0x18], 0xffffffff
push ecx
jmp 0x10006535
push 0
lea edx, [esp + 0x14]
push 8
mov dword [esp + 0x18], 0xfffffffe
mov dword [esp + 0x1c], eax
push edx
push 0xffffffffffffffff
push 0xa000
mov ecx, ebx
call fcn.10002320
test edi, edi
je 0x1000654d
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret