Function at 0x140141cb0
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 rsi, rcx
mov rdi, rdx
test rcx, rcx
je 0x140142408
test rdx, rdx
je 0x140142408
mov r12, qword [sym.imp.msvcrt.dll__errno]
call r12
mov r13, qword [rsi]
mov dword [rax], 0
test r13, r13
je 0x1401420e0
mov rcx, qword [r13 + 0x250]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140142650
mov r14, qword [rsi]
cmp word [r14 + 0x2c], 0
lea r12, [r14 + 0x2c]
je 0x1401426a3
xor eax, eax
jmp 0x140141d3c
cmp rax, 0xff
je 0x14014241c
mov rdx, rax
add rax, 1
cmp word [r14 + rax*2 + 0x2c], 0
jne 0x140141d30
lea rdi, [rdx + 2]
mov r9d, edi
lea rax, [r14 + 0x258]
xor edx, edx
mov qword [rsp + 0x38], 0
mov r8, r12
mov qword [rsp + 0x30], 0
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1401420b0
mov rax, qword [rsi]
lea rdx, [r14 + rdi*2 + 0x2c]
lea rcx, [rax + 0x258]
cmp rcx, rdx
lea rcx, [rax + rdi + 0x258]
setae dl
cmp r12, rcx
setae cl
or dl, cl
je 0x140142683
lea rdx, [rdi - 1]
cmp rdx, 0xe
jbe 0x140142683
movdqu xmm1, xmmword [r14 + 0x2c]
movdqa xmm0, xmmword [0x1403a3450]
mov rdx, rdi
movdqu xmm2, xmmword [r14 + 0x3c]
shr rdx, 4
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x258], xmm1
cmp rdx, 1
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x4c]
movdqu xmm2, xmmword [r14 + 0x5c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x268], xmm1
cmp rdx, 2
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x6c]
movdqu xmm2, xmmword [r14 + 0x7c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x278], xmm1
cmp rdx, 3
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x8c]
movdqu xmm2, xmmword [r14 + 0x9c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x288], xmm1
cmp rdx, 4
je 0x140142250
movdqu xmm1, xmmword [r14 + 0xac]
movdqu xmm2, xmmword [r14 + 0xbc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x298], xmm1
cmp rdx, 5
je 0x140142250
movdqu xmm1, xmmword [r14 + 0xcc]
movdqu xmm2, xmmword [r14 + 0xdc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x2a8], xmm1
cmp rdx, 6
je 0x140142250
movdqu xmm1, xmmword [r14 + 0xec]
movdqu xmm2, xmmword [r14 + 0xfc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x2b8], xmm1
cmp rdx, 7
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x10c]
movdqu xmm2, xmmword [r14 + 0x11c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x2c8], xmm1
cmp rdx, 8
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x12c]
movdqu xmm2, xmmword [r14 + 0x13c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x2d8], xmm1
cmp rdx, 9
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x14c]
movdqu xmm2, xmmword [r14 + 0x15c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x2e8], xmm1
cmp rdx, 0xa
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x16c]
movdqu xmm2, xmmword [r14 + 0x17c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x2f8], xmm1
cmp rdx, 0xb
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x18c]
movdqu xmm2, xmmword [r14 + 0x19c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x308], xmm1
cmp rdx, 0xc
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x1ac]
movdqu xmm2, xmmword [r14 + 0x1bc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x318], xmm1
cmp rdx, 0xd
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x1cc]
movdqu xmm2, xmmword [r14 + 0x1dc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x328], xmm1
cmp rdx, 0xe
je 0x140142250
movdqu xmm1, xmmword [r14 + 0x1ec]
movdqu xmm2, xmmword [r14 + 0x1fc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [rax + 0x338], xmm1
cmp rdx, 0x10
jne 0x140142250
movdqu xmm1, xmmword [r14 + 0x20c]
movdqu xmm2, xmmword [r14 + 0x21c]
pand xmm1, xmm0
pand xmm0, xmm2
packuswb xmm1, xmm0
movups xmmword [rax + 0x348], xmm1
nop dword [rax]
mov r13, qword [rsi]
mov byte [r13 + 0x357], 0
add r13, 0x258
mov rax, r13
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp byte [rdi], 0
je 0x140142658
mov rdx, rdi
xor eax, eax
jmp 0x1401420fb
cmp eax, 0x80000000
je 0x140142658
add rdx, 1
add eax, 1
cmp byte [rdx], 0
jne 0x1401420f0
and eax, 0x7fffffff
mov r14d, eax
lea rax, [r14 - 1]
mov rbx, r14
cmp rax, 0x7ffffffb
ja 0x140142658
mov edx, 1
mov ecx, 0x358
call sub.msvcrt.dll_calloc
mov qword [rsi], rax
test rax, rax
je 0x14014270d
add r14, 1
mov ecx, 0xfde9
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x28], 0
mov r15, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r9d, r14d
mov qword [rsp + 0x20], 0
call r15
mov ecx, 0xfde9
mov r11d, eax
test eax, eax
jle 0x14014242c
lea eax, [r11 + 2]
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.1403219a0
xor edx, edx
sub rsp, rax
mov dword [rbp - 0xc], r11d
mov r9d, r14d
mov r8, rdi
lea r10, [rsp + 0x40]
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], r10
mov qword [rbp - 8], r10
call r15
mov r10, qword [rbp - 8]
mov r11d, dword [rbp - 0xc]
test eax, eax
je 0x140142666
lea ecx, [r11 - 1]
movsxd rcx, ecx
add rcx, rcx
movzx eax, word [r10 + rcx - 2]
cmp ax, 0x2a
je 0x140142203
mov qword [rbp - 8], r10
add rcx, r10
cmp ax, 0x2f
je 0x1401423f0
cmp ax, 0x5c
je 0x1401423f0
lea rdx, [0x1403a3440]
call sub.msvcrt.dll_wcscpy
mov r10, qword [rbp - 8]
mov rbx, qword [rsi]
mov rcx, r10
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 0x250], rax
mov r14, qword [rsi]
cmp qword [r14 + 0x250], 0xffffffffffffffff
jne 0x140141d14
mov rcx, r14
call fcn.14032df50
mov qword [rsi], 0
call r12
mov dword [rax], 0x16
jmp 0x1401420c2
mov rdx, rdi
and rdx, 0xfffffffffffffff0
test dil, 0xf
je 0x1401420b0
movzx r8d, word [r12 + rdx*2]
lea rcx, [rdx + rdx]
mov byte [rax + rdx + 0x258], r8b
lea r8, [rdx + 1]
cmp r8, rdi
jae 0x1401420b0
movzx r9d, word [r12 + rcx + 2]
lea r8, [rdx + 2]
mov byte [rax + rdx + 0x259], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 4]
lea r8, [rdx + 3]
mov byte [rax + rdx + 0x25a], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 6]
lea r8, [rdx + 4]
mov byte [rax + rdx + 0x25b], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 8]
lea r8, [rdx + 5]
mov byte [rax + rdx + 0x25c], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 0xa]
lea r8, [rdx + 6]
mov byte [rax + rdx + 0x25d], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 0xc]
lea r8, [rdx + 7]
mov byte [rax + rdx + 0x25e], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 0xe]
lea r8, [rdx + 8]
mov byte [rax + rdx + 0x25f], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 0x10]
lea r8, [rdx + 9]
mov byte [rax + rdx + 0x260], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 0x12]
lea r8, [rdx + 0xa]
mov byte [rax + rdx + 0x261], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 0x14]
lea r8, [rdx + 0xb]
mov byte [rax + rdx + 0x262], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 0x16]
lea r8, [rdx + 0xc]
mov byte [rax + rdx + 0x263], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 0x18]
lea r8, [rdx + 0xd]
mov byte [rax + rdx + 0x264], r9b
cmp rdi, r8
jbe 0x1401420b0
movzx r9d, word [r12 + rcx + 0x1a]
mov byte [rax + rdx + 0x265], r9b
add rdx, 0xe
cmp rdi, rdx
jbe 0x1401420b0
movzx ecx, word [r12 + rcx + 0x1c]
mov byte [rax + rdx + 0x258], cl
jmp 0x1401420b0
lea rdx, [0x1403a3446]
call sub.msvcrt.dll_wcscpy
mov r10, qword [rbp - 8]
jmp 0x140142203
call qword [sym.imp.msvcrt.dll__errno]
xor r13d, r13d
mov dword [rax], 0x16
jmp 0x1401420c2
mov r9d, 0x100
mov edi, 0x100
jmp 0x140141d53
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
je 0x140142620
lea eax, [r14 + 2]
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.1403219a0
sub rsp, rax
lea rdx, [rsp + 0x40]
mov r10, rdx
cmp ebx, 0xe
jbe 0x1401426fa
mov rcx, r14
xor eax, eax
pxor xmm3, xmm3
and ecx, 0xfffffff0
nop dword [rax]
movdqu xmm0, xmmword [rdi + rax]
movdqa xmm1, xmm3
pcmpgtb xmm1, xmm0
movdqa xmm2, xmm0
punpcklbw xmm2, xmm1
punpckhbw xmm0, xmm1
movaps xmmword [rdx + rax*2], xmm2
movaps xmmword [rdx + rax*2 + 0x10], xmm0
add rax, 0x10
cmp rax, rcx
jne 0x140142478
mov rax, r14
and rax, 0xfffffffffffffff0
cmp r14, rax
je 0x140142618
movsx r8w, byte [rdi + rax]
lea rcx, [rax + rax]
mov word [rdx + rax*2], r8w
add rax, 1
cmp r14, rax
jbe 0x140142618
movsx r8w, byte [rdi + rax]
mov word [rdx + rcx + 2], r8w
lea r8, [rax + 1]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 1]
mov word [rdx + rcx + 4], r8w
lea r8, [rax + 2]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 2]
mov word [rdx + rcx + 6], r8w
lea r8, [rax + 3]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 3]
mov word [rdx + rcx + 8], r8w
lea r8, [rax + 4]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 4]
mov word [rdx + rcx + 0xa], r8w
lea r8, [rax + 5]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 5]
mov word [rdx + rcx + 0xc], r8w
lea r8, [rax + 6]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 6]
mov word [rdx + rcx + 0xe], r8w
lea r8, [rax + 7]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 7]
mov word [rdx + rcx + 0x10], r8w
lea r8, [rax + 8]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 8]
mov word [rdx + rcx + 0x12], r8w
lea r8, [rax + 9]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 9]
mov word [rdx + rcx + 0x14], r8w
lea r8, [rax + 0xa]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 0xa]
mov word [rdx + rcx + 0x16], r8w
lea r8, [rax + 0xb]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 0xb]
mov word [rdx + rcx + 0x18], r8w
lea r8, [rax + 0xc]
cmp r14, r8
jbe 0x140142618
movsx r8w, byte [rdi + rax + 0xc]
mov word [rdx + rcx + 0x1a], r8w
lea r8, [rax + 0xd]
cmp r14, r8
jbe 0x140142618
movsx ax, byte [rdi + rax + 0xd]
mov word [rdx + rcx + 0x1c], ax
nop dword [rax + rax]
mov r11d, r14d
jmp 0x1401421c2
mov dword [rsp + 0x28], 0
mov r9d, r14d
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], 0
xor ecx, ecx
call r15
mov r11d, eax
test eax, eax
jle 0x14014243d
xor ecx, ecx
jmp 0x140142179
xor r13d, r13d
jmp 0x1401420c2
call r12
mov dword [rax], 2
jmp 0x1401420c2
mov rcx, qword [rsi]
call fcn.14032df50
mov qword [rsi], 0
call r12
mov dword [rax], 0x16
jmp 0x1401420c2
xor edx, edx
nop dword [rax]
movzx ecx, word [r14 + rdx*2 + 0x2c]
mov byte [rax + rdx + 0x258], cl
add rdx, 1
cmp rdx, rdi
jne 0x140142688
jmp 0x1401420b0
xor edx, edx
mov r9d, 1
mov r8, r12
mov ecx, 0xfde9
lea rax, [r14 + 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 0x1401420b0
mov rax, qword [rsi]
movzx edx, word [r14 + 0x2c]
mov byte [rax + 0x258], dl
jmp 0x1401420b0
movsx ax, byte [rdi]
xor ecx, ecx
mov word [rdx], ax
mov eax, 1
jmp 0x1401424cf
call r12
xor r13d, r13d
mov dword [rax], 0xc
jmp 0x1401420c2