Function at 0x10a1a27
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
or dword [ebp - 0x684], 0xffffffff
or dword [ebp - 0x680], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x67c], edi
mov dword [ebp - 0x678], eax
mov eax, dword [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x10a1ac2
test byte [eax + 0x1c], 4
je 0x10a1a93
cmp byte [eax + 0x19], 4
jb 0x10a1a93
push 0x100ab40
push 0x6a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
cmp eax, esi
je 0x10a1ac2
test byte [eax + 0x1c], 4
je 0x10a1ac2
cmp byte [eax + 0x19], 4
jb 0x10a1ac2
push edi
call dword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
push eax
mov eax, dword [0x111124c]
push 0x100ab40
push 0x6b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
inc esi
inc esi
test ax, ax
jne 0x10a1ac7
sub esi, ecx
sar esi, 1
lea ecx, [esi + 0x43]
mov eax, 0x104
cmp ecx, eax
ja 0x10a1d30
lea ecx, [esi + 0x1c]
cmp ecx, eax
ja 0x10a1d30
lea edi, [esi + esi]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.msvcrt.dll_memcpy
push 0x84
lea eax, [ebp + edi - 0x414]
push 0x100aeb0
push eax
call sub.msvcrt.dll_memcpy
xor eax, eax
push edi
mov word [ebp + esi*2 - 0x390], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memcpy
push 0x36
lea eax, [ebp + edi - 0x20c]
push 0x100ae78
push eax
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [ebp + esi*2 - 0x1d6], ax
add esp, 0x30
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10a1b73
xor eax, eax
jmp 0x10a1d3f
cmp byte [ebp + 0x10], 0
jne 0x10a1c5f
lea eax, [ebp - 0x648]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a1b86
sub eax, edx
sar eax, 1
cmp eax, 0x4a
jbe 0x10a1c2e
push dword [ebp - 0x678]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.010a155f
test eax, eax
je 0x10a1bf9
mov ecx, dword [0x111124c]
mov esi, 0x111124c
cmp ecx, esi
je 0x10a1c9e
test byte [ecx + 0x1c], 4
je 0x10a1c9e
cmp byte [ecx + 0x19], 4
jb 0x10a1c9e
push eax
push 0x100ab40
push 0x6c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
jmp 0x10a1c9e
push dword [ebp - 0x678]
lea eax, [ebp - 0x684]
push eax
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010a16b8
mov esi, eax
test esi, esi
je 0x10a1c5f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x10a1d3f
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10a1c5f
test byte [eax + 0x1c], 4
je 0x10a1c5f
cmp byte [eax + 0x19], 4
jb 0x10a1c5f
lea ecx, [ebp - 0x648]
push ecx
push 0x100ab40
push 0x6d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push dword [ebp - 0x678]
lea eax, [ebp - 0x648]
push dword [ebp - 0x680]
push dword [ebp - 0x684]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x67c]
call fcn.0109ca2d
mov esi, eax
test esi, esi
jne 0x10a1c20
mov esi, 0x111124c
lea eax, [ebp - 0x674]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10a1b73
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x111124c]
cmp eax, esi
je 0x10a1b6c
test byte [eax + 0x1c], 4
je 0x10a1cfd
cmp byte [eax + 0x19], 4
jb 0x10a1cfd
push dword [ebp - 0x67c]
call dword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
push eax
mov eax, dword [0x111124c]
push 0x100ab40
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp eax, esi
je 0x10a1b6c
test byte [eax + 0x1c], 4
je 0x10a1b6c
cmp byte [eax + 0x19], 4
jb 0x10a1b6c
push 0x100ab40
push 0x6f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
jmp 0x10a1b6c
mov eax, dword [ebp - 0x678]
push 2
mov dword [eax], 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x18