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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x5c8]
sub rsp, 0x6c8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov qword [rsp + 0x38], r9
mov edi, r8d
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov ecx, 7
mov qword [rbp - 0x58], rcx
xor ebx, ebx
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
test r8d, r8d
je 0x140025a26
lea r8, [rbp - 0x70]
mov rcx, rsi
call fcn.140006674
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140025951
mov qword [rsp + 0x68], 7
xor eax, eax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x50], ax
cmp word [rbp - 4], ax
jne 0x14002584e
mov r8d, eax
jmp 0x140025860
lea rcx, [rbp - 4]
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], ax
jne 0x140025856
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x50]
call fcn.140007f48
nop
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140006674
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140007a08
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.14002678c
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
je 0x140025946
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x50], cx
cmp word [rbp - 4], cx
jne 0x1400258db
mov r8, rcx
jmp 0x1400258ed
lea rax, [rbp - 4]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], cx
jne 0x1400258e3
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x50]
call fcn.140007f48
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140006674
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140007a08
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14002678c
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
jne 0x1400258bd
mov edi, dword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14002598e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14002598e
lea r9, str.file_search_failed
mov r8d, eax
mov edx, 0xf
lea rcx, [rbp + 0x220]
call fcn.140023e20
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x220]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
add edi, 0xffffffff
je 0x140025a26
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rax
mov word [rbp - 0x50], ax
lea r8d, [rax + 1]
lea rdx, [0x140191ddc]
lea rcx, [rbp - 0x50]
call fcn.140007f48
nop
lea r8, [rbp - 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140025a60
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.140007a08
mov rbx, qword [rsp + 0x50]
cmp qword [rsp + 0x58], rbx
je 0x140025a1b
mov rsi, qword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call fcn.140025784
add rbx, 0x20
cmp rbx, qword [rsp + 0x58]
jne 0x1400259fd
lea rcx, [rsp + 0x50]
call fcn.140013fbc
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.140007a08
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x6c8
pop rdi
pop rsi
pop rbx
pop rbp
ret