Function at 0x101e8620
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x16c]
cmp edi, 6
jg 0x101e8842
mov ecx, dword [esp + 0x178]
xor ebx, ebx
cmp ecx, ebx
je 0x101e8842
mov eax, dword [esp + 0x168]
cmp eax, ebx
je 0x101e8842
cmp dword [esp + 0x170], ebx
je 0x101e8842
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x10], ebp
mov dword [ecx], ebx
mov dword [esp + 0x1c], ebx
jle 0x101e881e
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x101e87ff
mov ecx, dword [esp + 0x170]
mov eax, 1
shl ebp, 0xa
add ebp, ecx
cmp eax, 1
jne 0x101e87e2
mov edx, dword [esp + 0x164]
mov eax, dword [esp + 0x40]
cmp edx, eax
jne 0x101e87cd
mov esi, 0x10232580
lea eax, [esp + 0x4c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x101e86f8
cmp cl, bl
je 0x101e86f4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x101e86f8
add eax, 2
add esi, 2
cmp cl, bl
jne 0x101e86d4
xor eax, eax
jmp 0x101e86fd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x101e87c9
mov esi, 0x1023257c
lea eax, [esp + 0x4c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x101e8732
cmp cl, bl
je 0x101e872e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x101e8732
add eax, 2
add esi, 2
cmp cl, bl
jne 0x101e870e
xor eax, eax
jmp 0x101e8737
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x101e87c9
mov eax, dword [esp + 0x20]
and eax, 0x10
cmp al, 0x10
je 0x101e87ba
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x101e8837
mov byte [eax + 1], bl
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
inc ecx
add ebp, 0x400
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x174]
cmp eax, ecx
jge 0x101e87de
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x101e86af
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x174]
cmp ebp, eax
jge 0x101e881e
mov edi, dword [esp + 0x16c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
inc eax
add edx, 0x400
cmp eax, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jl 0x101e867f
mov eax, dword [esp + 0x178]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
mov eax, 1
pop ebx
add esp, 0x150
ret
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x150
ret