Function at 0x10007da3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
and dword [ebp - 8], 0
push ebx
push esi
mov esi, eax
mov eax, dword [0x1000d278]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor eax, 0x63699ac7
push eax
push 0
push dword [0x1000d238]
call edi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x1000804a
mov eax, dword [0x1000d278]
mov ebx, 0x63699bce
xor eax, ebx
push eax
push 0
push dword [0x1000d238]
call edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x1000803a
mov ecx, dword [0x1000d278]
xor ecx, ebx
push ecx
push edi
push eax
call sub.ntdll.dll_memset
mov eax, dword [0x1000d27c]
add esp, 0xc
lea eax, [eax + 0x1000e7f2]
push eax
call fcn.10008d0b
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x1000802a
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
or ebx, 0xffffffff
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x10007e79
push edi
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
add dword [ebp - 0x18], 0x2a69c000
push dword [ebp - 0x1c]
adc dword [ebp - 0x14], 0xc9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c
push edi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov byte [eax], 0
mov eax, dword [esi]
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
movzx ecx, al
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov dword [esi], eax
movzx eax, al
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1000d27c]
lea eax, [eax + 0x1000e813]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x10]
call edi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10008028
mov esi, dword [sym.imp.KERNEL32.dll_CompareFileTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10007f45
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007f38
push dword [ebp - 0xc]
call ebx
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
call esi
test eax, eax
jg 0x10007efe
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 8], eax
jbe 0x10007f63
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x1c]
ja 0x10007fff
cmp ecx, eax
je 0x10007f6d
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], eax
jne 0x10007fba
push 0x2e
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov ecx, dword [ebp - 0x24]
mov esi, eax
lea eax, [ebp - 0x140]
sub esi, eax
xor eax, eax
test ecx, ecx
je 0x10007f98
lea eax, [esi - 4]
cmp eax, esi
jbe 0x10007f98
xor eax, eax
cmp esi, 4
jbe 0x10007fa0
push 4
pop esi
lea eax, [ebp + eax - 0x140]
push esi
push eax
mov eax, dword [ebp - 0x20]
add eax, ecx
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
add dword [ebp - 0x24], esi
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007fe2
push dword [ebp - 0xc]
call ebx
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x10007fba
inc dword [ebp - 8]
jmp 0x10007f4d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
jmp 0x10008012
cmp al, 0x30
jge 0x10008011
add al, 0x20
mov byte [ecx], al
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10008009
push dword [ebp - 0xc]
mov dword [ebp - 8], 1
call ebx
xor edi, edi
jmp 0x1000803a
xor edi, edi
push dword [ebp - 0x20]
push edi
push dword [0x1000d238]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x10]
push edi
push dword [0x1000d238]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4