Function at 0x10012940
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x35c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x1003d090
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x368]
push edi
push str._s.
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x160]
lea edx, [ebp - 0x368]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x10012b84
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
test byte [ebp - 0x160], 0x10
je 0x10012a41
mov esi, 0x10031888
lea eax, [ebp - 0x134]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100129ec
test cl, cl
je 0x100129e8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100129ec
add eax, 2
add esi, 2
test cl, cl
jne 0x100129c8
xor eax, eax
jmp 0x100129f1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10012b61
mov esi, 0x10031884
lea eax, [ebp - 0x134]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10012a28
test cl, cl
je 0x10012a24
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10012a28
add eax, 2
add esi, 2
test cl, cl
jne 0x10012a04
xor eax, eax
jmp 0x10012a2d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10012b61
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ebx
jmp 0x10012a5f
mov ecx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x140]
cmp ecx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], eax
jbe 0x10012a5f
or eax, 0x80000000
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x210]
mov ecx, eax
and ecx, 0xf
test cl, cl
jne 0x10012aea
add eax, 0x10
mov edx, eax
shl edx, 4
add edx, eax
lea eax, [eax + edx*8]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov eax, dword [edi + 0x210]
mov ecx, eax
mov esi, dword [edi + 0x20c]
shl ecx, 4
add ecx, eax
mov edi, ebx
add esp, 4
lea ecx, [eax + ecx*8]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov ecx, 0x890
mov edx, dword [esi + 0x210]
mov edi, edx
shl edi, 4
add edi, edx
lea edx, [edx + edi*8]
lea edi, [ebx + edx*4]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x20c]
push eax
call fcn.10010220
add esp, 4
mov dword [esi + 0x20c], ebx
xor ebx, ebx
mov edi, esi
mov eax, dword [edi + 0x210]
push 0x208
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [eax + ecx*8]
mov ecx, dword [edi + 0x20c]
inc eax
lea esi, [ecx + edx*4]
lea edx, [ebp - 0x134]
push edx
push esi
mov dword [edi + 0x210], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x214], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x148]
mov dword [esi + 0x20c], eax
mov eax, dword [ebp - 0x18]
add esp, 0xc
inc eax
mov dword [esi + 0x218], ecx
cmp eax, 0x14
mov dword [esi + 0x210], edx
mov dword [ebp - 0x18], eax
jle 0x10012b61
push 1
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x160]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100129b0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x1003d090
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret