Function at 0x41ebea
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov eax, 0x45cd10
call fcn.0045c170
sub esp, 0x6b0
mov al, byte [0x45e298]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x40
mov byte [ebp - 0x5b8], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x5b7]
rep stosd dword es:[edi], eax
push dword [ebp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
push 0xc
mov dword [ebp - 0x20], eax
pop ecx
xor eax, eax
cmp dword [ebp + 0x20], 0xffffffff
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], 0x30
jne 0x41ec4e
mov dword [ebp + 0x20], 0x3501
cmp dword [ebp + 0x24], 0xffffffff
jne 0x41ec6d
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00426f94
mov eax, dword [ebp + 0x24]
pop ecx
cdq
idiv dword [ebp + 0x18]
pop ecx
mov dword [ebp + 0x24], eax
mov al, byte [ebp + 0xb]
xor esi, esi
mov byte [ebp - 0x34], al
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
push 0x40aaf8
mov edi, 0x104
push dword [ebp + 0x14]
lea eax, [ebp - 0x4b4]
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
push 0x40aa38
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x3b1], 0
add esp, 0x14
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x41f0de
mov eax, 0x40aaf4
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41ecff
test cl, cl
je 0x41ecfb
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41ecff
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41ecdd
xor eax, eax
jmp 0x41ed04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f0c4
mov eax, 0x40aaf0
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41ed39
test cl, cl
je 0x41ed35
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41ed39
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41ed17
xor eax, eax
jmp 0x41ed3e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f0c4
test byte [ebp - 0x1a8], 0x10
je 0x41f0c4
cmp dword [0x472870], 0
je 0x41ed69
test byte [ebp - 0x1a8], 2
jne 0x41f0c4
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x2ac]
push dword [ebp + 0x14]
push 0x40ab20
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x1a9], 0
add esp, 0x14
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x3b0]
push edi
push eax
push 0xc9
push dword [0x531f10]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
xor esi, esi
add eax, dword [ebp + 0x20]
lea edi, [ebp - 0x3b0]
or ecx, 0xffffffff
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x60], 0x42
mov dword [ebp - 0x5c], esi
repne scasb al, byte es:[edi]
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push esi
push eax
push 1
not ecx
push esi
dec ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x3c], ecx
call fcn.004320d5
mov ecx, dword [ebp + 8]
add esp, 0x1c
mov edx, dword [ecx + 4]
cmp edx, esi
jne 0x41ee17
xor eax, eax
jmp 0x41ee1f
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
mov edx, dword [ebx]
cmp eax, edx
ja 0x41ee38
lea eax, [ebp - 0x18]
add edx, 0x1f4
push eax
push edx
mov dword [ebp - 0x18], esi
call fcn.004207fb
lea edi, [ebp - 0x2ac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
not ecx
mov eax, dword [eax + 4]
dec ecx
mov esi, ecx
mov ecx, dword [ebx]
inc esi
inc esi
lea edi, [eax + ecx*4]
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [ebp + 8]
mov dword [edi], eax
mov edx, dword [ebx]
mov dword [esp], 0x104
mov eax, dword [ecx + 4]
mov eax, dword [eax + edx*4]
mov dl, byte [0x40ab1c]
mov byte [eax], dl
mov eax, dword [ecx + 4]
mov edx, dword [ebx]
lea ecx, [esi - 1]
lea esi, [ebp - 0x2ac]
mov edi, dword [eax + edx*4]
mov eax, ecx
inc edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x3b0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
inc dword [ebx]
push 0x96
push dword [0x531f10]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
xor edx, edx
add eax, dword [ebp + 0x20]
lea edi, [ebp - 0x3b0]
or ecx, 0xffffffff
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x60], 0x42
mov dword [ebp - 0x5c], edx
repne scasb al, byte es:[edi]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push edx
push eax
push 1
not ecx
push 1
dec ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x3c], ecx
call fcn.004320d5
add esp, 0x1c
xor eax, eax
lea edi, [ebp - 0x64]
push 0xc
pop ecx
push 0x30
pop esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0x100
push eax
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x64]
push eax
push 1
push 2
mov dword [ebp - 0x5c], 0x800
push dword [ebp + 0x18]
call fcn.004320d5
add esp, 0x1c
xor eax, eax
cmp dword [0x472854], eax
lea edi, [ebp - 0x64]
push 0xc
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0x167
jne 0x41ef6f
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp + 0x24]
test edx, edx
jne 0x41ef6f
mov dword [ebp - 0x5c], 0x20
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], 8
mov edx, dword [ecx + 4]
test edx, edx
jne 0x41ef84
xor eax, eax
jmp 0x41ef8c
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
mov edx, dword [ebx]
cmp eax, edx
ja 0x41efa6
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
add edx, 0x1f4
push eax
push edx
call fcn.004207fb
lea edi, [ebp - 0x2ac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
not ecx
mov eax, dword [eax + 4]
dec ecx
mov esi, ecx
mov ecx, dword [ebx]
inc esi
push esi
lea edi, [eax + ecx*4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 4]
lea esi, [ebp - 0x2ac]
mov dword [esp], 0x104
mov edi, dword [eax + edx*4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [ebx]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, eax
pop ecx
lea eax, [ebp - 0x17c]
push eax
push 0x40a158
push 0x104
push edi
call esi
and byte [edi + 0x103], 0
push 1
push dword [0x472850]
push edi
call fcn.004262b3
mov dword [ebp - 0x40], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov eax, dword [ebx]
mov edi, dword [ebp + 0x18]
add eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], edi
not ecx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x5b8]
push dword [ebp + 0x14]
dec ecx
mov dword [ebp - 0x3c], ecx
push 0x40aa38
push 0x103
push eax
call esi
lea eax, [ebp - 0x5b8]
push eax
call fcn.00457b3f
add esp, 0x18
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
and eax, 6
inc eax
inc eax
inc dword [ebx]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
call fcn.0042085a
push dword [ebp + 0x24]
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0x20]
inc eax
push eax
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
lea eax, [ebp - 0x2ac]
push eax
push edi
push ebx
push dword [ebp + 8]
call fcn.0041ebea
add esp, 0x20
inc dword [ebp - 0x24]
mov edi, 0x104
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41ecd2
xor esi, esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x34]
push eax
call fcn.0041ea7f
cmp dword [ebp - 0x30], esi
pop ecx
jne 0x41f0fb
mov dword [ebp - 0x14], esi
jmp 0x41f10a
mov eax, dword [ebp - 0x2c]
push 0x30
sub eax, dword [ebp - 0x30]
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x18], esi
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x18], eax
jge 0x41f16c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x30]
push 0xc
lea edi, [ebp - 0x64]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [ebp - 0x18], eax
lea esi, [eax + ecx]
pop ecx
push 0
lea eax, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x44]
push 0
push eax
push 1
push dword [ebp - 0x20]
push dword [ebp + 0x10]
call fcn.004320d5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add esp, 0x1c
mov eax, dword [eax + ecx + 0x24]
test eax, eax
je 0x41f15f
push eax
call fcn.0045c12b
pop ecx
inc dword [ebp - 0x20]
inc dword [ebp + 0x18]
mov edi, 0x104
jmp 0x41f10d
lea ecx, [ebp - 0x34]
call fcn.0042086b
push 0x40aaf8
lea eax, [ebp - 0x4b4]
push dword [ebp + 0x14]
push 0x40aa38
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x3b1], 0
add esp, 0x14
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x41f480
mov eax, 0x40aaf4
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f1e6
test cl, cl
je 0x41f1e2
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f1e6
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f1c4
xor eax, eax
jmp 0x41f1eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f468
mov eax, 0x40aaf0
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f220
test cl, cl
je 0x41f21c
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f220
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f1fe
xor eax, eax
jmp 0x41f225
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f468
test byte [ebp - 0x1a8], 0x10
jne 0x41f468
cmp dword [0x472870], 0
je 0x41f250
test byte [ebp - 0x1a8], 2
jne 0x41f468
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x2ac]
push dword [ebp + 0x14]
push 0x40aa38
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x1a9], 0
add esp, 0x14
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x41f468
lea eax, [ebp - 0x2ac]
push eax
call fcn.00457b3f
test eax, eax
pop ecx
lea eax, [ebp - 0x17c]
push eax
je 0x41f2d5
call fcn.004267c1
test eax, eax
pop ecx
je 0x41f2b7
mov dword [ebp - 0x14], 7
jmp 0x41f304
lea eax, [ebp - 0x17c]
push eax
call fcn.00426762
test eax, eax
pop ecx
je 0x41f468
mov dword [ebp - 0x14], 9
jmp 0x41f304
call fcn.004267c1
test eax, eax
pop ecx
je 0x41f2e8
mov dword [ebp - 0x14], 3
jmp 0x41f304
lea eax, [ebp - 0x17c]
push eax
call fcn.00426762
test eax, eax
pop ecx
je 0x41f468
mov dword [ebp - 0x14], 4
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 0x18], eax
mov edi, dword [ebp + 0x18]
push 0x41
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x17c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
add ecx, 0xfffffffb
lea eax, [ebp - 0x17c]
push ecx
push eax
push dword [ebp + 0x18]
call esi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x6bc]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x17c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffb
lea eax, [ebp - 0x17c]
push ecx
push eax
lea eax, [ebp - 0x6bc]
push eax
call esi
add esp, 0x18
xor eax, eax
cmp dword [0x472854], eax
lea edi, [ebp - 0x64]
push 0xc
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x60], 0x163
jne 0x41f39e
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp + 0x24]
test edx, edx
jne 0x41f39e
mov dword [ebp - 0x5c], 0x20
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x58], 8
mov edx, dword [esi + 4]
add ecx, eax
test edx, edx
mov dword [ebp - 0x54], ecx
jne 0x41f3bd
xor ecx, ecx
jmp 0x41f3c5
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
cmp ecx, eax
ja 0x41f3de
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
add eax, 0x1f4
push ecx
push eax
mov ecx, esi
call fcn.004207fb
lea edi, [ebp - 0x2ac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
not ecx
mov eax, dword [eax + 4]
dec ecx
mov esi, ecx
mov ecx, dword [ebx]
inc esi
push esi
lea edi, [eax + ecx*4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 4]
lea esi, [ebp - 0x2ac]
push 1
mov edi, dword [eax + edx*4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [0x472850]
push dword [ebp + 0x18]
call fcn.004262b3
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x14]
not ecx
dec ecx
inc dword [ebx]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x3c], ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.0042085a
inc dword [ebp - 0x24]
mov edi, 0x104
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f1b9
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x34]
push eax
call fcn.0041ea7f
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x30], ecx
jne 0x41f4a3
mov dword [ebp - 0x14], ecx
jmp 0x41f4b2
mov eax, dword [ebp - 0x2c]
push 0x30
sub eax, dword [ebp - 0x30]
pop esi
cdq
idiv esi
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x18], eax
jge 0x41f50f
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x30]
push 0xc
lea edi, [ebp - 0x64]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [ebp - 0x18], eax
lea esi, [eax + ecx]
pop ecx
push 0
lea eax, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x44]
push 0
push eax
push 1
push dword [ebp - 0x20]
push dword [ebp + 0x10]
call fcn.004320d5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add esp, 0x1c
mov eax, dword [eax + ecx + 0x24]
test eax, eax
je 0x41f507
push eax
call fcn.0045c12b
pop ecx
inc dword [ebp - 0x20]
inc dword [ebp + 0x18]
jmp 0x41f4b5
lea ecx, [ebp - 0x34]
call fcn.0042086b
jmp 0x41f531
mov eax, dword [ebp - 0x24]
and dword [ebp - 4], 0
cmp eax, dword [ebp - 0x68]
mov esi, dword [ebp + 8]
jne 0x41f600
cmp dword [ebp + 0x1c], 1
je 0x41f600
lea eax, [ebp - 0x2ac]
push 0x104
push eax
push 0x95
push dword [0x531f10]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x20]
add ecx, eax
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x54], ecx
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [ebp - 0x60], 0x43
mov dword [ebp - 0x58], 3
jne 0x41f59f
xor edx, edx
jmp 0x41f5a7
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
cmp edx, eax
ja 0x41f5c0
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
add eax, 0x1f4
push ecx
push eax
mov ecx, esi
call fcn.004207fb
mov esi, dword [esi + 4]
mov eax, dword [ebx]
xor edx, edx
lea edi, [ebp - 0x2ac]
mov dword [esi + eax*4], edx
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x40], eax
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push edx
push eax
push 1
push dword [ebp - 0x20]
not ecx
push dword [ebp + 0x10]
dec ecx
mov dword [ebp - 0x3c], ecx
call fcn.004320d5
add esp, 0x1c
inc dword [ebx]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0042af29
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret