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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x3c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x3f0], rbx
mov rax, qword [0x1801dc960]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov rdi, rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
test rcx, rcx
je 0x18008ef8f
test rdx, rdx
je 0x18008ef8f
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x2a0]
call fcn.1800f4fb0
mov r8, rdi
lea rdx, str._s.
lea rcx, [rsp + 0x2a0]
call fcn.1800f509c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x18008ec81
xor eax, eax
jmp 0x18008ef91
or rsi, 0xffffffffffffffff
cmp byte [rsp + 0x7c], 0x2e
je 0x18008ef2c
test byte [rsp + 0x50], 0x10
je 0x18008ecdf
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x190]
call fcn.1800f4fb0
lea r9, [rsp + 0x7c]
mov r8, rdi
lea rdx, str._s_s.
lea rcx, [rsp + 0x190]
call fcn.1800f509c
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x190]
call fcn.18008ebe0
jmp 0x18008ef2c
lea rcx, [0x1801dc900]
mov rax, qword [0x1801dc900]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x7c]
lea rax, [rsp + 0x7c]
test rax, 0xffffffffffff0000
jne 0x18008ed3a
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.180001960
test rax, rax
je 0x18008ee2a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180003400
mov rbx, qword [rsp + 0x20]
jmp 0x18008ee2a
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x7c]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x18008eda8
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x18008ee2a
cmp dword [rdx + 0x10], eax
jge 0x18008ed7b
cmp dword [rbx - 0xc], eax
jl 0x18008ef43
mov dword [rbx - 0x10], eax
mov byte [rbx], al
jmp 0x18008ee2a
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18008ed91
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x18008ee2a
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x7c]
sub rbp, rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x18008edd5
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.180002910
mov rbx, qword [rsp + 0x20]
cmp rbp, rsi
ja 0x18008edf2
movsxd rsi, edi
lea r8, [rbx + rbp]
movsxd rdx, dword [rbx - 0xc]
mov r9, rsi
mov rcx, rbx
call fcn.1800f6010
jmp 0x18008ee09
movsxd rsi, edi
movsxd rdx, dword [rbx - 0xc]
mov r9, rsi
lea r8, [rsp + 0x7c]
mov rcx, rbx
call fcn.1800f5f78
test edi, edi
js 0x18008ef77
cmp edi, dword [rbx - 0xc]
jg 0x18008ef77
mov dword [rbx - 0x10], edi
mov byte [rsi + rbx], 0
or rsi, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov edx, 0x2e
mov rcx, rbx
call fcn.1800f6344
test rax, rax
je 0x18008eeda
sub eax, ebx
cmp eax, 0xffffffff
je 0x18008eeda
mov r8d, dword [rbx - 0x10]
sub r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.180003c80
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x18008eebb
cmp dword [rbx + 0x10], 0
jl 0x18008eeac
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x18008eeac
call fcn.180002880
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x18008eea1
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x18008eebb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.180003320
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18008eeda
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x20]
call fcn.18000af20
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1800fd3f0
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
mov rcx, rbx
call fcn.1800f4d08
test rax, rax
jne 0x18008ef4e
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18008ef27
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x28]
jmp 0x18008ef2c
mov rdi, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x18008ef82
jmp 0x18008ec85
mov ecx, 0x80070057
call fcn.180001700
nop
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18008ef70
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 1
jmp 0x18008ef91
mov ecx, 0x80070057
call fcn.180001700
nop
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x18008ef91
xor eax, eax
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.1800f4f80
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3c0
pop rdi
pop rsi
pop rbp
ret