Function at 0x1400d1590
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov r12, rcx
mov rsi, rdx
test rcx, rcx
je 0x1400d1d90
test rdx, rdx
je 0x1400d1d90
mov rdi, qword [sym.imp.msvcrt.dll__errno]
call rdi
mov rdx, qword [r12]
mov dword [rax], 0
test rdx, rdx
je 0x1400d16e0
mov rcx, qword [rdx + 0x250]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400d183d
mov rsi, qword [r12]
cmp word [rsi + 0x2c], 0
lea r14, [rsi + 0x2c]
je 0x1400d1e21
xor ebx, ebx
jmp 0x1400d1615
cmp rbx, 0xff
je 0x1400d1db8
mov rdi, rbx
add rbx, 1
cmp word [rsi + rbx*2 + 0x2c], 0
jne 0x1400d1608
lea r13, [rdi + 2]
lea rax, [rsi + 0x258]
xor edx, edx
mov r8, r14
mov dword [rsp + 0x28], 0x100
mov r9d, r13d
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400d16b5
lea rbx, [rdi + 1]
mov rdx, qword [r12]
cmp rbx, 6
jbe 0x1400d1699
lea rcx, [rdx + 0x258]
lea rax, [rsi + r13*2 + 0x2c]
cmp rcx, rax
jae 0x1400d19a8
lea rax, [rdx + r13 + 0x258]
cmp r14, rax
jae 0x1400d19a8
xor eax, eax
nop dword [rax + rax]
movzx ecx, word [rsi + rax*2 + 0x2c]
mov byte [rdx + rax + 0x258], cl
add rax, 1
cmp rax, r13
jne 0x1400d16a0
mov rax, qword [r12]
mov byte [rax + 0x357], 0
add rax, 0x258
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp byte [rsi], 0
je 0x1400d1e0b
mov rdx, rsi
xor eax, eax
jmp 0x1400d16fb
cmp eax, 0x80000000
je 0x1400d1e0b
add rdx, 1
add eax, 1
cmp byte [rdx], 0
jne 0x1400d16f0
and eax, 0x7fffffff
mov r14d, eax
mov dword [rbp - 8], eax
lea rax, [r14 - 1]
cmp rax, 0x7ffffffb
ja 0x1400d1e0b
mov edx, 1
mov ecx, 0x358
call sub.msvcrt.dll_calloc
mov qword [r12], rax
test rax, rax
je 0x1400d1eca
lea rbx, [r14 + 1]
mov ecx, 0xfde9
mov r8, rsi
xor edx, edx
mov dword [rsp + 0x28], 0
mov r15, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r9d, ebx
mov qword [rsp + 0x20], 0
call r15
mov ecx, 0xfde9
mov r13d, eax
test eax, eax
jle 0x1400d1848
lea eax, [r13 + 2]
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.1402261d0
xor edx, edx
sub rsp, rax
mov r9d, ebx
mov r8, rsi
lea r10, [rsp + 0x40]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r10
mov qword [rbp - 8], r10
call r15
mov r10, qword [rbp - 8]
test eax, eax
je 0x1400d1ea0
lea ecx, [r13 - 1]
movsxd rcx, ecx
add rcx, rcx
movzx eax, word [r10 + rcx - 2]
cmp ax, 0x2a
je 0x1400d17fc
mov qword [rbp - 8], r10
add rcx, r10
cmp ax, 0x2f
je 0x1400d1da3
cmp ax, 0x5c
je 0x1400d1da3
lea rdx, [0x1402934d0]
call sub.msvcrt.dll_wcscpy
mov r10, qword [rbp - 8]
mov rbx, qword [r12]
mov rcx, r10
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 0x250], rax
mov rsi, qword [r12]
cmp qword [rsi + 0x250], 0xffffffffffffffff
jne 0x1400d15f2
mov rcx, rsi
call fcn.140233da0
mov qword [r12], 0
call rdi
mov dword [rax], 0x16
xor eax, eax
jmp 0x1400d16c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
je 0x1400d1e74
lea eax, [rbx + 2]
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.1402261d0
sub rsp, rax
lea r10, [rsp + 0x40]
cmp dword [rbp - 8], 0xe
jbe 0x1400d1e1a
mov rdx, rbx
xor eax, eax
pxor xmm3, xmm3
and edx, 0xfffffff0
nop word [rax + rax]
movdqu xmm0, xmmword [rsi + rax]
movdqa xmm1, xmm3
pcmpgtb xmm1, xmm0
movdqa xmm2, xmm0
punpcklbw xmm2, xmm1
punpckhbw xmm0, xmm1
movups xmmword [r10 + rax*2], xmm2
movups xmmword [r10 + rax*2 + 0x10], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x1400d1890
cmp rdx, rbx
je 0x1400d199d
sub r14, rdx
lea rcx, [r14 + 1]
cmp r14, 6
jbe 0x1400d1911
movq xmm0, qword [rsi + rdx]
pxor xmm1, xmm1
lea rax, [r10 + rdx*2]
pcmpgtb xmm1, xmm0
movdqa xmm2, xmm0
punpcklbw xmm0, xmm1
punpcklbw xmm2, xmm1
pshufd xmm0, xmm0, 0x4e
movq qword [rax], xmm2
movq qword [rax + 8], xmm0
mov rax, rcx
and rax, 0xfffffffffffffff8
add rdx, rax
and ecx, 7
je 0x1400d199d
movsx cx, byte [rsi + rdx]
lea rax, [rdx + rdx]
mov word [r10 + rdx*2], cx
lea rcx, [rdx + 1]
cmp rcx, rbx
jae 0x1400d199d
movsx cx, byte [rsi + rdx + 1]
mov word [r10 + rax + 2], cx
lea rcx, [rdx + 2]
cmp rcx, rbx
jae 0x1400d199d
movsx cx, byte [rsi + rdx + 2]
mov word [r10 + rax + 4], cx
lea rcx, [rdx + 3]
cmp rcx, rbx
jae 0x1400d199d
movsx cx, byte [rsi + rdx + 3]
mov word [r10 + rax + 6], cx
lea rcx, [rdx + 4]
cmp rcx, rbx
jae 0x1400d199d
movsx cx, byte [rsi + rdx + 4]
mov word [r10 + rax + 8], cx
lea rcx, [rdx + 5]
cmp rcx, rbx
jae 0x1400d199d
movsx cx, byte [rsi + rdx + 5]
mov word [r10 + rax + 0xa], cx
lea rcx, [rdx + 6]
cmp rcx, rbx
jae 0x1400d199d
movsx dx, byte [rsi + rdx + 6]
mov word [r10 + rax + 0xc], dx
mov r13d, ebx
jmp 0x1400d17bb
cmp rbx, 0xe
jbe 0x1400d1ec0
movdqu xmm0, xmmword [0x1402934e0]
movdqu xmm1, xmmword [rsi + 0x2c]
mov rax, r13
movdqu xmm2, xmmword [rsi + 0x3c]
shr rax, 4
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x258], xmm1
cmp rax, 1
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x4c]
movdqu xmm2, xmmword [rsi + 0x5c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x268], xmm1
cmp rax, 2
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x6c]
movdqu xmm2, xmmword [rsi + 0x7c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x278], xmm1
cmp rax, 3
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x8c]
movdqu xmm2, xmmword [rsi + 0x9c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x288], xmm1
cmp rax, 4
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0xac]
movdqu xmm2, xmmword [rsi + 0xbc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x298], xmm1
cmp rax, 5
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0xcc]
movdqu xmm2, xmmword [rsi + 0xdc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x2a8], xmm1
cmp rax, 6
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0xec]
movdqu xmm2, xmmword [rsi + 0xfc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x2b8], xmm1
cmp rax, 7
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x10c]
movdqu xmm2, xmmword [rsi + 0x11c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x2c8], xmm1
cmp rax, 8
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x12c]
movdqu xmm2, xmmword [rsi + 0x13c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x2d8], xmm1
cmp rax, 9
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x14c]
movdqu xmm2, xmmword [rsi + 0x15c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x2e8], xmm1
cmp rax, 0xa
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x16c]
movdqu xmm2, xmmword [rsi + 0x17c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x2f8], xmm1
cmp rax, 0xb
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x18c]
movdqu xmm2, xmmword [rsi + 0x19c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x308], xmm1
cmp rax, 0xc
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x1ac]
movdqu xmm2, xmmword [rsi + 0x1bc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x318], xmm1
cmp rax, 0xd
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x1cc]
movdqu xmm2, xmmword [rsi + 0x1dc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x328], xmm1
cmp rax, 0xe
je 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x1ec]
movdqu xmm2, xmmword [rsi + 0x1fc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rdx + 0x338], xmm1
cmp rax, 0x10
jne 0x1400d1c70
movdqu xmm1, xmmword [rsi + 0x20c]
movdqu xmm2, xmmword [rsi + 0x21c]
pand xmm1, xmm0
pand xmm0, xmm2
packuswb xmm1, xmm0
movups xmmword [rdx + 0x348], xmm1
jmp 0x1400d16b5
mov rax, r13
and rax, 0xfffffffffffffff0
test r13b, 0xf
je 0x1400d16b5
mov rcx, r13
sub rcx, rax
lea r8, [rcx - 1]
cmp r8, 6
jbe 0x1400d1cd6
movq xmm1, qword [0x1402934e0]
lea r8, [rsi + rax*2 + 0x2c]
movq xmm0, qword [r8]
movq xmm2, qword [r8 + 8]
mov r8, rcx
and r8, 0xfffffffffffffff8
pand xmm0, xmm1
pand xmm1, xmm2
packuswb xmm0, xmm1
pshufd xmm0, xmm0, 8
movq qword [rdx + rax + 0x258], xmm0
add rax, r8
and ecx, 7
je 0x1400d16b5
movzx r8d, word [r14 + rax*2]
lea rcx, [rax + rax]
mov byte [rdx + rax + 0x258], r8b
lea r8, [rax + 1]
cmp r8, r13
jae 0x1400d16b5
movzx r9d, word [r14 + rcx + 2]
lea r8, [rax + 2]
mov byte [rdx + rax + 0x259], r9b
cmp r8, r13
jae 0x1400d16b5
movzx r9d, word [r14 + rcx + 4]
lea r8, [rax + 3]
mov byte [rdx + rax + 0x25a], r9b
cmp r8, r13
jae 0x1400d16b5
movzx r9d, word [r14 + rcx + 6]
lea r8, [rax + 4]
mov byte [rdx + rax + 0x25b], r9b
cmp r8, r13
jae 0x1400d16b5
movzx r9d, word [r14 + rcx + 8]
lea r8, [rax + 5]
mov byte [rdx + rax + 0x25c], r9b
cmp r8, r13
jae 0x1400d16b5
movzx r9d, word [r14 + rcx + 0xa]
mov byte [rdx + rax + 0x25d], r9b
add rax, 6
cmp rax, r13
jae 0x1400d16b5
movzx ecx, word [r14 + rcx + 0xc]
mov byte [rdx + rax + 0x258], cl
jmp 0x1400d16b5
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
xor eax, eax
jmp 0x1400d16c6
lea rdx, [0x1402934d6]
call sub.msvcrt.dll_wcscpy
mov r10, qword [rbp - 8]
jmp 0x1400d17fc
xor edx, edx
mov r9d, 0x100
mov r8, r14
mov ecx, 0xfde9
lea rax, [rsi + 0x258]
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400d16b5
mov rdx, qword [r12]
mov r13d, 0x100
jmp 0x1400d1673
call rdi
mov dword [rax], 2
xor eax, eax
jmp 0x1400d16c6
xor edx, edx
jmp 0x1400d18c6
xor edx, edx
mov r9d, 1
mov r8, r14
mov ecx, 0xfde9
lea rax, [rsi + 0x258]
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400d16b5
mov rdx, qword [r12]
mov r13d, 1
jmp 0x1400d1699
mov dword [rsp + 0x28], 0
mov r9d, ebx
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x20], 0
xor ecx, ecx
call r15
mov r13d, eax
test eax, eax
jle 0x1400d1ed9
xor ecx, ecx
jmp 0x1400d177a
mov rcx, qword [r12]
call fcn.140233da0
mov qword [r12], 0
call rdi
mov dword [rax], 0x16
xor eax, eax
jmp 0x1400d16c6
mov rcx, r13
xor eax, eax
jmp 0x1400d1c91
call rdi
mov dword [rax], 0xc
xor eax, eax
jmp 0x1400d16c6
lea eax, [rbx + 2]
cdqe
add rax, rax
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.1402261d0
sub rsp, rax
lea r10, [rsp + 0x40]
jmp 0x1400d1874