Function at 0x1002314
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100c02c]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x264], eax
call edi
test eax, eax
jne 0x10023e5
push ebx
push 9
call fcn.0100187f
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
test eax, eax
jne 0x10023b2
cmp byte [0x100c06c], al
je 0x1002371
cmp byte [0x100c069], al
jne 0x1002379
push 2
call fcn.0100187f
pop ecx
cmp byte [0x100c06c], 0
jne 0x100239a
cmp byte [0x100c069], 0
jne 0x10023aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.010019e8
pop ecx
pop ecx
cmp byte [0x100c069], 0
jne 0x10023aa
xor eax, eax
jmp 0x1002633
xor eax, eax
inc eax
jmp 0x1002633
xor ebx, ebx
cmp byte [0x100c06c], bl
jne 0x10023c4
push 1
call fcn.0100187f
pop ecx
add dword [0x100c448], 1
mov al, 1
adc dword [0x100c44c], ebx
add dword [0x100cc60], 1
adc dword [0x100cc64], ebx
jmp 0x1002633
push esi
push ebx
call edi
lea esi, [ebx + eax*2]
push ebx
mov dword [ebp - 0x25c], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp byte [0x100c06e], 0
push ebx
je 0x1002410
test ah, 0x40
je 0x100240c
push 0xa
jmp 0x100241b
push 0xb
jmp 0x100241b
test ah, 0x40
je 0x1002419
push 0xc
jmp 0x100241b
push 0xd
call fcn.0100187f
add dword [0x100c448], 1
pop ecx
pop ecx
adc dword [0x100c44c], 0
push dword [ebp - 0x264]
sub esi, ebx
sar esi, 1
call edi
add eax, esi
mov ebx, 0x104
cmp eax, ebx
jge 0x100252f
push dword [ebp - 0x264]
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x100252f
push 0x1001318
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002508
push 0x100131c
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002508
lea eax, [ebp - 0x228]
push eax
call edi
add eax, esi
cmp eax, ebx
jge 0x1002508
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x260]
call fcn.01001cbc
test al, al
je 0x10024f6
cmp byte [0x100c06c], 0
jne 0x1002508
push dword [ebp - 0x25c]
push 0x16
call fcn.0100187f
pop ecx
pop ecx
jmp 0x1002508
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call fcn.01002177
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100247f
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [0x100c068], 0
je 0x1002630
push 0x1001314
call edi
add eax, esi
cmp eax, ebx
jge 0x1002630
push 0x1001314
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x1002630
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1001318
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x1002609
push 0x100131c
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x1002609
test byte [ebp - 0x254], 0x10
je 0x1002609
push 0x1001310
call edi
mov ebx, eax
lea eax, [ebp - 0x228]
push eax
call edi
add ebx, esi
add eax, ebx
cmp eax, 0x104
jge 0x1002609
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001310
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x264]
push dword [ebp - 0x260]
call fcn.01002314
test al, al
je 0x1002641
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002580
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.010058ab
leave
ret 8
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp byte [0x100c069], al
setne al
jmp 0x1002632