Function at 0x140221e60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xf50
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_3911], rax
mov rsi, rdx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rcx
mov rcx, rdx
lea rdx, [rsp + 0x740]
mov rbp, r8
sub rdx, rcx
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x140221eb0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x740]
repne scasw ax, word [rdi]
mov rax, qword [0x1403716f0]
lea rdx, [rsp + 0xd0]
mov qword [rdi - 2], rax
movzx eax, word [0x1403716f8]
lea rcx, [rsp + 0x740]
mov word [rdi + 6], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x1402222ff
test byte [rsp + 0xd0], 0x10
jne 0x140222072
lea rcx, [rsp + 0x532]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x530], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x322]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x320], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x530]
mov rdx, rsi
sub rcx, rsi
nop
nop
nop
movzx eax, word [rdx]
add rdx, 2
test ax, ax
mov word [rcx + rdx - 2], ax
jne 0x140221f70
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x530]
repne scasw ax, word [rdi]
mov eax, dword [0x14036d77c]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x530]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rsp + 0xfc]
nop
nop
nop
movzx eax, word [rdx + rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 4], ax
jne 0x140221fc0
lea rdx, [rsp + 0x320]
mov rcx, rbp
sub rdx, rbp
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x140221fe0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x320]
repne scasw ax, word [rdi]
mov eax, dword [0x14036d87c]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x320]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rsp + 0xfc]
nop
nop
nop
movzx eax, word [rdx + rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 4], ax
jne 0x140222030
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x320]
lea rdx, [rsp + 0x530]
call fcn.140221b70
test eax, eax
jne 0x1402222d6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14022232b
lea rsi, [rsp + 0xfc]
lea rdi, [0x14036d9d4]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x1402222d1
lea rsi, [rsp + 0xfc]
lea rdi, [0x140371730]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x1402222d1
lea rdx, str.System_Volume_Information
lea rcx, [rsp + 0xfc]
call qword [sym.imp.ntdll.dll__wcsicmp]
test eax, eax
jne 0x1402220d3
cmp dword [rsp + 0xd0], 0x16
je 0x1402222d1
lea rcx, [rsp + 0x532]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x530], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x322]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x320], 0
call sub.ntdll.dll_memset
mov rsi, qword [rsp + 0x60]
lea rcx, [rsp + 0x530]
mov rdx, rsi
sub rcx, rsi
nop
nop
nop
movzx eax, word [rdx]
add rdx, 2
test ax, ax
mov word [rcx + rdx - 2], ax
jne 0x140222130
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x530]
repne scasw ax, word [rdi]
mov eax, dword [0x14036dab4]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x530]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rsp + 0xfc]
nop
nop
nop
movzx eax, word [rdx + rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 4], ax
jne 0x140222180
lea rdx, [rsp + 0x320]
mov rcx, rbp
sub rdx, rbp
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x1402221a0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x320]
repne scasw ax, word [rdi]
mov eax, dword [0x14036db7c]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x320]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rsp + 0xfc]
nop
nop
nop
movzx eax, word [rdx + rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 4], ax
jne 0x1402221f0
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor edi, edi
lea rax, [rsp + 0xa8]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 3
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x70]
mov edx, 0xf000f
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x90], 0x40
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x70], rdi
call qword [sym.imp.ntdll.dll_ZwCreateFile]
test eax, eax
jne 0x140222064
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x320]
lea rdx, [rsp + 0x530]
call fcn.140221e60
test eax, eax
je 0x140222064
jmp 0x1402222d6
mov rsi, qword [rsp + 0x60]
lea rdx, [rsp + 0xd0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140221f01
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x14022232d
call fcn.140049470
lea rcx, str..whide.cpp
mov edx, 0xa6
mov rsi, qword [rax]
mov rdi, rax
call fcn.140221a70
lea rdx, str._s:_Call_FindFirstFile_failed.
mov rcx, rdi
mov r8, rax
call qword [rsi + 0x10]
xor eax, eax
mov rcx, qword [rsp + 0xf40]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0xf50]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret