Function at 0x6640efc0
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x4c], eax
mov eax, edx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
and edx, 0xffffff9e
cmp edx, 8
je 0x6640f160
mov eax, dword [0x66451d4c]
test eax, eax
je 0x6640f00a
mov ebx, dword [ebp - 0x4c]
cmp dword [0x66451d48], ebx
jne 0x6640effe
test ecx, ecx
jne 0x6640f2ef
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov dword [0x66451d4c], eax
cmp eax, 0xffffffff
je 0x6640f2e0
mov eax, dword [ebp - 0x4c]
mov ebx, edi
mov dword [0x66451d48], eax
jmp 0x6640f060
mov eax, dword [0x66451d4c]
mov dword [esp + 4], esi
sub ebx, 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x6640f180
test ebx, ebx
jne 0x6640f040
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x2c]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ecx
not eax
mov ebx, eax
lea esi, [esi]
cmp edi, 0xfffe
ja 0x6640f300
add edi, 1
mov eax, ebx
and eax, dword [esi]
jne 0x6640f118
cmp word [esi + 0x234], 0
mov eax, dword [ebp - 0x50]
je 0x6640f0a4
lea eax, [esi + 0x234]
lea edx, [ebp - 0x30]
call fcn.6640c980
test eax, eax
je 0x6640f118
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x46]
mov dword [esp + 0x14], 0xb
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xb
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x46]
xor eax, eax
sub esp, 0x18
lea esi, [esi]
nop
movzx ecx, word [edx + eax*2]
cmp cx, 0x3f
je 0x6640f101
cmp cx, word [ebp + eax*2 - 0x30]
jne 0x6640f118
add eax, 1
cmp eax, 0xb
jne 0x6640f0f0
lea esp, [ebp - 0xc]
mov ebx, edi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x66451d4c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x6640f078
mov eax, dword [0x66451d4c]
mov ebx, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, ebx
mov dword [0x66451d4c], 0
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
mov dword [ebp - 0x2e], 0x5c003a
mov word [ebp - 0x2a], dx
test ecx, ecx
je 0x6640f1b0
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x66451d4c]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, ebx
mov dword [0x66451d4c], 0
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, 0x41
mov dword [esp + 0x1c], 0
mov word [ebp - 0x30], ax
lea edi, [esi + 0x234]
lea eax, [ebp - 0x30]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xd
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x6640f171
cmp word [esi + 0x234], 0
je 0x6640f171
lea eax, [esi + 4]
mov ebx, dword [sym.imp.ntdll.dll_RtlSecondsSince1970ToTime]
mov dword [esp], 0
mov dword [esp + 4], eax
call ebx
lea eax, [esi + 0xc]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], 0
call ebx
lea eax, [esi + 0x14]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], 0
call ebx
mov dword [esi], 8
mov ebx, 1
sub esp, 8
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
test byte [0x664447b0], 8
je 0x6640f173
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x6640f391
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x66448283
test edx, edx
jne 0x6640f2ae
mov eax, edi
call fcn.6640cf30
mov dword [esp + 0x10], eax
mov ebx, 1
mov dword [esp + 0xc], str.returning__s_as_label_n
mov dword [esp + 8], str.INT21_FindHelper
mov dword [esp + 4], 0x664447b0
mov dword [esp], 3
call fcn.6640d110
jmp 0x6640f173
mov dword [0x66451d4c], 0
jmp 0x6640f171
mov ebx, 1
jmp 0x6640f060
mov ebx, dword [ebp - 0x54]
test byte [0x664447b0], 4
je 0x6640f173
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x6640f38a
shr eax, 0x10
test eax, eax
je 0x6640f374
mov edi, dword [ebp - 0x4c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x66448283
test edx, edx
jne 0x6640f347
mov eax, edi
call fcn.6640cf30
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Too_many_directory_entries_in__s_n
mov dword [esp + 8], str.INT21_FindHelper
mov dword [esp + 4], 0x664447b0
mov dword [esp], 2
call fcn.6640d110
jmp 0x6640f173
movzx eax, word [ebp - 0x4c]
mov dword [esp], 0x66448294
mov dword [esp + 4], eax
call fcn.6640e6c0
jmp 0x6640f347
mov eax, 0x6644828d
jmp 0x6640f347
movzx edi, di
mov dword [esp], 0x66448294
mov dword [esp + 4], edi
call fcn.6640e6c0
jmp 0x6640f2ae