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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140091028]
xor rax, rbp
mov qword [rbp + 0x10], rax
lea r13, [rcx + 4]
lea rax, [rcx + 0x2b0]
mov qword [rbp - 0x40], rax
lea r15, [rcx + 0x30]
lea rsi, [rcx + 0x260]
lea r12, [rcx + 0x288]
lea rbx, [rbp - 0x10]
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x50], r15
jmp 0x140028dc8
mov rcx, rbx
call fcn.140010f50
cmp byte [rdi], 0
je 0x140028e00
mov rcx, qword [rdi + 0x258]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140028e80
cmp qword [rdi + 0x258], 0xffffffffffffffff
jne 0x140028f93
jmp 0x140028fb0
mov rdx, qword [rdi + 0x2c8]
cmp qword [rdi + 0x2c0], rdx
je 0x140029166
test rdx, rdx
mov rax, qword [rdi + 0x2b8]
cmove rdx, rax
add rdx, 0xffffffffffffffff
cmp rax, rdx
jb 0x14002919c
shl rdx, 5
add rdx, qword [rdi + 0x2b0]
mov rcx, rsi
call fcn.140010fc0
mov rax, qword [rdi + 0x2b8]
mov rdx, qword [rdi + 0x2c8]
test rdx, rdx
je 0x140028e9d
lea rcx, [rdx - 1]
mov qword [rdi + 0x2c8], rcx
cmp rax, rdx
jb 0x1400291b1
cmp rax, rcx
jae 0x140028eb4
jmp 0x1400291a3
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140028fb0
lea rcx, [rax - 1]
mov qword [rdi + 0x2c8], rcx
mov rdx, rax
cmp rax, rcx
jb 0x1400291a3
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x1400291aa
shl rcx, 5
mov rsi, qword [rbp - 0x40]
add rcx, qword [rsi]
call fcn.140010f50
mov rcx, rsi
call fcn.140029610
mov eax, dword [rdi + 0x2a8]
cmp eax, 1
je 0x140028f17
test eax, eax
mov rsi, qword [rbp - 0x38]
jne 0x140028f3f
cmp qword [rdi + 0x2a0], 7
mov rax, r12
jbe 0x140028f06
mov rax, qword [rdi + 0x288]
mov qword [rbp - 0x20], rax
mov rax, qword [rdi + 0x298]
mov qword [rbp - 0x18], rax
jmp 0x140028f2e
lea rax, [0x140078d40]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
mov rsi, qword [rbp - 0x38]
mov rcx, rsi
mov rdx, rbx
lea r8, [rbp - 0x20]
call fcn.1400124a0
jmp 0x140028f47
mov rcx, rbx
call fcn.140010d70
cmp qword [rbp + 8], 7
mov rcx, rbx
jbe 0x140028f55
mov rcx, qword [rbp - 0x10]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
xor r9d, r9d
mov r8, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, rbx
call fcn.140010f50
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x140028fb0
mov qword [rbp - 0x30], r15
cmp word [r15], 0
je 0x140028ff3
xor eax, eax
cmp word [rdi + rax*2 + 0x32], 0
lea rax, [rax + 1]
jne 0x140028fa0
jmp 0x140028ff5
mov byte [rdi], 0
cmp dword [rdi + 0x2a8], 0
jne 0x140028dc8
mov rcx, qword [rdi + 0x2a0]
test rcx, rcx
je 0x1400290be
mov rax, r12
cmp rcx, 8
jb 0x140028fdd
mov rax, qword [r12]
mov qword [rdi + 0x298], 1
mov dword [rax], 0x2a
jmp 0x140028dc8
xor eax, eax
mov qword [rbp - 0x28], rax
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.140010ea0
mov rcx, rdi
mov rdx, rbx
call fcn.140029700
test al, al
jne 0x140028dc0
mov r8, rbx
mov r15, r12
mov rdx, r14
mov r12d, dword [rdi + 4]
mov rcx, rsi
call fcn.140013bb0
test r12b, 0x10
je 0x140029100
cmp byte [rdi + 0x280], 0
je 0x140029100
mov rax, r14
cmp qword [r14 + 0x18], 7
mov rcx, r14
jbe 0x140029054
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x140029100
mov edx, 1
mov rcx, qword [rbp - 0x40]
call fcn.1400292e0
mov rcx, qword [rdi + 0x2c8]
cmp qword [rdi + 0x2b8], rcx
jb 0x1400291b8
shl rcx, 5
add rcx, qword [rdi + 0x2b0]
mov rdx, r14
call fcn.140010d90
mov rax, qword [rdi + 0x2b8]
mov rcx, qword [rdi + 0x2c8]
lea rsi, [rax - 1]
cmp rcx, rsi
jne 0x1400290d7
mov qword [rdi + 0x2c8], 0
jmp 0x1400290e7
mov edx, 1
mov rcx, r12
lea r9, [0x140078d40]
call fcn.14000f850
jmp 0x140028dc8
mov rdx, rcx
add rdx, 1
mov qword [rdi + 0x2c8], rdx
jne 0x1400290ea
mov rcx, rsi
cmp rax, rcx
mov r14, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x38]
jb 0x1400291bf
nop dword [rax + rax]
and r12d, 0x10
shr r12d, 4
mov rcx, rdi
mov edx, r12d
call fcn.1400298c0
test al, al
mov r12, r15
mov r15, qword [rbp - 0x50]
je 0x140029159
mov eax, dword [rdi + 0x2a8]
cmp eax, 1
je 0x14002912f
test eax, eax
jne 0x140029159
jmp 0x140029170
cmp qword [rdi + 0x2a0], 8
mov rdx, r12
jb 0x140029140
mov rdx, qword [r12]
cmp qword [rbp + 8], 7
mov rcx, rbx
jbe 0x14002914e
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x140029170
mov rcx, r14
call fcn.140010f50
jmp 0x140028dc0
mov rcx, r14
call fcn.140010d70
jmp 0x140029179
lea rcx, [rbp - 0x10]
call fcn.140010f50
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.140051fd0
mov rax, r14
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
int3
int3
int3
int3
int3