Function at 0x5077f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5f72
mov eax, dword fs:[0]
push eax
mov eax, 0x12b8
call fcn.0041ead0
mov eax, dword [0x70f200]
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 dword [ebp - 0x12bc], ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x12c0], edx
call fcn.0043e530
test al, al
je 0x5080f3
cmp byte [esi + 0x10], 0
mov ebx, dword [ecx + 0x14e4]
mov dword [ebp - 0x12b8], ebx
jne 0x5080f3
sub esp, 8
mov dword [ebp - 0x68], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x70]
movq qword [ebp - 0x70], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6249f8
push edx
call fcn.005dc520
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x40], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x64]
movq qword [ebp - 0x64], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x88]
movq qword [ebp - 0x88], xmm0
call fcn.005dc5e0
push 0x260
lea eax, [ebp - 0x2ec]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00420090
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.005dc190
push 0x250
mov edi, eax
lea eax, [ebp - 0x2ec]
push 0
push eax
call fcn.00420090
add esp, 0xc
lea eax, [ebp - 0x2ec]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x9c], eax
cmp eax, 0xffffffff
je 0x5079c2
mov ecx, 1
mov dword [ebp - 0x98], ecx
cmp word [ebp - 0x2c0], 0x2e
jne 0x507967
mov ax, word [ebp - 0x2be]
test ax, ax
je 0x507991
cmp ax, 0x2e
jne 0x507967
cmp word [ebp - 0x2bc], 0
je 0x507991
test ecx, ecx
je 0x5079c2
mov eax, dword [ebp - 0x2ec]
test cl, 1
je 0x50797d
test eax, 0x400
jne 0x507991
test cl, 2
je 0x507988
test al, 0x10
je 0x5079c8
jmp 0x507991
test cl, 4
je 0x5079c8
test al, 0x10
jne 0x5079c8
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp - 0x9c]
call edi
test eax, eax
je 0x5079ac
mov ecx, dword [ebp - 0x98]
jmp 0x507941
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x9c], 0xffffffff
mov eax, dword [ebp - 0x2ec]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x9c], 0xffffffff
je 0x5080b8
nop dword [eax]
test eax, 0x400
jne 0x508053
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c0]
push eax
push 0x624284
push dword [ebp - 0x12c0]
lea ecx, [ebp - 0x70]
call fcn.005dc200
test byte [ebp - 0x2ec], 0x10
je 0x507a3d
push esi
lea ecx, [ebp - 0x70]
call fcn.005dc190
mov ecx, dword [ebp - 0x12bc]
push eax
call fcn.005077f0
test al, al
je 0x50809e
add dword [esi + 0x28], 1
lea ecx, [ebp - 0x70]
push 0
adc dword [esi + 0x2c], 0
push 0x2000000
push 3
push 0
push 3
push 0
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [esi + 0x58]
cmp eax, 0xffffffff
je 0x507a78
test eax, eax
je 0x507a78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x58], edi
test edi, edi
jne 0x507a8b
mov dword [esi + 0x58], 0xffffffff
jmp 0x50804d
cmp edi, 0xffffffff
je 0x50804d
mov eax, dword [esi + 0x40]
push 0x16
push dword [esi + 0x44]
push dword [esi + 0x48]
push dword [esi + 0x54]
push edi
call eax
cmp eax, 0x80000005
jne 0x507aef
nop dword [eax]
mov edi, dword [esi + 0x44]
add edi, edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x48]
test eax, eax
je 0x507ac8
push eax
call fcn.0041e1c3
add esp, 4
push edi
call fcn.0041e7cf
add esp, 4
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edi
push 0x16
push dword [esi + 0x44]
push eax
push dword [esi + 0x54]
mov eax, dword [esi + 0x40]
push dword [esi + 0x58]
call eax
cmp eax, 0x80000005
je 0x507ab0
test eax, eax
jne 0x50804d
mov ecx, dword [esi + 0x48]
mov dword [ebp - 0x12c4], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x50804d
mov edi, ecx
cmp eax, 0xc
jbe 0x508047
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x40]
shr eax, 1
sub eax, 6
push eax
push 1
lea eax, [edi + 0x18]
push eax
call fcn.005d9d20
lea ecx, [ebp - 0x40]
call fcn.005dc3a0
cmp eax, 1
jle 0x508005
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x624288
lea ecx, [ebp - 0x40]
call fcn.005daa70
test eax, eax
je 0x507b6d
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x64]
call fcn.005d9d20
jmp 0x507b75
lea ecx, [ebp - 0x64]
call fcn.005dc400
mov eax, dword [esi + 0x14]
test al, 1
je 0x507b92
push ecx
push dword [esi + 0x18]
lea ecx, [ebp - 0x40]
call fcn.005d98d0
test al, al
jne 0x508005
jmp 0x507bb7
test al, 2
je 0x507bb7
lea ecx, [ebp - 0x64]
call fcn.005dbeb0
test al, al
jne 0x508005
push ecx
push dword [esi + 0x18]
call fcn.005d98d0
test al, al
je 0x508005
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x34], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.005dc5e0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.005dc190
push eax
lea ecx, [ebp - 0x70]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc200
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push str.Scanning_ADS..._Last_stream_found:_r_n
lea ecx, [ebp - 0x28]
call fcn.005dc200
lea ecx, [ebp - 0x28]
call fcn.005dc190
mov ecx, dword [ebp - 0x12bc]
push eax
push 0xffffffffffffffff
add ecx, 0x14f0
call fcn.005b66e0
cmp byte [esi + 0x24], 0
je 0x507da8
add dword [esi + 0x30], 1
push ecx
adc dword [esi + 0x34], 0
lea ecx, [ebp - 0x34]
mov eax, dword [edi + 0x10]
add dword [esi + 0x38], eax
mov eax, dword [edi + 0x14]
adc dword [esi + 0x3c], eax
push 0
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.005daea0
push 0
push dword [esi + 0x1c]
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
call fcn.005dc190
push eax
mov ecx, ebx
call fcn.005bbb80
mov ebx, eax
cmp ebx, 0xffffffff
je 0x507fe9
push 1
lea ecx, [ebp - 0x34]
call fcn.005dc190
mov ecx, dword [ebp - 0x12b8]
push eax
push ebx
push dword [esi + 0x1c]
call fcn.005ba4f0
push 2
lea ecx, [ebp - 0x40]
call fcn.005dc190
mov ecx, dword [ebp - 0x12b8]
push eax
push ebx
push dword [esi + 0x1c]
call fcn.005ba4f0
push 3
lea ecx, [ebp - 0x64]
call fcn.005dc190
mov ecx, dword [ebp - 0x12b8]
push eax
push ebx
push dword [esi + 0x1c]
call fcn.005ba4f0
push 0x20
push 0x10
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov ecx, dword [ebp - 0x12b8]
push eax
push ebx
push dword [esi + 0x1c]
call fcn.005baf80
test al, al
jne 0x507fdf
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x7c]
movq qword [ebp - 0x7c], xmm0
call fcn.005dc5e0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.005db9a0
push eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableW]
cmp eax, 0x20
jbe 0x507da0
push 0x20
push 0x10
push 0
lea ecx, [ebp - 0x7c]
call fcn.005dc190
mov ecx, dword [ebp - 0x12b8]
push eax
push ebx
push dword [esi + 0x1c]
call fcn.005baf80
lea ecx, [ebp - 0x7c]
jmp 0x507fd6
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x58]
movq qword [ebp - 0x58], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x4c]
movq qword [ebp - 0x4c], xmm0
call fcn.005dc5e0
push 0xfc8
lea eax, [ebp - 0x12b4]
mov byte [ebp - 4], 0xa
push 0
push eax
call fcn.00420090
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x12b4]
call fcn.005e99f0
push str.No_publisher
push 0x624804
lea ecx, [ebp - 0x12b4]
mov byte [ebp - 4], 0xb
call fcn.005e98f0
push eax
lea ecx, [ebp - 0x58]
call fcn.005dc510
mov eax, dword [esi + 0x14]
test al, 8
je 0x507e93
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
lea edx, [ebp - 0x88]
mov ecx, eax
call fcn.005e65a0
add esp, 4
lea edx, [ebp - 0x58]
mov ecx, eax
push 0
call fcn.005e6f20
test al, al
je 0x507eb1
test byte [esi + 0x14], 0x10
jne 0x507eb1
lea ecx, [ebp - 0x2f8]
call fcn.005dc430
lea ecx, [ebp - 0x304]
call fcn.005dc430
lea ecx, [ebp - 0x310]
call fcn.005dc430
lea ecx, [ebp - 0x4c]
call fcn.005dc430
lea ecx, [ebp - 0x58]
call fcn.005dc430
jmp 0x507fe9
test al, 0x10
jne 0x507eb1
push 0
push 1
push 1
push 1
push str.Microsoft_Corp
lea ecx, [ebp - 0x58]
call fcn.005daa70
cmp eax, 1
jmp 0x507e5b
test byte [esi + 0x14], 4
je 0x507f1a
push 0
lea eax, [ebp - 0x8c]
push eax
push 0
push 0x62439c
push 0xc8
lea ecx, [ebp - 0x4c]
call fcn.005db9a0
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov edx, 0x8003
mov ecx, eax
call fcn.005e6320
test al, al
jne 0x507efa
push str.Hash_error:_Unknown
lea ecx, [ebp - 0x4c]
call fcn.005dc510
sub esp, 0xc
lea ecx, [ebp - 0x4c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6558f0
call fcn.005da510
add dword [esi + 0x30], 1
push ecx
adc dword [esi + 0x34], 0
lea ecx, [ebp - 0x34]
mov eax, dword [edi + 0x10]
add dword [esi + 0x38], eax
mov eax, dword [edi + 0x14]
adc dword [esi + 0x3c], eax
push 0
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.005daea0
push 0
push 0
push 0x62781c
lea ecx, [ebp - 0x58]
call fcn.005dc190
push eax
push 0x6558f0
lea ecx, [ebp - 0x4c]
call fcn.005dc190
push eax
push str.No_description
push 0x62e020
lea ecx, [ebp - 0x12b4]
call fcn.005e98f0
push eax
push 0x6558f0
lea ecx, [ebp - 0x34]
call fcn.005dc190
push eax
push 0x6558f0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push str._r_n_AlternateStream__
lea ecx, [ebp - 0x28]
call fcn.005dc200
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x28]
push eax
call fcn.005e3a10
lea ecx, [ebp - 0x2f8]
call fcn.005dc430
lea ecx, [ebp - 0x304]
call fcn.005dc430
lea ecx, [ebp - 0x310]
call fcn.005dc430
lea ecx, [ebp - 0x4c]
call fcn.005dc430
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.005dc430
cmp byte [esi + 0x10], 0
jne 0x508086
lea ecx, [ebp - 0x1c]
call fcn.005dc430
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.005dc430
mov eax, dword [edi]
test eax, eax
je 0x508041
add edi, eax
mov eax, edi
cdq
mov ebx, eax
mov ecx, edx
mov eax, dword [ebp - 0x12c4]
cdq
sub ebx, eax
sbb ecx, edx
mov edx, dword [esi + 0x44]
sub edx, 0xa
test ecx, ecx
ja 0x508041
jb 0x50802f
cmp ebx, edx
jae 0x508041
cmp dword [edi + 4], 0xc
mov ebx, dword [ebp - 0x12b8]
ja 0x507b16
jmp 0x508047
mov ebx, dword [ebp - 0x12b8]
cmp byte [esi + 0x10], 0
jne 0x50809e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [ebp - 0x9c]
cmp eax, 0xffffffff
je 0x5080b8
lea ecx, [ebp - 0x2ec]
push ecx
push eax
call edi
test eax, eax
je 0x5080a2
lea ecx, [ebp - 0x2ec]
call fcn.004011a0
test al, al
je 0x5080b8
mov eax, dword [ebp - 0x2ec]
jmp 0x5079e0
lea ecx, [ebp - 0x1c]
call fcn.005dc430
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x34]
call fcn.005dc430
xor bl, bl
jmp 0x5080ba
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x9c], 0xffffffff
mov bl, 1
mov eax, dword [ebp - 0x9c]
cmp eax, 0xffffffff
je 0x5080cc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x88]
call fcn.005dc430
lea ecx, [ebp - 0x64]
call fcn.005dc430
lea ecx, [ebp - 0x40]
call fcn.005dc430
lea ecx, [ebp - 0x70]
call fcn.005dc430
mov al, bl
jmp 0x5080f5
xor al, al
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.0041e1b5
mov esp, ebp
pop ebp
ret 8