Function at 0x140007f10
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140035078]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x39], rcx
lea rdx, str.Device
xor r14d, r14d
lea rcx, [rbp - 0x31]
mov ebx, r14d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x31]
mov dword [rbp - 0x21], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x11], rax
lea r8, [rbp - 0x21]
mov qword [rbp - 0x19], r14
lea edx, [r14 + 1]
mov dword [rbp - 9], 0x40
lea rcx, [rbp - 0x41]
movdqu xmmword [rbp - 1], xmm0
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
nop dword [rax + rax]
test eax, eax
js 0x1400081fb
mov dword [rbp - 0x45], r14d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
lea edx, [r14 + 8]
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140008185
mov r13b, 1
mov dword [rbp - 0x49], r14d
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x45]
mov qword [rsp + 0x30], r14
mov r9b, 1
mov qword [rsp + 0x28], rax
mov r8d, 0x400
mov rdx, rdi
mov byte [rsp + 0x20], r13b
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
nop dword [rax + rax]
mov esi, eax
test eax, eax
js 0x140008125
mov r13b, r14b
movzx eax, word [0x14002a5a8]
movups xmm0, xmmword [str.Harddisk]
mov word [rbp + 0x1f], ax
movups xmmword [rbp + 0xf], xmm0
cmp r14w, word [rdi]
je 0x140008175
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140008175
lea rax, [rbp + 0xf]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x14000804c
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14000805a
cmp r8, rax
mov edx, r14d
setbe dl
ja 0x140008087
lea rdx, [rbp + 0xf]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
mov edx, r14d
sete dl
test edx, edx
je 0x140008175
mov r15, qword [rdi + 8]
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], r14w
jne 0x140008097
cmp rax, 8
jbe 0x140008175
xor eax, eax
lea r14, [r15 + 0x10]
mov esi, 1
cmp ax, word [r15 + 0x10]
je 0x1400080f6
test esi, esi
je 0x140008120
movzx ecx, word [r14]
mov dx, 4
call qword [sym.imp.msvcrt.dll_iswctype]
nop dword [rax + rax]
neg eax
sbb edx, edx
add r14, 2
and edx, esi
xor eax, eax
mov esi, edx
cmp ax, word [r14]
jne 0x1400080bd
xor r14d, r14d
test edx, edx
je 0x140008175
jmp 0x1400080f9
xor r14d, r14d
lea rcx, [r15 + 0x10]
call qword [sym.imp.msvcrt.dll__wtoi]
nop dword [rax + rax]
mov r8, qword [rbp - 0x39]
lea r9, [rbp - 0x49]
mov rdx, qword [rdi + 8]
mov ecx, eax
call fcn.14001d3f8
mov ebx, eax
jmp 0x140008175
xor r14d, r14d
jmp 0x140008175
cmp esi, 0x8000001a
jne 0x140008136
mov dword [rbp - 0x49], 1
jmp 0x140008175
mov ecx, esi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
lea r9, str.Device
mov dword [rsp + 0x20], esi
movzx ebx, ax
lea r8, str.GetSystemDiskNumber:_Couldnt_query_NT_dir___s___status__0x_x
or ebx, 0x80070000
lea rcx, [0x1400356a8]
test eax, eax
mov edx, 0x20001ec
cmovle ebx, eax
call fcn.140003040
test ebx, ebx
js 0x1400081c4
cmp dword [rbp - 0x49], r14d
je 0x140007fdb
jmp 0x1400081c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400081bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400081c4
mov ebx, 0x80004005
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test rdi, rdi
je 0x140008223
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140008223
lea r9, str.Device
mov dword [rsp + 0x20], eax
lea r8, str.GetSystemDiskNumber:_Couldnt_open_NT_dir___s___status__0x_x
mov edx, 0x20001ed
lea rcx, [0x1400356a8]
mov ebx, 0x80004005
call fcn.140003040
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140023d70
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret