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

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r14, rcx
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [0x14000f780]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000903b
nop word [rax + rax]
mov rcx, qword [0x14000f738]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008f90
lea rcx, [0x14000f740]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movsxd rdx, dword [0x14000f77c]
lea rcx, [0x14000f740]
mov rax, qword [0x14000f770]
mov rbx, qword [rax + rdx*8]
lea eax, [rdx + 1]
cdq
idiv dword [0x14000f768]
mov dword [0x14000f77c], edx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x14000f730]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test rbx, rbx
je 0x140008f90
mov rcx, rbx
call fcn.140007d30
mov rcx, qword [0x14000f810]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140008fb0
lea rcx, [0x14000f790]
mov qword [rsp + 0x2e8], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r15d, r15d
mov r9d, r15d
test r14, r14
je 0x1400090c7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
movsxd rdi, eax
nop
mov rcx, qword [0x14000f810]
lea r8, [rdi + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9, rax
test rax, rax
je 0x140009070
mov dword [rsp + 0x40], r15d
movsxd rcx, dword [rsp + 0x40]
cmp rcx, rdi
jae 0x1400090c7
nop dword [rax]
movsxd rdx, dword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x40]
movzx eax, byte [rdx + r14]
mov byte [rcx + r9], al
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
cmp rax, rdi
jb 0x1400090a0
movsxd r8, dword [0x14000f7c8]
lea rcx, [0x14000f790]
mov rax, qword [0x14000f7c0]
mov qword [rax + r8*8], r9
mov eax, dword [0x14000f7c8]
inc eax
cdq
idiv dword [0x14000f7b8]
mov dword [0x14000f7c8], edx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x14000f788]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
mov rcx, qword [0x14000f810]
mov edx, 8
mov r8d, 0x10040
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140009110
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140004280]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140009207
mov qword [rsp + 0x2f0], r12
lea r12, [0x14000f050]
test byte [rsp + 0x50], 0x10
je 0x1400091df
mov ebx, r15d
mov rdi, r12
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400091df
inc ebx
add rdi, 8
cmp ebx, 0x25
jb 0x140009190
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140004288]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x7c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rsi
call fcn.140008f60
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009176
mov r12, qword [rsp + 0x2f0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400092c7
cmp dword [0x14000f808], r15d
je 0x1400092c7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r15
mov r8, r14
mov qword [rsp + 0x30], r15
mov r9d, eax
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
nop word [rax + rax]
mov rcx, qword [0x14000f810]
lea r8, [rbp + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140009250
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r15
mov r8, r14
mov qword [rsp + 0x30], r15
mov r9d, eax
mov dword [rsp + 0x28], ebp
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, [0x1400042c0]
mov r8d, eax
call fcn.1400053c0
mov rcx, qword [0x14000f810]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14000f810]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14000dfa0
add rsp, 0x2b0
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret