Function at 0x140004740
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 [0x140035030]
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 0x140004825
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov rdx, qword [rdx + 0x18]
cmp rdx, 8
jb 0x1400047e8
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x1400047e3
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004c20
mov rcx, r8
call fcn.14000bb4c
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.14000b8a0
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 0x140004832
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x14000484c
mov qword [r15], r13
mov qword [r15 + 8], r13
mov qword [r15 + 0x10], r13
jmp 0x140004a63
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 0x14000486c
mov r14, qword [rdi]
cmp rsi, 8
jae 0x140004884
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x80], xmm0
mov ebx, 7
jmp 0x140004918
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 0x140004c2c
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400048ee
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140004c2c
mov rcx, rax
call fcn.14000b8c0
mov rcx, rax
test rax, rax
je 0x140004c26
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400048fd
test rcx, rcx
je 0x1400048fa
call fcn.14000b8c0
jmp 0x1400048fd
mov rax, r13
mov qword [rbp - 0x80], rax
lea r8, [rsi*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.14000d9d0
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 0x140004932
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x140004995
mov rax, r8
sub rax, rsi
cmp rax, 1
jb 0x14000496f
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 0x14000498d
mov qword [rsp + 0x20], 1
lea r9, [0x14002f2f8]
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.1400099e0
mov rdx, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x68]
mov rax, rbx
sub rax, rdx
cmp rax, 1
jb 0x1400049c8
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 0x1400049e6
mov qword [rsp + 0x20], 1
lea r9, [0x14002f920]
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.1400099e0
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 0x140004a6c
mov qword [r15], r13
mov qword [r15 + 8], r13
mov qword [r15 + 0x10], r13
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140004a52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004c26
call fcn.14000bb4c
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
mov rdx, qword [rdi + 0x18]
jmp 0x1400047ad
mov rbx, qword [rsp + 0x40]
test byte [rbp - 0x40], 0x10
je 0x140004b8d
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 0x140004aa0
lea rdx, [rbp - 0x14]
lea rcx, [rsp + 0x50]
call fcn.140001ae0
lea rcx, [rsp + 0x50]
call fcn.140004410
test al, al
je 0x140004b8d
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 0x140004af0
lea rdx, [rbp - 0x14]
lea rcx, [rbp - 0x60]
call fcn.140001ae0
nop
cmp rbx, r12
je 0x140004b32
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 0x140004b51
lea r8, [rbp - 0x60]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400095b0
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbp - 0x48]
cmp rax, 8
jb 0x140004b8d
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004c32
call fcn.14000bb4c
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140004a71
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 0x140004bd1
movzx r9d, byte [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
call fcn.140009c50
mov qword [r15], rsi
mov qword [r15 + 8], rbx
mov qword [r15 + 0x10], r12
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140004a52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004c26
jmp 0x140004a4d
call fcn.140011f28
nop
call fcn.140011f28
int3
call fcn.140001140
nop
call fcn.140011f28
int3