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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x7fffb6df6798]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov qword [rsp + 0x40], r8
mov rbx, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], rcx
and qword [rsp + 0x38], 0
and qword [rsp + 0x50], 0
or qword [rsp + 0x30], 0xffffffffffffffff
test rdx, rdx
je 0x7fffb6d97dd0
xor r9d, r9d
xor r8d, r8d
call fcn.7fffb6d976d4
jmp 0x7fffb6d97dd5
call fcn.7fffb6d96fec
mov qword [rsp + 0x38], rax
mov rdi, rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7fffb6ddcfe0]
mov rcx, rax
call fcn.7fffb6d976d4
mov qword [rsp + 0x28], rax
mov rsi, rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KernelBase.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x7fffb6d97e3b
call qword [sym.imp.KernelBase.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x7fffb6d97e34
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x7fffb6d97f94
xor ebx, ebx
jmp 0x7fffb6d97f94
xor esi, esi
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x7fffb6d97e52
call qword [sym.imp.msvcrt.dll_free]
and dword [rsp + 0x28], esi
movzx ecx, word [rbp - 0x64]
movzx eax, word [rbp - 0x62]
cmp cx, word [0x7fffb6ddcfe4]
jne 0x7fffb6d97e74
cmp ax, word [0x7fffb6ddcfe6]
je 0x7fffb6d97f46
cmp cx, word [0x7fffb6ddcfe8]
jne 0x7fffb6d97e97
cmp ax, word [0x7fffb6ddcfea]
jne 0x7fffb6d97e97
movzx eax, word [rbp - 0x60]
cmp ax, word [0x7fffb6ddcfec]
je 0x7fffb6d97f46
and qword [rsp + 0x20], 0
test byte [rsp + 0x70], 0x10
je 0x7fffb6d97ef8
test rbx, rbx
je 0x7fffb6d97ebd
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x64]
mov rcx, rbx
call fcn.7fffb6d976d4
jmp 0x7fffb6d97ec6
lea rcx, [rbp - 0x64]
call fcn.7fffb6d96fec
mov qword [rsp + 0x20], rax
mov rbx, rax
mov r8, qword [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.7fffb6d97d68
mov dword [rsp + 0x20], eax
test eax, eax
js 0x7fffb6d97f5f
test rbx, rbx
je 0x7fffb6d97f41
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
jmp 0x7fffb6d97f41
test rbx, rbx
je 0x7fffb6d97f11
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x64]
mov rcx, rbx
call fcn.7fffb6d976d4
jmp 0x7fffb6d97f1a
lea rcx, [rbp - 0x64]
call fcn.7fffb6d96fec
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.7fffb6d998c0
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x7fffb6d97f46
call qword [sym.imp.msvcrt.dll_free]
jmp 0x7fffb6d97f46
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KernelBase.dll_FindNextFileW]
test eax, eax
je 0x7fffb6d97f73
jmp 0x7fffb6d97e56
test rbx, rbx
je 0x7fffb6d97f6d
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov ebx, dword [rsp + 0x20]
jmp 0x7fffb6d97f94
call qword [sym.imp.KernelBase.dll_GetLastError]
cmp eax, 0x12
je 0x7fffb6d97f8e
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x7fffb6d97f92
mov ecx, dword [rsp + 0x28]
mov ebx, ecx
mov rax, qword [rsp + 0x30]
cmp rax, 0xffffffffffffffff
je 0x7fffb6d97fa9
mov rcx, rax
call qword [sym.imp.KernelBase.dll_FindClose]
nop
test rsi, rsi
je 0x7fffb6d97fb8
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
test rdi, rdi
je 0x7fffb6d97fc6
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.7fffb6dcff80
mov rbx, qword [rsp + 0x308]
add rsp, 0x2d0
pop rdi
pop rsi
pop rbp
ret