Function at 0x14006a6d9
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rbx
sub rsp, 0x680
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x640], rcx
mov rbx, rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x650], r8
mov byte [rbp + 0x5fb], 0
lea r8, [rbp + 0x350]
mov eax, 0
mov edx, 0x4b
mov rdi, r8
mov rcx, rdx
rep stosq qword [rdi], rax
mov r8, rdi
mov dword [r8], eax
add r8, 4
lea rax, [0x140089fb7]
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 8]
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov qword [rbp - 8], rax
lea rax, [0x140089816]
mov qword [rbp], rax
mov rdx, qword [rbp + 8]
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov qword [rbp + 8], rax
lea r10, [rbp + 0x5b0]
mov rax, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
movdqu xmm1, xmmword [rbp]
movups xmmword [rbp + 0x20], xmm1
movdqu xmm2, xmmword [rbp - 0x10]
movups xmmword [rbp + 0x10], xmm2
lea rcx, [rbp + 0x10]
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x30]
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, r10
call sym.string_replace
mov rax, qword [rbp + 0x5b0]
mov rdx, qword [rbp + 0x5b8]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
lea rax, [rbp + 0x30]
mov rcx, rax
call sym.string_to_wide
mov qword [rbp + 0x5f0], rax
lea rdx, [rbp + 0x350]
mov rax, qword [rbp + 0x5f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileW]
call rax
mov qword [rbp + 0x5e8], rax
mov byte [rbp + 0x5fb], 1
cmp qword [rbp + 0x5e8], 0xffffffffffffffff
jne 0x14006a964
pxor xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, [rbp + 0x5c0]
mov rcx, rax
call sym.os__get_error_msg
lea rax, str.os.glob__:_Could_not_get_a_file_handle:
mov qword [rbp - 0x20], rax
mov rdx, qword [rbp - 0x18]
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 0x28
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov qword [rbp - 0x18], rax
lea rcx, [rbp + 0x5d0]
movdqu xmm3, xmmword [rbp - 0x20]
movups xmmword [rbp + 0x30], xmm3
mov rax, qword [rbp + 0x5c0]
mov rdx, qword [rbp + 0x5c8]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdx
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x30]
mov r8, rdx
mov rdx, rax
call sym.string__plus
lea rcx, [rbp + 0x58]
mov rax, qword [rbp + 0x5d0]
mov rdx, qword [rbp + 0x5d8]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
lea rax, [rbp + 0x30]
mov rdx, rax
call sym._v_error
cmp byte [rbp + 0x5fb], 0
je 0x14006a939
mov rax, qword [rbp + 0x5e8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov rcx, qword [rbp + 0x640]
mov rax, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov rax, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x68]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
jmp 0x14006ade1
lea rax, [rbp + 0xe0]
lea rdx, [rbp + 0x350]
add rdx, 0x2c
mov rcx, rax
call sym.string_from_wide
mov eax, dword [rbp + 0xe8]
cmp eax, 1
jne 0x14006a9b2
mov eax, dword [rbp + 0xe8]
cdqe
mov rcx, qword [rbp + 0xe0]
mov r8, rax
lea rax, [0x140089752]
mov rdx, rax
call sym.vmemcmp
test eax, eax
je 0x14006ab78
mov eax, dword [rbp + 0xe8]
cmp eax, 2
jne 0x14006a9e6
mov eax, dword [rbp + 0xe8]
cdqe
mov rcx, qword [rbp + 0xe0]
mov r8, rax
lea rax, [0x140088616]
mov rdx, rax
call sym.vmemcmp
test eax, eax
je 0x14006ab78
lea rbx, [0x140089816]
mov qword [rbp - 0x40], rbx
mov rdx, qword [rbp - 0x38]
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov qword [rbp - 0x38], rax
lea rax, [0x140089fb7]
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x28]
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov qword [rbp - 0x28], rax
lea r10, [rbp + 0xb0]
mov rax, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0xe8]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
movdqu xmm4, xmmword [rbp - 0x30]
movups xmmword [rbp + 0x20], xmm4
movdqu xmm5, xmmword [rbp - 0x40]
movups xmmword [rbp + 0x10], xmm5
lea rcx, [rbp + 0x10]
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x30]
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, r10
call sym.string_replace
mov eax, dword [rbp + 0x350]
and eax, 0x10
test eax, eax
je 0x14006ab39
mov qword [rbp - 0x50], rbx
mov rdx, qword [rbp - 0x48]
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov qword [rbp - 0x48], rax
lea rcx, [rbp + 0x30]
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdx
movdqu xmm1, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x10], xmm1
lea rdx, [rbp + 0x10]
lea rax, [rbp + 0x20]
mov r8, rdx
mov rdx, rax
call sym.string__plus
mov rax, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rdx
lea rcx, [rbp + 0xa0]
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
lea rax, [rbp + 0x30]
mov rdx, rax
call sym.string_clone
lea rdx, [rbp + 0xa0]
mov rax, qword [rbp + 0x650]
mov rcx, rax
call sym.array_push
mov dword [rbp + 0x5fc], 0
jmp 0x14006ad91
lea rax, [rbp + 0x90]
lea rdx, [rbp + 0x350]
add rdx, 0x2c
mov rcx, rax
call sym.string_from_wide
mov eax, dword [rbp + 0x98]
cmp eax, 1
jne 0x14006abd6
mov eax, dword [rbp + 0x98]
movsxd rdx, eax
mov rax, qword [rbp + 0x90]
mov r8, rdx
lea rdx, [0x140089752]
mov rcx, rax
call sym.vmemcmp
test eax, eax
je 0x14006ad8a
mov eax, dword [rbp + 0x98]
cmp eax, 2
jne 0x14006ac0c
mov eax, dword [rbp + 0x98]
movsxd rdx, eax
mov rax, qword [rbp + 0x90]
mov r8, rdx
lea rdx, [0x140088616]
mov rcx, rax
call sym.vmemcmp
test eax, eax
jne 0x14006ac0c
jmp 0x14006ad8a
lea r14, [0x140089816]
mov rdx, r15
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov r15, rax
mov rax, r15
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov r15, rax
lea r12, [0x140089fb7]
mov rdx, r13
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov r13, rax
mov rax, r13
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov r13, rax
lea rcx, [rbp + 0x80]
mov rax, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x98]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r15
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x30]
mov r9, r8
mov r8, rdx
mov rdx, rax
call sym.string_replace
mov eax, dword [rbp + 0x350]
and eax, 0x10
test eax, eax
je 0x14006ad51
lea rax, [0x140089816]
mov qword [rbp - 0x60], rax
mov rdx, qword [rbp - 0x58]
movabs rax, 0xffffffff00000000
and rax, rdx
or rax, 1
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov edx, eax
movabs rax, 0x100000000
or rax, rdx
mov qword [rbp - 0x58], rax
lea rcx, [rbp + 0x30]
mov rax, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x88]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdx
movdqu xmm2, xmmword [rbp - 0x60]
movups xmmword [rbp + 0x10], xmm2
lea rdx, [rbp + 0x10]
lea rax, [rbp + 0x20]
mov r8, rdx
mov rdx, rax
call sym.string__plus
mov rax, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
lea rcx, [rbp + 0x70]
mov rax, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x88]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
lea rax, [rbp + 0x30]
mov rdx, rax
call sym.string_clone
lea rdx, [rbp + 0x70]
mov rax, qword [rbp + 0x650]
mov rcx, rax
call sym.array_push
add dword [rbp + 0x5fc], 1
lea rdx, [rbp + 0x350]
mov rax, qword [rbp + 0x5e8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileW]
call rax
test eax, eax
jg 0x14006ab87
cmp byte [rbp + 0x5fb], 0
je 0x14006adcf
mov rax, qword [rbp + 0x5e8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov rax, qword [rbp + 0x640]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0x640]
add rsp, 0x680
pop rbx
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret