Function at 0x556220
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 + 0x80]
mov rdi, rcx
mov rsi, rdx
test rcx, rcx
je 0x5564a0
test rdx, rdx
je 0x5564a0
mov r13, qword [sym.imp.msvcrt.dll__errno]
call r13
mov r12, qword [rdi]
mov dword [rax], 0
test r12, r12
je 0x556340
mov rcx, qword [r12 + 0x250]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5564d6
mov rsi, qword [rdi]
cmp word [rsi + 0x2c], 0
lea r8, [rsi + 0x2c]
je 0x55671b
xor eax, eax
jmp 0x5562b0
mov rax, rdx
cmp rdx, 0xff
je 0x5564c6
lea rdx, [rax + 1]
cmp word [rsi + rdx*2 + 0x2c], 0
jne 0x5562a0
lea rbx, [rax + 2]
mov r9d, ebx
lea rax, [rsi + 0x258]
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x556318
xor eax, eax
nop dword [rax]
movzx ecx, word [rsi + rax*2 + 0x2c]
mov rdx, qword [rdi]
mov byte [rdx + rax + 0x258], cl
add rax, 1
cmp rax, rbx
jne 0x556300
mov rax, qword [rdi]
mov byte [rax + 0x357], 0
mov r12, qword [rdi]
add r12, 0x258
mov rax, r12
lea rsp, [rbp - 0x28]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp byte [rsi], 0
je 0x5566f0
mov rdx, rsi
xor eax, eax
jmp 0x556358
test eax, eax
js 0x5566f0
add rdx, 1
add eax, 1
cmp byte [rdx], 0
jne 0x556350
and eax, 0x7fffffff
mov r14d, eax
lea rax, [r14 - 1]
mov rbx, r14
cmp rax, 0x7ffffffb
ja 0x5566f0
mov edx, 1
mov ecx, 0x358
call sub.msvcrt.dll_calloc
mov qword [rdi], rax
test rax, rax
je 0x55672b
add r14, 1
mov ecx, 0xfde9
mov r8, rsi
xor edx, edx
mov dword [rsp + 0x28], 0
mov r9d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x20], 0
call r15
mov ecx, 0xfde9
mov r11d, eax
test eax, eax
jle 0x5564de
lea eax, [r11 + 2]
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.00704490
xor edx, edx
sub rsp, rax
mov dword [rbp - 0x3c], r11d
mov r9d, r14d
mov r8, rsi
lea r10, [rsp + 0x40]
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], r10
mov qword [rbp - 0x38], r10
call r15
mov r10, qword [rbp - 0x38]
mov r11d, dword [rbp - 0x3c]
test eax, eax
je 0x5566fe
lea ecx, [r11 - 1]
movsxd rcx, ecx
add rcx, rcx
movzx eax, word [r10 + rcx - 2]
cmp ax, 0x2a
je 0x556458
add rcx, r10
mov qword [rbp - 0x38], r10
cmp ax, 0x2f
je 0x5564b4
cmp ax, 0x5c
je 0x5564b4
lea rdx, [0x008b6490]
call sub.msvcrt.dll_wcscpy
mov r10, qword [rbp - 0x38]
mov rbx, qword [rdi]
mov rcx, r10
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 0x250], rax
mov rsi, qword [rdi]
cmp qword [rsi + 0x250], 0xffffffffffffffff
jne 0x556288
mov rcx, rsi
call fcn.00710f20
mov qword [rdi], 0
call r13
mov dword [rax], 0x16
jmp 0x55632c
call qword [sym.imp.msvcrt.dll__errno]
xor r12d, r12d
mov dword [rax], 0x16
jmp 0x55632c
lea rdx, [0x008b6496]
call sub.msvcrt.dll_wcscpy
mov r10, qword [rbp - 0x38]
jmp 0x556458
mov ebx, 0x100
mov r9d, 0x100
jmp 0x5562c3
xor r12d, r12d
jmp 0x55632c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
je 0x5566b8
lea eax, [r14 + 2]
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.00704490
sub rsp, rax
lea rdx, [rsp + 0x40]
mov r10, rdx
cmp ebx, 0xe
jbe 0x55673c
mov rcx, r14
xor eax, eax
pxor xmm3, xmm3
and ecx, 0xfffffff0
movdqu xmm0, xmmword [rsi + 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 0x556523
mov rax, r14
and rax, 0xfffffffffffffff0
cmp r14, rax
je 0x5566b0
movsx cx, byte [rsi + rax]
mov word [rdx + rax*2], cx
add rax, 1
cmp r14, rax
jbe 0x5566b0
movsx cx, byte [rsi + rax]
mov word [rdx + rax*2], cx
lea rcx, [rax + 1]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 1]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 2]
cmp rcx, r14
jae 0x5566b0
movsx r8w, byte [rsi + rax + 2]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 3]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 3]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 4]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 4]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 5]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 5]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 6]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 6]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 7]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 7]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 8]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 8]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 9]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 9]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 0xa]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 0xa]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 0xb]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 0xb]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 0xc]
cmp r14, rcx
jbe 0x5566b0
movsx r8w, byte [rsi + rax + 0xc]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 0xd]
cmp r14, rcx
jbe 0x5566b0
movsx ax, byte [rsi + rax + 0xd]
mov word [rdx + rcx*2], ax
nop dword [rax + rax]
mov r11d, r14d
jmp 0x55641f
mov dword [rsp + 0x28], 0
mov r9d, r14d
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x20], 0
xor ecx, ecx
call r15
mov r11d, eax
test eax, eax
jle 0x5564ef
xor ecx, ecx
jmp 0x5563d6
call r13
mov dword [rax], 2
jmp 0x55632c
mov rcx, qword [rdi]
call fcn.00710f20
mov qword [rdi], 0
call r13
mov dword [rax], 0x16
jmp 0x55632c
mov ebx, 1
mov r9d, 1
jmp 0x5562c3
call r13
xor r12d, r12d
mov dword [rax], 0xc
jmp 0x55632c
movsx ax, byte [rsi]
mov word [rdx], ax
mov eax, 1
jmp 0x556574