Function at 0x140004650
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x78], rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor r13d, r13d
mov r12d, r13d
mov qword [rsp + 0x48], r13
cmp qword [rdx + 0x10], r13
jne 0x140004735
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov rdx, qword [rdx + 0x18]
cmp rdx, 8
jb 0x1400046f8
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x1400046f3
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004b30
mov rcx, r8
call fcn.14000acfc
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
mov rax, r15
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14000aa50
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
cmp qword [rdx + 0x18], 8
jb 0x140004742
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x14000475c
mov qword [r15], r13
mov qword [r15 + 8], r13
mov qword [r15 + 0x10], r13
jmp 0x140004973
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
mov rsi, qword [rdi + 0x10]
mov r14, rdi
mov rax, qword [rdi + 0x18]
cmp rax, 8
jb 0x14000477c
mov r14, qword [rdi]
cmp rsi, 8
jae 0x140004794
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x80], xmm0
mov ebx, 7
jmp 0x140004828
mov rbx, rsi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140004b3c
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400047fe
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140004b3c
mov rcx, rax
call fcn.14000aa70
mov rcx, rax
test rax, rax
je 0x140004b36
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000480d
test rcx, rcx
je 0x14000480a
call fcn.14000aa70
jmp 0x14000480d
mov rax, r13
mov qword [rbp - 0x80], rax
lea r8, [rsi*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.14000c9e0
mov rax, qword [rdi + 0x18]
mov rdx, rsi
mov r8, rbx
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], rdx
mov rcx, rdi
cmp rax, 8
jb 0x140004842
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x1400048a5
mov rax, r8
sub rax, rsi
cmp rax, 1
jb 0x14000487f
lea rcx, [rsi + 1]
mov qword [rbp - 0x70], rcx
lea rax, [rbp - 0x80]
cmp r8, 8
cmovae rax, qword [rbp - 0x80]
mov edx, 0x5c
mov word [rax + rsi*2], dx
mov word [rax + rcx*2], r13w
jmp 0x14000489d
mov qword [rsp + 0x20], 1
lea r9, [0x14002d1a8]
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.1400082d0
mov rdx, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x68]
mov rax, rbx
sub rax, rdx
cmp rax, 1
jb 0x1400048d8
lea rcx, [rdx + 1]
mov qword [rbp - 0x70], rcx
lea rax, [rbp - 0x80]
cmp rbx, 8
cmovae rax, qword [rbp - 0x80]
mov r8d, 0x2a
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], r13w
jmp 0x1400048f6
mov qword [rsp + 0x20], 1
lea r9, [0x14002d770]
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.1400082d0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000497c
mov qword [r15], r13
mov qword [r15 + 8], r13
mov qword [r15 + 0x10], r13
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140004962
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000495d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b36
call fcn.14000acfc
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
mov rdx, qword [rdi + 0x18]
jmp 0x1400046bd
mov rbx, qword [rsp + 0x40]
test byte [rbp - 0x40], 0x10
je 0x140004a9d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], 7
lea rax, [rbp - 0x14]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400049b0
lea rdx, [rbp - 0x14]
lea rcx, [rsp + 0x50]
call fcn.140001b10
lea rcx, [rsp + 0x50]
call fcn.140004260
test al, al
je 0x140004a9d
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r13w
lea rax, [rbp - 0x14]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140004a00
lea rdx, [rbp - 0x14]
lea rcx, [rbp - 0x60]
call fcn.140001b10
nop
cmp rbx, r12
je 0x140004a42
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rbx + 0x10], xmm1
mov eax, 7
mov word [rbp - 0x60], r13w
add rbx, 0x20
mov qword [rsp + 0x40], rbx
jmp 0x140004a61
lea r8, [rbp - 0x60]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140007ea0
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbp - 0x48]
cmp rax, 8
jb 0x140004a9d
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b42
call fcn.14000acfc
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140004981
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r8, rbx
mov rsi, qword [rsp + 0x38]
sub r8, rsi
sar r8, 5
cmp r8, 1
jbe 0x140004ae1
movzx r9d, byte [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
call fcn.140008540
mov qword [r15], rsi
mov qword [r15 + 8], rbx
mov qword [r15 + 0x10], r12
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140004962
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000495d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b36
jmp 0x14000495d
call fcn.140010f38
nop
call fcn.140010f38
int3
call fcn.140001200
nop
call fcn.140010f38
int3