Function at 0x57d7f0
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 0x57df10
test rdx, rdx
je 0x57df10
mov r12, qword [sym.imp.msvcrt.dll__errno]
call r12
mov r13, qword [rsi]
mov dword [rax], 0
test r13, r13
je 0x57dc20
mov rcx, qword [r13 + 0x250]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x57e158
mov r14, qword [rsi]
cmp word [r14 + 0x2c], 0
lea r12, [r14 + 0x2c]
je 0x57e1ab
xor eax, eax
jmp 0x57d87c
cmp rax, 0xff
je 0x57df24
mov rdx, rax
add rax, 1
cmp word [r14 + rax*2 + 0x2c], 0
jne 0x57d870
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 0x57dbf0
mov rax, qword [rsi]
lea rdx, [r14 + rdi*2 + 0x2c]
lea rcx, [rax + 0x258]
cmp rcx, rdx
lea rdx, [rax + rdi + 0x258]
setae cl
cmp r12, rdx
setae dl
or cl, dl
je 0x57e18b
lea rdx, [rdi - 1]
cmp rdx, 0xe
jbe 0x57e18b
movdqu xmm1, xmmword [r14 + 0x2c]
movdqa xmm0, xmmword [0x007c3a40]
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57dd70
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 0x57e160
mov rdx, rdi
xor eax, eax
jmp 0x57dc3b
cmp eax, 0x80000000
je 0x57e160
add rdx, 1
add eax, 1
cmp byte [rdx], 0
jne 0x57dc30
and eax, 0x7fffffff
mov ebx, eax
sub rax, 1
cmp rax, 0x7ffffffb
ja 0x57e160
mov edx, 1
mov ecx, 0x358
call sym.calloc
mov qword [rsi], rax
test rax, rax
je 0x57e209
lea r9d, [rbx + 1]
xor edx, edx
mov ecx, 0xfde9
mov r8, rdi
mov dword [rbp - 4], r9d
mov r15, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r15
mov r9d, dword [rbp - 4]
mov ecx, 0xfde9
test eax, eax
mov r14d, eax
jle 0x57df34
lea eax, [r14 + 2]
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.00725210
xor edx, edx
sub rsp, rax
mov r8, rdi
lea rbx, [rsp + 0x40]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
call r15
test eax, eax
je 0x57e16e
lea ecx, [r14 - 1]
movsxd rcx, ecx
add rcx, rcx
movzx eax, word [rbx + rcx - 2]
cmp ax, 0x2a
je 0x57dd28
add rcx, rbx
cmp ax, 0x2f
je 0x57defd
cmp ax, 0x5c
je 0x57defd
lea rdx, [0x007c3a30]
call sym.wcscpy
mov rdi, qword [rsi]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rdi + 0x250], rax
mov r14, qword [rsi]
cmp qword [r14 + 0x250], 0xffffffffffffffff
jne 0x57d854
mov rcx, r14
call sym.free
mov qword [rsi], 0
call r12
mov dword [rax], 0x16
jmp 0x57dc02
mov rdx, rdi
and rdx, 0xfffffffffffffff0
test dil, 0xf
je 0x57dbf0
movzx ecx, word [r12 + rdx*2]
mov byte [rax + rdx + 0x258], cl
lea rcx, [rdx + 1]
cmp rcx, rdi
jae 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 2]
mov byte [rax + rdx + 0x259], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 3]
mov byte [rax + rdx + 0x25a], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 4]
mov byte [rax + rdx + 0x25b], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 5]
mov byte [rax + rdx + 0x25c], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 6]
mov byte [rax + rdx + 0x25d], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 7]
mov byte [rax + rdx + 0x25e], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 8]
mov byte [rax + rdx + 0x25f], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 9]
mov byte [rax + rdx + 0x260], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 0xa]
mov byte [rax + rdx + 0x261], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 0xb]
mov byte [rax + rdx + 0x262], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 0xc]
mov byte [rax + rdx + 0x263], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
lea rcx, [rdx + 0xd]
mov byte [rax + rdx + 0x264], r8b
cmp rdi, rcx
jbe 0x57dbf0
movzx r8d, word [r12 + rcx*2]
mov byte [rax + rdx + 0x265], r8b
add rdx, 0xe
cmp rdi, rdx
jbe 0x57dbf0
movzx ecx, word [r12 + rdx*2]
mov byte [rax + rdx + 0x258], cl
jmp 0x57dbf0
lea rdx, [0x007c3a36]
call sym.wcscpy
jmp 0x57dd28
call qword [sym.imp.msvcrt.dll__errno]
xor r13d, r13d
mov dword [rax], 0x16
jmp 0x57dc02
mov edi, 0x100
mov r9d, 0x100
jmp 0x57d893
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, dword [rbp - 4]
cmp eax, 0x459
je 0x57e120
lea eax, [rbx + 3]
mov ecx, r9d
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.00725210
sub rsp, rax
lea rax, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rbx, rdx
cmp rax, 0xe
jbe 0x57e202
mov r8, rcx
xor eax, eax
pxor xmm3, xmm3
and r8d, 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 r8, rax
jne 0x57df88
mov rax, rcx
and rax, 0xfffffffffffffff0
cmp rcx, rax
je 0x57e118
movsx r8w, byte [rdi + rax]
mov word [rdx + rax*2], r8w
lea r8, [rax + 1]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 1]
mov word [rdx + r8*2], r10w
lea r8, [rax + 2]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 2]
mov word [rdx + r8*2], r10w
lea r8, [rax + 3]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 3]
mov word [rdx + r8*2], r10w
lea r8, [rax + 4]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 4]
mov word [rdx + r8*2], r10w
lea r8, [rax + 5]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 5]
mov word [rdx + r8*2], r10w
lea r8, [rax + 6]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 6]
mov word [rdx + r8*2], r10w
lea r8, [rax + 7]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 7]
mov word [rdx + r8*2], r10w
lea r8, [rax + 8]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 8]
mov word [rdx + r8*2], r10w
lea r8, [rax + 9]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 9]
mov word [rdx + r8*2], r10w
lea r8, [rax + 0xa]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 0xa]
mov word [rdx + r8*2], r10w
lea r8, [rax + 0xb]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 0xb]
mov word [rdx + r8*2], r10w
lea r8, [rax + 0xc]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 0xc]
mov word [rdx + r8*2], r10w
lea r8, [rax + 0xd]
cmp rcx, r8
jbe 0x57e118
movsx r10w, byte [rdi + rax + 0xd]
mov word [rdx + r8*2], r10w
lea r8, [rax + 0xe]
cmp rcx, r8
jbe 0x57e118
movsx ax, byte [rdi + rax + 0xe]
mov word [rdx + r8*2], ax
nop dword [rax + rax]
mov r14d, r9d
jmp 0x57dcf0
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0
mov r8, rdi
mov qword [rsp + 0x20], 0
call r15
mov r9d, dword [rbp - 4]
test eax, eax
mov r14d, eax
jle 0x57df49
xor ecx, ecx
jmp 0x57dcba
xor r13d, r13d
jmp 0x57dc02
call r12
mov dword [rax], 2
jmp 0x57dc02
mov rcx, qword [rsi]
call sym.free
mov qword [rsi], 0
call r12
mov dword [rax], 0x16
jmp 0x57dc02
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 0x57e190
jmp 0x57dbf0
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 0x57dbf0
mov rax, qword [rsi]
movzx edx, word [r14 + 0x2c]
mov byte [rax + 0x258], dl
jmp 0x57dbf0
xor eax, eax
jmp 0x57dfc3
call r12
xor r13d, r13d
mov dword [rax], 0xc
jmp 0x57dc02