Function at 0x10009080
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x25c
push ebx
push esi
mov esi, dword [esp + 0x268]
push edi
mov ebx, ecx
mov edi, 0x2800
push esi
mov dword [esp + 0x24], ebx
mov dword [ebx + 0x124], 0
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [eax + esi - 1]
mov eax, 0x100fa614
cmp cl, 0x5c
jne 0x100090c3
mov eax, 0x1012b074
mov cl, 0x73
push eax
mov byte [esp + 0x15], cl
mov byte [esp + 0x17], cl
mov cl, 0x2a
lea eax, [esp + 0x14]
mov byte [esp + 0x18], cl
mov byte [esp + 0x1a], cl
push esi
lea ecx, [esp + 0x16c]
mov dl, 0x25
push eax
push ecx
mov byte [esp + 0x20], dl
mov byte [esp + 0x22], dl
mov byte [esp + 0x25], 0x2e
mov byte [esp + 0x27], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x24]
lea eax, [esp + 0x164]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x1000913e
lea ecx, [esp + 0xf]
push 1
push ecx
mov ecx, ebx
mov byte [esp + 0x17], 0x68
call fcn.10010b00
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 4
push ebp
push 0x2800
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov ebp, 1
mov byte [ebx], 0x68
jmp 0x1000915c
mov edi, dword [esp + 0x1c]
lea edx, [edi - 0x208]
cmp ebp, edx
jbe 0x1000917c
add edi, 0x208
push 0x42
push edi
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov edi, 0x100fa66c
lea esi, [esp + 0x54]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x100091ad
test al, al
je 0x100091a9
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x100091ad
add esi, 2
add edi, 2
test al, al
jne 0x10009185
xor eax, eax
jmp 0x100091b2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000924c
mov edi, 0x100fa668
lea esi, [esp + 0x54]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x100091eb
test al, al
je 0x100091e7
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x100091eb
add esi, 2
add edi, 2
test al, al
jne 0x100091c3
xor eax, eax
jmp 0x100091f0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000924c
mov al, byte [esp + 0x28]
lea ecx, [esp + 0x54]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x54]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x44]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x48]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x3c]
add ebp, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x40]
mov dword [ebx + ebp + 4], eax
add ebp, 8
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10009158
mov ecx, dword [esp + 0x24]
push ebp
push ebx
call fcn.10010b00
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 4