Function at 0x1400749d0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov dword [rsp + 0x68], r8d
mov ebx, edx
mov rdi, rcx
mov rax, qword [rbp + 0x470]
mov qword [rbp - 0x80], rax
xor r15d, r15d
mov r12d, r15d
mov dword [rsp + 0x20], r15d
mov esi, r15d
mov qword [rsp + 0x28], r15
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsp + 0x60]
mov ecx, ebx
movabs rdx, 0xc92a69c000
imul rcx, rdx
sub rax, rcx
mov dword [rsp + 0x60], eax
shr rax, 0x20
mov dword [rsp + 0x64], eax
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x140074a66
mov ebx, 0x103
lfence
mov r8, rdi
lea edx, [rbx + 1]
lea rcx, [rbp + 0x200]
cmp rax, rdx
jae 0x140074a91
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x140074aa2
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x406], r15w
xor edx, edx
lea rcx, [rbp + 0x200]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r13, rax
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x200]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x140074ac7
lea rax, [rcx + 1]
cmp rax, 0x104
jae 0x140074b25
lea rax, [rcx + 6]
lea r8, str..dat
mov edx, 0x104
cmp rax, rdx
ja 0x140074b00
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x140074b25
lfence
sub rbx, rcx
sub rdx, rcx
lea rax, [rbp + 0x200]
lea rcx, [rax + rcx*2]
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x406], r15w
lea rax, vtable.CArrayNoThrow_struct_FileInfo__struct_FileInfo_const____ptr64_.0
mov qword [rsp + 0x30], rax
mov rbx, r15
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x50], r15
mov r14, r15
mov qword [rsp + 0x48], r15
mov rdi, r15
mov qword [rsp + 0x40], r15
lea rax, vtable.CSortedArray_struct_FileInfo__struct_FileInfo_const____ptr64_.0
mov qword [rsp + 0x30], rax
lea rax, [0x1400749c0]
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
je 0x140074e54
test byte [rbp - 0x50], 0x10
jne 0x140074e18
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x3c]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x140074c40
lea rcx, [rbp + 0x200]
mov rax, r13
sub rax, rcx
sar rax, 1
mov esi, 0x104
sub rsi, rax
je 0x140074c13
lea rcx, [rbp - 0x24]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140074bd0
lfence
lea r8, [rbp - 0x24]
mov rdx, rsi
mov rcx, r13
cmp rax, rsi
jae 0x140074bf4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x140074c04
lea r9, [rsi - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [r13 + rsi*2 - 2], r15w
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
movzx r9d, byte [rbp + 0x478]
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0x200]
call fcn.1400747c0
or r12d, eax
mov dword [rsp + 0x20], r12d
mov rsi, qword [rsp + 0x28]
jmp 0x140074e18
mov ecx, dword [rbp - 0x34]
shl rcx, 0x20
mov eax, dword [rbp - 0x30]
add rcx, rax
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rcx
mov rax, qword [rbp - 0x3c]
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x24]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rcx, rax
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140074e44
mov r13, rdi
test rdi, rdi
js 0x140074e3e
lea rsi, [rdi + 1]
test rsi, rsi
js 0x140074e39
jne 0x140074cbd
test rbx, rbx
je 0x140074ca8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, r15
mov qword [rsp + 0x38], rbx
mov r14, r15
mov qword [rsp + 0x48], r15
mov rdi, r15
mov qword [rsp + 0x40], r15
jmp 0x140074de7
test rbx, rbx
jne 0x140074d0f
lfence
mov r14, rsi
test rsi, rsi
cmovle r14, r15
lea rcx, [r14 + r14*2]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140074e30
lea r8, [rsi + rsi*2]
shl r8, 3
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
jmp 0x140074de4
cmp rsi, r14
jg 0x140074d47
cmp rsi, r13
jle 0x140074d3d
mov rdx, rsi
sub rdx, rdi
lea rax, [rdi*2]
add rax, r13
lea rcx, [rbx + rax*8]
lea r8, [rdx + rdx*2]
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x40], rsi
jmp 0x140074de4
mov rax, r13
cqo
and edx, 7
add rax, rdx
sar rax, 3
cmp rax, 4
jge 0x140074d63
mov eax, 4
jmp 0x140074d6f
mov edx, 0x400
cmp rax, rdx
cmovg rax, rdx
lea r12, [r14 + rax]
cmp rsi, r12
cmovge r12, rsi
cmp r12, r14
jl 0x140074e39
lfence
lea rdx, [r12 + r12*2]
shl rdx, 3
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdi, rax
test rax, rax
je 0x140074e30
mov rdx, rsi
mov rax, qword [rsp + 0x40]
sub rdx, rax
lea rax, [rax + rax*2]
lea rcx, [rdi + rax*8]
lea r8, [rdx + rdx*2]
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rbx, rdi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
mov r14, r12
mov qword [rsp + 0x48], r12
mov r12d, dword [rsp + 0x20]
mov rdi, rsi
lea rax, [r13*2]
add rax, r13
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx + rax*8], xmm0
movsd xmm1, qword [rbp - 0x60]
movsd qword [rbx + rax*8 + 0x10], xmm1
mov rsi, qword [rsp + 0x28]
add rsi, qword [rbp - 0x78]
mov qword [rsp + 0x28], rsi
mov r13, qword [rsp + 0x78]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140074e44
jmp 0x140074b86
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rbp - 0x60]
mov rsi, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r13, qword [rsp + 0x78]
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140074e65
mov r12d, eax
shl r12, 0x14
jmp 0x140074e6c
mov r12, 0xffffffffffffffff
cmp rsi, r12
jbe 0x140074f4a
lea r9, [0x1400749c0]
mov r8d, 0x18
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov r14d, r15d
test rdi, rdi
jle 0x140074f6b
nop word [rax + rax]
cmp rsi, r12
jbe 0x140074f45
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0x200]
mov rax, r13
sub rax, rcx
sar rax, 1
mov esi, 0x104
sub rsi, rax
je 0x140074f06
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r8 + rax*2], 0
jne 0x140074ed0
lfence
mov rdx, rsi
mov rcx, r13
cmp rax, rsi
jae 0x140074ef1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x140074f01
lea r9, [rsi - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [r13 + rsi*2 - 2], r15w
mov rdi, qword [rsp + 0x40]
movzx r9d, byte [rbp + 0x478]
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0x200]
call fcn.1400747c0
or dword [rsp + 0x20], eax
mov rsi, qword [rsp + 0x28]
sub rsi, qword [rbx]
mov qword [rsp + 0x28], rsi
inc r14d
add rbx, 0x18
movsxd rax, r14d
cmp rax, rdi
jl 0x140074ea0
mov rbx, qword [rsp + 0x38]
test rdi, rdi
jle 0x140074f6b
lea rsi, [rbx + 0x10]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc r15d
lea rsi, [rsi + 0x18]
movsxd rax, r15d
cmp rax, rdi
jl 0x140074f53
lea rax, vtable.CSortedArray_struct_FileInfo__struct_FileInfo_const____ptr64_.0
mov qword [rsp + 0x30], rax
lea rax, vtable.CArrayNoThrow_struct_FileInfo__struct_FileInfo_const____ptr64_.0
mov qword [rsp + 0x30], rax
test rbx, rbx
je 0x140074f91
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1401c5190
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret