Function at 0x7ada60
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 0x7adce0
test rdx, rdx
je 0x7adce0
mov r13, qword [sym.imp.msvcrt.dll__errno]
call r13
mov r12, qword [rdi]
mov dword [rax], 0
test r12, r12
je 0x7adb80
mov rcx, qword [r12 + 0x250]
mov rdx, r12
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x7add16
mov rsi, qword [rdi]
cmp word [rsi + 0x2c], 0
lea r8, [rsi + 0x2c]
je 0x7adf5b
xor eax, eax
jmp 0x7adaf0
mov rax, rdx
cmp rdx, 0xff
je 0x7add06
lea rdx, [rax + 1]
cmp word [rsi + rdx*2 + 0x2c], 0
jne 0x7adae0
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 0x7adb58
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 0x7adb40
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 0x7adf30
mov rdx, rsi
xor eax, eax
jmp 0x7adb98
test eax, eax
js 0x7adf30
add rdx, 1
add eax, 1
cmp byte [rdx], 0
jne 0x7adb90
and eax, 0x7fffffff
mov r14d, eax
lea rax, [r14 - 1]
mov rbx, r14
cmp rax, 0x7ffffffb
ja 0x7adf30
mov edx, 1
mov ecx, 0x358
call sub.msvcrt.dll_calloc
mov qword [rdi], rax
test rax, rax
je 0x7adf6b
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 0x7add1e
lea eax, [r11 + 2]
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.00911360
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 0x7adf3e
lea ecx, [r11 - 1]
movsxd rcx, ecx
add rcx, rcx
movzx eax, word [r10 + rcx - 2]
cmp ax, 0x2a
je 0x7adc98
add rcx, r10
mov qword [rbp - 0x38], r10
cmp ax, 0x2f
je 0x7adcf4
cmp ax, 0x5c
je 0x7adcf4
lea rdx, [0x00d37e90]
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 0x7adac8
mov rcx, rsi
call fcn.00911ec8
mov qword [rdi], 0
call r13
mov dword [rax], 0x16
jmp 0x7adb6c
call qword [sym.imp.msvcrt.dll__errno]
xor r12d, r12d
mov dword [rax], 0x16
jmp 0x7adb6c
lea rdx, [0x00d37e96]
call sub.msvcrt.dll_wcscpy
mov r10, qword [rbp - 0x38]
jmp 0x7adc98
mov ebx, 0x100
mov r9d, 0x100
jmp 0x7adb03
xor r12d, r12d
jmp 0x7adb6c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x459
je 0x7adef8
lea eax, [r14 + 2]
cdqe
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.00911360
sub rsp, rax
lea rdx, [rsp + 0x40]
mov r10, rdx
cmp ebx, 0xe
jbe 0x7adf7c
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 0x7add63
mov rax, r14
and rax, 0xfffffffffffffff0
cmp r14, rax
je 0x7adef0
movsx cx, byte [rsi + rax]
mov word [rdx + rax*2], cx
add rax, 1
cmp r14, rax
jbe 0x7adef0
movsx cx, byte [rsi + rax]
mov word [rdx + rax*2], cx
lea rcx, [rax + 1]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 1]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 2]
cmp rcx, r14
jae 0x7adef0
movsx r8w, byte [rsi + rax + 2]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 3]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 3]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 4]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 4]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 5]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 5]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 6]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 6]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 7]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 7]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 8]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 8]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 9]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 9]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 0xa]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 0xa]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 0xb]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 0xb]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 0xc]
cmp r14, rcx
jbe 0x7adef0
movsx r8w, byte [rsi + rax + 0xc]
mov word [rdx + rcx*2], r8w
lea rcx, [rax + 0xd]
cmp r14, rcx
jbe 0x7adef0
movsx ax, byte [rsi + rax + 0xd]
mov word [rdx + rcx*2], ax
nop dword [rax + rax]
mov r11d, r14d
jmp 0x7adc5f
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 0x7add2f
xor ecx, ecx
jmp 0x7adc16
call r13
mov dword [rax], 2
jmp 0x7adb6c
mov rcx, qword [rdi]
call fcn.00911ec8
mov qword [rdi], 0
call r13
mov dword [rax], 0x16
jmp 0x7adb6c
mov ebx, 1
mov r9d, 1
jmp 0x7adb03
call r13
xor r12d, r12d
mov dword [rax], 0xc
jmp 0x7adb6c
movsx ax, byte [rsi]
mov word [rdx], ax
mov eax, 1
jmp 0x7addb4