Function at 0x10027f4
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]
push esi
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
push ebx
jne 0x10028c6
push 0xf
call fcn.0100187f
pop ecx
pop ecx
xor esi, esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
jne 0x1002896
cmp byte [0x100c06c], al
je 0x1002855
cmp byte [0x100c069], al
jne 0x100285d
push 2
call fcn.0100187f
pop ecx
cmp byte [0x100c06c], 0
jne 0x100287e
cmp byte [0x100c069], 0
jne 0x100288e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.010019e8
pop ecx
pop ecx
cmp byte [0x100c069], 0
jne 0x100288e
xor eax, eax
jmp 0x1002ae4
xor eax, eax
inc eax
jmp 0x1002ae4
cmp byte [0x100c06c], 0
jne 0x10028a7
push 1
call fcn.0100187f
pop ecx
add dword [0x100c448], 1
adc dword [0x100c44c], esi
add dword [0x100cc60], 1
adc dword [0x100cc64], esi
jmp 0x1002ae2
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 0x10028ef
test ah, 0x40
je 0x10028eb
push 0x10
jmp 0x10028fa
push 0x11
jmp 0x10028fa
test ah, 0x40
je 0x10028f8
push 0x12
jmp 0x10028fa
push 0x13
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 0x10029e1
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 0x10029e1
push 0x1001318
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10029be
push 0x100131c
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10029be
lea eax, [ebp - 0x228]
push eax
call edi
add eax, esi
cmp eax, ebx
jge 0x10029be
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call fcn.010026e1
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100295e
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [0x100c068], 0
je 0x1002ae2
push 0x1001314
call edi
add eax, esi
cmp eax, ebx
jge 0x1002ae2
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 0x1002ae2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1001318
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x1002abb
push 0x100131c
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x1002abb
test byte [ebp - 0x254], 0x10
je 0x1002abb
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 0x1002abb
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.010027f4
test al, al
je 0x1002af3
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002a32
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
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 0x1002ae4