Function at 0x140012068
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x28], rcx
call fcn.140001690
mov rcx, rax
test rax, rax
je 0x140012351
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rsi, [r15 + 8]
mov r8, qword [rsi]
lea rdx, str.Looking_for_files_using_search_template:__s
lea rcx, [rsp + 0x38]
call fcn.140004f58
mov rdi, qword [rsp + 0x38]
add rdi, 0xffffffffffffffe8
mov qword [rsp + 0x30], rdi
mov rcx, rdi
call fcn.140001e5c
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r13, [r14 + 0x1e0]
mov r14d, 1
mov r9b, r14b
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.140005830
lea rdx, [rbp - 0x80]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140012166
lea rdx, str.Could_not_find_any_files_matching_the_search_template.
lea rcx, [rsp + 0x28]
call fcn.1400048b0
mov r9b, r14b
xor r8d, r8d
mov rdx, rax
mov rcx, r13
call fcn.140005830
xor eax, eax
mov r14d, eax
jmp 0x140012304
mov edx, 0x5c
mov rcx, qword [rsi]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
xor edi, edi
test rax, rax
jne 0x140012180
or eax, 0xffffffff
jmp 0x140012186
sub rax, qword [rsi]
sar rax, 1
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.1400043a8
nop
mov rsi, qword [rsp + 0x28]
mov rcx, r13
call fcn.14000593c
test al, al
jne 0x1400122ce
test byte [rbp - 0x80], 0x10
jne 0x1400122b9
lea r8, [0x14001c48c]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.14000418c
nop
lea rcx, [rbp - 0x54]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400121d8
mov r8d, eax
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x20]
call fcn.140004e40
lea rcx, [rsp + 0x50]
call fcn.140005d80
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.14000482c
lea rcx, [rbp - 0x54]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140012214
mov r8d, eax
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x50]
call fcn.1400020b0
lea rdx, [r15 + 0x10]
lea rcx, [rsp + 0x60]
call fcn.14000482c
mov eax, dword [r15 + 0x18]
mov dword [rsp + 0x68], eax
mov eax, dword [r15 + 0x1c]
mov dword [rsp + 0x6c], eax
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x14001226a
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000b168
add qword [rbx + 8], 0x28
jmp 0x14001227a
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rbx
call fcn.1400130b8
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140011b24
nop
lea rcx, [rsp + 0x50]
call fcn.14000864c
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400122b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001219f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
mov rdi, qword [rsp + 0x30]
jg 0x140012304
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
nop
or ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x140012324
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
mov rax, qword [r8 + 8]
call qword [0x14001b738]
mov eax, r14d
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400183c0
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001500
int3