Function at 0x586ee0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x690e97
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x7851cc]
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, dword [ebp + 0x38]
mov dword [ebp - 0x294], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x24], xmm0
push 8
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.0062703d
lea ecx, [ebp - 0x24]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x24], eax
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
lea eax, [edx + 1]
cmp ecx, eax
ja 0x586f8c
push 1
lea ecx, [ebp - 0x24]
call fcn.0058c2e0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
dec ecx
and eax, ecx
mov dword [ebp - 0x18], eax
add eax, edx
and ecx, eax
lea esi, [ecx*4]
mov ecx, dword [ebp - 0x20]
cmp dword [esi + ecx], 0
jne 0x586fbc
push 0x18
call fcn.0062703d
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [esi + ecx], eax
mov ecx, dword [ebp - 0x20]
mov ecx, dword [esi + ecx]
lea eax, [ebp + 8]
push eax
call fcn.004484e0
inc dword [ebp - 0x14]
push edi
push dword [edi + 4]
push dword [edi]
call fcn.00475ac0
mov eax, dword [edi]
add esp, 0xc
mov dword [edi + 4], eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x58746e
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
add eax, ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x2a0], eax
dec ecx
dec eax
and ecx, eax
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp + 8]
cmp ecx, eax
je 0x587021
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x587015
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.0045e220
push 0x6d5588
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.004b7920
add esp, 0xc
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae ecx, dword [ebp + 0x20]
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0046a530
or dword [ebp - 0x294], 1
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x28]
movq qword [ebp - 0x29c], xmm1
movups xmmword [ebp - 0x2ac], xmm0
cmp edx, 8
jb 0x5870cd
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5870b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58756e
push edx
push ecx
call fcn.0062706d
movups xmm0, xmmword [ebp - 0x2ac]
add esp, 8
movq xmm1, qword [ebp - 0x29c]
mov edx, dword [ebp - 0x2e0]
movq qword [ebp - 0x2c], xmm1
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x3c], xmm0
cmp edx, 8
jb 0x58711a
mov ecx, dword [ebp - 0x2f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x587110
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58756e
push edx
push ecx
call fcn.0062706d
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
dec eax
mov edx, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp - 0x20]
dec edx
and edx, ecx
mov eax, dword [eax + edx*4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005836d0
mov eax, dword [ebp - 0x18]
add esp, 8
sub dword [ebp - 0x14], 1
mov ecx, 0
cmove eax, ecx
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28c]
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x298], eax
mov esi, eax
cmp eax, 0xffffffff
je 0x587448
nop dword [eax + eax]
mov edx, 0x6d5328
lea ecx, [ebp - 0x260]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x5871b6
test ax, ax
je 0x5871b2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x5871b6
add ecx, 4
add edx, 4
test ax, ax
jne 0x587190
xor eax, eax
jmp 0x5871bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x587432
mov eax, 0x6d6f04
lea ecx, [ebp - 0x260]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x5871f6
test dx, dx
je 0x5871f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x5871f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x5871d0
xor eax, eax
jmp 0x5871fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x587432
test byte [ebp - 0x28c], 0x10
lea eax, [ebp + 8]
push 0x6d5588
push eax
lea eax, [ebp - 0x2dc]
push eax
je 0x587308
call fcn.004b7920
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 6
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x587237
sub ecx, esi
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0046a530
or dword [ebp - 0x294], 2
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2ec], xmm0
movups xmmword [ebp - 0x30c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2a4], xmm0
movq qword [ebp - 0x2fc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
lea eax, [edx + 1]
cmp ecx, eax
ja 0x5872b6
push 1
lea ecx, [ebp - 0x24]
call fcn.0058c2e0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
dec ecx
and eax, ecx
mov dword [ebp - 0x18], eax
add eax, edx
and eax, ecx
lea esi, [eax*4]
mov eax, dword [ebp - 0x20]
cmp dword [esi + eax], 0
jne 0x5872e6
push 0x18
call fcn.0062703d
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [esi + ecx], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [esi + eax]
movups xmm0, xmmword [ebp - 0x2ec]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x2a4]
movq qword [eax + 0x10], xmm0
inc dword [ebp - 0x14]
jmp 0x5873e8
call fcn.004b7920
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 8
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x587320
sub ecx, esi
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0046a530
or dword [ebp - 0x294], 4
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
movups xmmword [ebp - 0x2c4], xmm0
mov dword [eax + 0x10], 0
movq qword [ebp - 0x2b4], xmm1
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [edi + 4]
mov byte [ebp - 4], 9
cmp eax, dword [edi + 8]
je 0x587395
movups xmmword [eax], xmm0
lea edx, [ecx + 7]
movq qword [eax + 0x10], xmm1
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x2c4], ax
jmp 0x5873aa
lea ecx, [ebp - 0x2c4]
push ecx
push eax
mov ecx, edi
call fcn.00475c90
mov edx, dword [ebp - 0x2b0]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x5873e8
mov ecx, dword [ebp - 0x2c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5873de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58756e
push edx
push ecx
call fcn.0062706d
add esp, 8
mov edx, dword [ebp - 0x2c8]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x58742c
mov ecx, dword [ebp - 0x2dc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x587422
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58756e
push edx
push ecx
call fcn.0062706d
add esp, 8
mov esi, dword [ebp - 0x298]
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x587180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x12
jne 0x58745f
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x586fde
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x28d], 0
jmp 0x587475
mov byte [ebp - 0x28d], 1
lea ecx, [ebp - 0x24]
call fcn.005850e0
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x5874b7
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5874ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58756e
push edx
push ecx
call fcn.0062706d
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp edx, 8
jb 0x587501
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5874f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58756e
push edx
push ecx
call fcn.0062706d
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x58754b
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x587541
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58756e
push edx
push ecx
call fcn.0062706d
add esp, 8
mov al, byte [ebp - 0x28d]
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.0062702c
mov esp, ebp
pop ebp
ret 0x34
call fcn.00646804
int3