Function at 0x140012b00
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1180]
mov eax, 0x1280
call fcn.14019df70
sub rsp, rax
mov rax, qword [0x140213010]
xor rax, rsp
mov qword [rbp + 0x1170], rax
xor r14d, r14d
lea rax, [rbp + 0x970]
mov word [rbp + 0x970], r14w
mov rsi, rdx
mov rdi, rcx
mov r8d, 0x400
nop dword [rax]
cmp word [rax], r14w
je 0x140012b60
add rax, 2
sub r8, 1
jne 0x140012b50
test r8, r8
je 0x140012bc8
mov eax, 0x400
lea rcx, [rbp + 0x970]
sub rax, r8
mov edx, 0x400
test r8, r8
cmove rax, r14
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140012bb9
add rax, 0x7ffffbfe
mov r9, rsi
add rax, rdx
sub r9, rcx
test rax, rax
je 0x140012bb9
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140012bb9
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140012b98
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov ecx, 0x400
lea rax, [rbp + 0x970]
cmp word [rax], r14w
je 0x140012be4
add rax, 2
sub rcx, 1
jne 0x140012bd4
test rcx, rcx
je 0x140012f38
mov eax, 0x400
mov edx, 0x400
sub rax, rcx
test rcx, rcx
lea rcx, [rbp + 0x970]
cmove rax, r14
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140012c45
add rax, 0x7ffffbfe
lea r9, str..dll
add rax, rdx
sub r9, rcx
test rax, rax
je 0x140012c45
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140012c45
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140012c24
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
je 0x140012f38
xor edx, edx
mov qword [rsp + 0x12a8], rbx
mov r8d, 0x250
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x970]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012f30
mov word [rbp + 0x170], r14w
lea rcx, [rbp + 0x170]
mov edx, 0x400
cmp word [rcx], r14w
je 0x140012cb7
add rcx, 2
sub rdx, 1
jne 0x140012ca7
test rdx, rdx
je 0x140012d20
mov eax, 0x400
lea rcx, [rbp + 0x170]
sub rax, rdx
test rdx, rdx
mov edx, 0x400
cmove rax, r14
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140012d11
add rax, 0x7ffffbfe
mov r9, rsi
add rax, rdx
sub r9, rcx
nop
test rax, rax
je 0x140012d11
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140012d11
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140012cf0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov ecx, 0x400
lea rax, [rbp + 0x170]
nop dword [rax]
cmp word [rax], r14w
je 0x140012d40
add rax, 2
sub rcx, 1
jne 0x140012d30
test rcx, rcx
je 0x140012dc1
mov eax, 0x400
mov edx, 0x400
sub rax, rcx
test rcx, rcx
lea rcx, [rbp + 0x170]
cmove rax, r14
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140012da1
add rax, 0x7ffffbfe
lea r9, [rsp + 0x4c]
add rax, rdx
sub r9, rcx
nop word [rax + rax]
test rax, rax
je 0x140012da1
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140012da1
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140012d80
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
je 0x140012dc1
lea rdx, [rbp + 0x170]
mov rcx, rdi
call fcn.140012800
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140012f27
nop word [rax + rax]
mov word [rbp + 0x170], r14w
lea rax, [rbp + 0x170]
mov ecx, 0x400
cmp word [rax], r14w
je 0x140012e04
add rax, 2
sub rcx, 1
jne 0x140012df4
test rcx, rcx
je 0x140012e70
mov eax, 0x400
mov edx, 0x400
sub rax, rcx
test rcx, rcx
lea rcx, [rbp + 0x170]
cmove rax, r14
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140012e61
add rax, 0x7ffffbfe
mov r9, rsi
add rax, rdx
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x140012e61
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140012e61
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140012e40
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov ecx, 0x400
lea rax, [rbp + 0x170]
nop dword [rax]
cmp word [rax], r14w
je 0x140012e90
add rax, 2
sub rcx, 1
jne 0x140012e80
test rcx, rcx
je 0x140012f11
mov eax, 0x400
mov edx, 0x400
sub rax, rcx
test rcx, rcx
lea rcx, [rbp + 0x170]
cmove rax, r14
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140012ef1
add rax, 0x7ffffbfe
lea r9, [rsp + 0x4c]
add rax, rdx
sub r9, rcx
nop word [rax + rax]
test rax, rax
je 0x140012ef1
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140012ef1
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140012ed0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
je 0x140012f11
lea rdx, [rbp + 0x170]
mov rcx, rdi
call fcn.140012800
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140012de0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x12a8]
mov rcx, qword [rbp + 0x1170]
xor rcx, rsp
call fcn.14019ce50
mov rsi, qword [rsp + 0x12b0]
add rsp, 0x1280
pop r14
pop rdi
pop rbp
ret