Function at 0x51f240
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab6d4
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x310], esi
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x304], esi
mov dword [ebp - 0x300], esi
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 0x2f8], esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x10], esi
jne 0x51f2b4
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
jmp 0x51f8b1
push 0x250
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.0055c530
mov ax, word [0x5b4804]
mov word [ebp - 0x40], ax
xor eax, eax
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 7
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.00521680
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0051de10
add esp, 0x20
lea ecx, [ebp - 0x40]
call fcn.0042aad0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x51f369
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51f35f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fa25
push edx
push ecx
call fcn.00558004
add esp, 8
mov ax, word [0x5b4864]
mov word [ebp - 0x40], ax
xor eax, eax
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0051de10
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x51f3f8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51f3ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fa2a
push edx
push ecx
call fcn.00558004
add esp, 8
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x30c], eax
cmp eax, 0xffffffff
jne 0x51f528
mov ecx, dword [ebp - 0x2fc]
mov edx, dword [ebp - 0x2f8]
mov eax, dword [ebp - 0x300]
mov dword [ebx + 4], ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x300], 0
mov dword [ebx], eax
mov dword [ebx + 8], edx
call fcn.0042aad0
lea ecx, [ebp - 0x88]
call fcn.0042aad0
mov esi, dword [ebp - 0x300]
test esi, esi
je 0x51f8b1
mov edi, dword [ebp - 0x2fc]
cmp esi, edi
je 0x51f4dc
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x51f4bc
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x51f4b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fa2a
mov eax, edx
push ecx
push eax
call fcn.00558004
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x51f483
mov esi, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x2f8]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x51f519
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fa2a
push ecx
push esi
call fcn.00558004
add esp, 8
jmp 0x51f8b1
mov ebx, dword [ebp - 0x30c]
test byte [ebp - 0x2f0], 0x10
mov edx, 0xa
mov eax, dword [ebp + 0xc]
je 0x51f980
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edi, [ebp - 0x2c4]
mov byte [ebp - 4], 0xb
lea ecx, [edi + 2]
jmp 0x51f570
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x51f570
sub edi, ecx
mov dword [ebp - 0x28], 0
sar edi, 1
mov dword [ebp - 0x14], 7
cmp edi, 7
ja 0x51f5c4
lea esi, [edi + edi]
mov dword [ebp - 0x18], edi
push esi
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0055bfb0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x308], eax
jmp 0x51f61c
cmp edi, 0x7ffffffe
ja 0x51fa20
mov ebx, edi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x51f5e4
mov ebx, 0x7ffffffe
jmp 0x51f5ea
cmp ebx, 0xa
cmovb ebx, edx
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042e270
lea esi, [edi + edi]
mov dword [ebp - 0x308], eax
push esi
lea ecx, [ebp - 0x2c4]
push ecx
push eax
call fcn.0055bfb0
mov eax, dword [ebp - 0x308]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], ebx
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [0x5b4808]
lea ecx, [ebp - 0x28]
mov word [ebp - 0x40], ax
xor eax, eax
mov word [ebp - 0x3e], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 1
call fcn.00441680
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x51f691
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044a180
mov esi, dword [ebp - 0x304]
lea eax, [ebp - 0x28]
or esi, 2
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x304], esi
cmovae eax, dword [ebp - 0x28]
cmp ebx, 8
mov dword [ebp - 0x310], esi
cmovae ecx, dword [ebp - 0x308]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x51f6e8
test dx, dx
je 0x51f6e4
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x51f6e8
add ecx, 4
add eax, 4
test dx, dx
jne 0x51f6c2
xor eax, eax
jmp 0x51f6ed
sbb eax, eax
or eax, 1
test eax, eax
je 0x51f768
push 0xffffffffffffffff
push 0x5b480c
lea ecx, [ebp - 0xa0]
call fcn.0051d800
or esi, 4
mov dword [ebp - 0x304], esi
mov dword [ebp - 0x310], esi
cmp dword [eax + 0x14], 8
jb 0x51f71a
mov eax, dword [eax]
mov esi, dword [ebp - 0x308]
lea ecx, [ebp - 0x58]
cmp ebx, 8
cmovae ecx, esi
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x51f756
test dx, dx
je 0x51f752
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x51f756
add ecx, 4
add eax, 4
test dx, dx
jne 0x51f730
xor eax, eax
jmp 0x51f75b
sbb eax, eax
or eax, 1
test eax, eax
je 0x51f76e
mov byte [ebp - 0x2f1], 0
jmp 0x51f775
mov esi, dword [ebp - 0x308]
mov byte [ebp - 0x2f1], 1
mov eax, dword [ebp - 0x304]
test al, 4
je 0x51f79f
and eax, 0xfffffffb
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x310], eax
call fcn.0042aad0
mov eax, dword [ebp - 0x304]
mov dword [ebp - 4], 0xc
test al, 2
je 0x51f7ce
and eax, 0xfffffffd
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x51f7ce
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044a180
cmp byte [ebp - 0x2f1], 0
je 0x51f8d1
mov byte [ebp - 4], 0xa
cmp ebx, 8
jb 0x51f7f1
lea eax, [ebx + 1]
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.0044a180
mov ebx, dword [ebp - 0x30c]
lea eax, [ebp - 0x2f0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x51f52e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x2fc]
mov edx, dword [ebp - 0x2f8]
mov eax, dword [ebp - 0x300]
mov dword [ebx + 4], ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x300], 0
mov dword [ebx], eax
mov dword [ebx + 8], edx
call fcn.0042aad0
lea ecx, [ebp - 0x88]
call fcn.0042aad0
mov eax, dword [ebp - 0x300]
test eax, eax
je 0x51f8b1
lea ecx, [ebp - 0x300]
push ecx
push dword [ebp - 0x2fc]
push eax
call fcn.0043f3a0
mov ecx, dword [ebp - 0x2f8]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x300]
add esp, 0xc
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x300]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004a6910
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x51f8e1
test al, 1
je 0x51f7db
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x28]
call fcn.0043f9e0
mov esi, dword [ebp - 0x304]
lea eax, [ebp - 0x58]
or esi, 0x20
lea ecx, [ebp - 0x28]
cmp ebx, 8
mov dword [ebp - 0x310], esi
push edi
cmovae eax, dword [ebp - 0x308]
push eax
call fcn.0043ee20
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00521680
add esp, 8
mov eax, dword [ebp - 0x2fc]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push ecx
cmp eax, dword [ebp - 0x2f8]
je 0x51f950
mov ecx, eax
call fcn.0043f9e0
add dword [ebp - 0x2fc], 0x18
jmp 0x51f95c
push eax
lea ecx, [ebp - 0x300]
call fcn.0051cc70
lea ecx, [ebp - 0x40]
call fcn.0042aad0
and esi, 0xffffffdf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x304], esi
call fcn.0042aad0
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x58]
jmp 0x51f7db
cmp eax, 0xffffffff
je 0x51f98d
test al, 2
je 0x51f7f7
push 0xffffffffffffffff
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x28]
call fcn.0051d800
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0051de10
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x12
push eax
call fcn.00521680
add esp, 0x14
mov eax, dword [ebp - 0x2fc]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x13
push ecx
cmp eax, dword [ebp - 0x2f8]
je 0x51f9f0
mov ecx, eax
call fcn.0043f9e0
add dword [ebp - 0x2fc], 0x18
jmp 0x51f9fc
push eax
lea ecx, [ebp - 0x300]
call fcn.0051cc70
lea ecx, [ebp - 0x40]
call fcn.0042aad0
lea ecx, [ebp - 0xa0]
call fcn.0042aad0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.0042aad0
jmp 0x51f7f7
call fcn.0042e200
call fcn.00566a14
call fcn.00566a14
int3