Function at 0x6c80f100
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 0x6c80f2a0
mov eax, dword [0x6c852d4c]
test eax, eax
je 0x6c80f14a
mov ebx, dword [ebp - 0x4c]
cmp dword [0x6c852d48], ebx
jne 0x6c80f13e
test ecx, ecx
jne 0x6c80f42f
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 [0x6c852d4c], eax
cmp eax, 0xffffffff
je 0x6c80f420
mov eax, dword [ebp - 0x4c]
mov ebx, edi
mov dword [0x6c852d48], eax
jmp 0x6c80f1a0
mov eax, dword [0x6c852d4c]
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 0x6c80f2c0
test ebx, ebx
jne 0x6c80f180
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 0x6c80f440
add edi, 1
mov eax, ebx
and eax, dword [esi]
jne 0x6c80f258
cmp word [esi + 0x234], 0
mov eax, dword [ebp - 0x50]
je 0x6c80f1e4
lea eax, [esi + 0x234]
lea edx, [ebp - 0x30]
call fcn.6c80cb00
test eax, eax
je 0x6c80f258
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 0x6c80f241
cmp cx, word [ebp + eax*2 - 0x30]
jne 0x6c80f258
add eax, 1
cmp eax, 0xb
jne 0x6c80f230
lea esp, [ebp - 0xc]
mov ebx, edi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x6c852d4c]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x6c80f1b8
mov eax, dword [0x6c852d4c]
mov ebx, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, ebx
mov dword [0x6c852d4c], 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 0x6c80f2f0
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x6c852d4c]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, ebx
mov dword [0x6c852d4c], 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 0x6c80f2b1
cmp word [esi + 0x234], 0
je 0x6c80f2b1
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 [0x6c8457b0], 8
je 0x6c80f2b3
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x6c80f4d1
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c849283
test edx, edx
jne 0x6c80f3ee
mov eax, edi
call fcn.6c80d0b0
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], 0x6c8457b0
mov dword [esp], 3
call fcn.6c80d340
jmp 0x6c80f2b3
mov dword [0x6c852d4c], 0
jmp 0x6c80f2b1
mov ebx, 1
jmp 0x6c80f1a0
mov ebx, dword [ebp - 0x54]
test byte [0x6c8457b0], 4
je 0x6c80f2b3
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x6c80f4ca
shr eax, 0x10
test eax, eax
je 0x6c80f4b4
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, 0x6c849283
test edx, edx
jne 0x6c80f487
mov eax, edi
call fcn.6c80d0b0
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], 0x6c8457b0
mov dword [esp], 2
call fcn.6c80d340
jmp 0x6c80f2b3
movzx eax, word [ebp - 0x4c]
mov dword [esp], 0x6c849294
mov dword [esp + 4], eax
call fcn.6c80caa0
jmp 0x6c80f487
mov eax, 0x6c84928d
jmp 0x6c80f487
movzx edi, di
mov dword [esp], 0x6c849294
mov dword [esp + 4], edi
call fcn.6c80caa0
jmp 0x6c80f3ee