Function at 0x21014d9a0
Capabilities:
Enumerate files on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
lea rdx, str.Device
lea rbx, [rsp + 0x60]
mov rcx, rbx
call sym.RtlInitUnicodeString
lea rcx, [rsp + 0x48]
lea r8, [rsp + 0x90]
mov edx, 1
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x40
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
call sym.NtOpenDirectoryObject
test eax, eax
js 0x21014dc70
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
lea rcx, [rsp + 0x58]
lea r13, [rsp + 0x44]
lea rbp, str.HarddiskVolume
lea r14, [0x210273880]
mov eax, dword [rax - 0x2cc8]
mov dword [rsp + 0x58], eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov eax, dword [rax - 0x2cc4]
mov dword [rsp + 0x5c], eax
call method.tmp_pathbuf.w_get__
mov dword [rsp + 0x44], 0
mov rdi, rax
mov eax, 1
nop dword [rax + rax]
mov qword [rsp + 0x28], r13
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov rdx, rdi
mov qword [rsp + 0x30], 0
mov r8d, 0x10000
mov dword [rsp + 0x20], eax
call sym.NtQueryDirectoryObject
mov esi, eax
test eax, eax
js 0x21014dcca
movzx eax, word [rdi]
test ax, ax
je 0x21014dbf0
mov rbx, rdi
lea r12, [rsp + 0x80]
jmp 0x21014dae9
movzx eax, word [rbx + 0x20]
add rbx, 0x20
test ax, ax
je 0x21014dbf0
cmp ax, 0x1d
jbe 0x21014dad8
mov rcx, qword [rbx + 8]
mov r8d, 0xe
mov rdx, rbp
call sym.msys_2.0.dll_wcsncasecmp
test eax, eax
jne 0x21014dad8
mov r15, qword [rbx + 8]
movzx ecx, word [r15 + 0x1c]
call sym.msys_2.0.dll_iswdigit
test eax, eax
je 0x21014dad8
movzx eax, word [rbx]
lea rcx, [rsp + 0x50]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 7
lea r8, [rsp + 0xc0]
mov word [rsp + 0x80], ax
mov word [rsp + 0x82], ax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x88], r15
lea r15, [rsp + 0x70]
mov r9, r15
mov dword [rsp + 0xc0], 0x30
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd8], 0x40
mov qword [rsp + 0xd0], r12
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
call sym.NtOpenFile
test eax, eax
jns 0x21014dc50
test byte [r14], 1
je 0x21014dad8
mov dword [rsp + 0x28], eax
mov edx, 0x40
mov rcx, r14
add rbx, 0x20
mov qword [rsp + 0x20], r12
lea r9, str.NtOpenFile___S___status__y
lea r8, str.void_sync_worker_HANDLE__USHORT__LPCWSTR_
call method.strace.prntf_unsigned_int__char_const__char_const__..._
movzx eax, word [rbx]
test ax, ax
jne 0x21014dae9
nop word [rax + rax]
xor eax, eax
cmp esi, 0x105
je 0x21014da88
mov rcx, qword [rsp + 0x48]
call sym.NtClose
mov edx, dword [rsp + 0x58]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov dword [rax - 0x2cc8], edx
mov edx, dword [rsp + 0x5c]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov dword [rax - 0x2cc4], edx
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x50]
mov rdx, r15
call sym.NtFlushBuffersFile
test eax, eax
js 0x21014dc9e
mov rcx, qword [rsp + 0x50]
call sym.NtClose
jmp 0x21014dad8
test byte [0x210273880], 1
je 0x21014dc36
mov dword [rsp + 0x20], eax
lea r9, str.NtOpenDirectoryObject__status__y
lea r8, str.void_sync__
mov edx, 0x40
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21014dc36
test byte [r14], 1
je 0x21014dc61
mov dword [rsp + 0x28], eax
mov edx, 0x40
mov rcx, r14
lea r9, str.NtFlushBuffersFile___S___status__y
mov qword [rsp + 0x20], r12
lea r8, str.void_sync_worker_HANDLE__USHORT__LPCWSTR_
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21014dc61
test byte [0x210273880], 1
je 0x21014dbfe
mov dword [rsp + 0x20], eax
lea r9, str.NtQueryDirectoryObject__status__y
lea r8, str.void_sync__
mov edx, 0x40
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21014dbfe