Function at 0x414860
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a45e
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x49c068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.00404760
mov byte [ebp - 4], 3
mov eax, 0x7fffffff
mov ecx, dword [ebp + 0x1c]
sub eax, ecx
cmp eax, 2
jb 0x414ffc
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push 2
cmovae eax, dword [ebp + 0xc]
push 0x49416c
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x88]
call fcn.0040f790
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x304]
cmp dword [ebp - 0x70], 0x10
lea eax, [ebp - 0x84]
push ecx
cmovae eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [ebp - 0x70], 0x10
lea ecx, [ebp - 0x84]
mov edx, dword [ebp - 0x74]
cmovae ecx, dword [ebp - 0x84]
push 1
push 0x494168
push ecx
mov dword [ebp - 0x18], eax
call fcn.004168c0
mov ecx, eax
add esp, 0xc
cmp dword [ebp - 0x74], ecx
jb 0x415001
cmp dword [ebp - 0x70], 0x10
lea eax, [ebp - 0x84]
mov dword [ebp - 0x74], ecx
cmovae eax, dword [ebp - 0x84]
cmp dword [ebp - 0x18], 0xffffffff
mov byte [eax + ecx], 0
jne 0x414a40
mov byte [ebp - 4], 5
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
push 8
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x50], 0
mov dword [edi], 0
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
call fcn.0042b3f0
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [eax + 4], 0
mov dword [edi], eax
push 3
mov dword [eax], edi
call fcn.004283d0
mov ecx, dword [ebp + 0x4c]
mov eax, dword [edi]
mov dword [edi], ecx
mov dword [ebp + 0x4c], eax
test ecx, ecx
je 0x4149bb
mov dword [ecx], edi
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x4149c4
lea ecx, [ebp + 0x4c]
mov dword [eax], ecx
lea ecx, [ebp - 0x18]
call fcn.00428480
lea ecx, [ebp - 0x88]
call fcn.00406820
mov eax, dword [ebp - 0x88]
push 8
push eax
mov dword [ebp - 0x88], 0
call fcn.0042b3d0
add esp, 8
lea ecx, [ebp - 0x1c4]
call fcn.00403820
lea ecx, [ebp + 8]
call fcn.00406820
mov eax, dword [ebp + 8]
push 8
push eax
mov dword [ebp + 8], 0
call fcn.0042b3d0
add esp, 8
lea ecx, [ebp + 0x24]
call fcn.00404a50
lea ecx, [ebp + 0x4c]
call fcn.00406610
mov ecx, dword [ebp + 0x4c]
push 8
push ecx
jmp 0x414fd0
mov edx, dword [ebp - 0x304]
lea eax, [ebp - 0x2d8]
and edx, 0x10
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414a52
sub eax, esi
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x2d8]
push eax
test edx, edx
je 0x414b18
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.00408cd0
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp + 0x24]
call fcn.00404cf0
mov esi, eax
lea ecx, [ebp + 0x24]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.004083c0
push esi
mov ecx, eax
call fcn.00404b20
push 3
lea ecx, [ebp - 0x8c]
call fcn.004283d0
lea ecx, [ebp - 0x334]
call fcn.004018b0
lea ecx, [ebp - 0x8c]
call fcn.00428480
push 3
lea ecx, [ebp - 0x90]
call fcn.004283d0
lea ecx, [ebp - 0x340]
call fcn.004018b0
lea ecx, [ebp - 0x90]
call fcn.00428480
lea ecx, [ebp - 0x50]
call fcn.00406820
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x50], 0
jmp 0x414ecd
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.00408cd0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x54], 0x10
mov esi, dword [ebp - 0x58]
mov edx, esi
cmovae ecx, dword [ebp - 0x68]
setae byte [ebp - 0x305]
push 1
push 0x493194
push ecx
call fcn.004168c0
add esp, 0xc
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
lea edx, [eax + 1]
mov dword [ebp - 0x1c], 0
cmp esi, edx
jb 0x415001
sub esi, edx
lea eax, [ebp - 0x68]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp byte [ebp - 0x305], 0
push ecx
cmovne eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x34]
add eax, edx
push eax
call fcn.00408cd0
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
push 3
push 0x494170
call fcn.0040ac00
add esp, 8
mov byte [ebp - 0x305], al
lea ecx, [ebp - 0x34]
call fcn.00406820
mov ecx, dword [ebp - 0x34]
push 8
push ecx
mov dword [ebp - 0x34], 0
call fcn.0042b3d0
add esp, 8
cmp byte [ebp - 0x305], 0
je 0x414eb7
cmp dword [ebp - 0x54], 0x10
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x58]
cmovae ecx, dword [ebp - 0x68]
setae byte [ebp - 0x305]
push 1
push 0x493194
push ecx
call fcn.004168c0
add esp, 0xc
cmp dword [ebp - 0x58], eax
jb 0x415001
cmp byte [ebp - 0x305], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x58], eax
cmovne ecx, dword [ebp - 0x68]
mov byte [ecx + eax], 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004058a0
lea eax, [ebp - 0x358]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp + 0x24]
call fcn.00404cf0
mov esi, eax
lea ecx, [ebp + 0x24]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.004083c0
push esi
mov ecx, eax
call fcn.00404b20
push 3
lea ecx, [ebp - 0x94]
mov byte [ebp - 0x305], al
call fcn.004283d0
lea ecx, [ebp - 0x34c]
call fcn.004018b0
lea ecx, [ebp - 0x94]
call fcn.00428480
push 3
lea ecx, [ebp - 0x98]
call fcn.004283d0
lea ecx, [ebp - 0x358]
call fcn.004018b0
lea ecx, [ebp - 0x98]
call fcn.00428480
cmp byte [ebp - 0x305], 0
jne 0x414e9a
mov ecx, dword [ebp - 0x20]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 4
jb 0x414ffc
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push 4
cmovae eax, dword [ebp - 0x30]
push str..exe
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0040f790
lea ecx, [ebp - 0x1c0]
call fcn.00406820
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00406a60
lea ecx, [ebp - 0x50]
call fcn.00406820
mov eax, dword [ebp - 0x50]
push 8
push eax
mov dword [ebp - 0x50], 0
call fcn.0042b3d0
mov edx, dword [ebp - 0x74]
mov eax, 0x7fffffff
mov esi, dword [ebp - 0x20]
sub eax, edx
add esp, 8
cmp eax, esi
jb 0x414ffc
cmp dword [ebp - 0x70], 0x10
lea ecx, [ebp - 0x84]
push esi
cmovae ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0x10
cmovae eax, dword [ebp - 0x30]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x324]
call fcn.0040f790
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x30c]
mov eax, edx
mov ecx, dword [ebp - 0x310]
sub eax, ecx
cmp eax, 4
jb 0x414dc9
lea eax, [ecx + 4]
cmp edx, 0x10
mov dword [ebp - 0x310], eax
lea esi, [ebp - 0x324]
lea eax, [ebp - 0x320]
cmovae eax, dword [ebp - 0x320]
mov dword [eax + ecx], 0x6578652e
mov byte [eax + ecx + 4], 0
jmp 0x414de6
push 4
push str..exe
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x324]
push dword [ebp - 0x14]
push 4
call fcn.00409060
mov esi, eax
mov byte [ebp - 4], 9
xorps xmm0, xmm0
push 8
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.0042b3f0
add esp, 4
lea ecx, [ebp - 0x50]
mov dword [eax + 4], 0
mov dword [ebp - 0x50], eax
push esi
mov dword [eax], ecx
call fcn.00406a60
lea ecx, [ebp - 0x1a4]
call fcn.00406820
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.00406a60
lea ecx, [ebp - 0x50]
call fcn.00406820
mov eax, dword [ebp - 0x50]
push 8
push eax
mov dword [ebp - 0x50], 0
call fcn.0042b3d0
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x324]
call fcn.00406820
mov eax, dword [ebp - 0x324]
push 8
push eax
mov dword [ebp - 0x324], 0
call fcn.0042b3d0
add esp, 8
lea ecx, [ebp + 0x4c]
mov eax, 3
mov word [ebp - 0x1c4], ax
lea eax, [ebp - 0x1c4]
push eax
call fcn.004050f0
lea ecx, [ebp - 0x34]
call fcn.00406820
mov eax, dword [ebp - 0x34]
push 8
push eax
mov dword [ebp - 0x34], 0
call fcn.0042b3d0
add esp, 8
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.00406820
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push 8
push eax
call fcn.0042b3d0
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x304]
add esp, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x414a40
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
push 8
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x50], 0
mov dword [edi], 0
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
call fcn.0042b3f0
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [eax + 4], 0
mov dword [edi], eax
push 3
mov dword [eax], edi
call fcn.004283d0
mov ecx, dword [ebp + 0x4c]
mov eax, dword [edi]
mov dword [edi], ecx
mov dword [ebp + 0x4c], eax
test ecx, ecx
je 0x414f5b
mov dword [ecx], edi
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x414f64
lea ecx, [ebp + 0x4c]
mov dword [eax], ecx
lea ecx, [ebp - 0x14]
call fcn.00428480
lea ecx, [ebp - 0x88]
call fcn.00406820
mov eax, dword [ebp - 0x88]
push 8
push eax
mov dword [ebp - 0x88], 0
call fcn.0042b3d0
add esp, 8
lea ecx, [ebp - 0x1c4]
call fcn.00403820
lea ecx, [ebp + 8]
call fcn.00406820
mov eax, dword [ebp + 8]
push 8
push eax
mov dword [ebp + 8], 0
call fcn.0042b3d0
add esp, 8
lea ecx, [ebp + 0x24]
call fcn.00404a50
lea ecx, [ebp + 0x4c]
call fcn.00406610
mov eax, dword [ebp + 0x4c]
push 8
push eax
mov dword [ebp + 0x4c], 0
call fcn.0042b3d0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b3c0
mov esp, ebp
pop ebp
ret
call fcn.00401930
call fcn.00407c30
int3