Function at 0x14005c9e0
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, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rbp
mov qword [rbp + 0x20], rax
lea rcx, [rbp - 0x28]
xor edx, edx
call fcn.14004f370
lea r15, [rdi + 4]
lea rax, [rdi + 0x2b0]
mov qword [rbp - 0x48], rax
lea rax, [rdi + 0x260]
mov qword [rbp - 0x40], rax
lea r12, [rdi + 0x288]
lea r14, [rdi + 0x30]
mov r13, rbp
mov qword [rbp - 0x50], rsi
jmp 0x14005ca58
mov rcx, r13
call fcn.140032460
cmp byte [rdi], 0
je 0x14005ca90
mov rcx, qword [rdi + 0x258]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14005cb10
cmp qword [rdi + 0x258], 0xffffffffffffffff
jne 0x14005cc35
jmp 0x14005cc60
mov rdx, qword [rdi + 0x2c8]
cmp qword [rdi + 0x2c0], rdx
je 0x14005ce12
test rdx, rdx
mov rax, qword [rdi + 0x2b8]
cmove rdx, rax
add rdx, 0xffffffffffffffff
cmp rax, rdx
jb 0x14005ce50
shl rdx, 5
add rdx, qword [rdi + 0x2b0]
mov rcx, qword [rbp - 0x40]
call fcn.1400324d0
mov rax, qword [rdi + 0x2b8]
mov rdx, qword [rdi + 0x2c8]
test rdx, rdx
je 0x14005cb2d
lea rcx, [rdx - 1]
mov qword [rdi + 0x2c8], rcx
cmp rax, rdx
jb 0x14005ce65
cmp rax, rcx
jae 0x14005cb44
jmp 0x14005ce57
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x14005cc60
lea rcx, [rax - 1]
mov qword [rdi + 0x2c8], rcx
mov rdx, rax
cmp rax, rcx
jb 0x14005ce57
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x14005ce5e
mov rbx, rsi
shl rcx, 5
mov rsi, qword [rbp - 0x48]
add rcx, qword [rsi]
call fcn.140032460
mov rcx, rsi
call fcn.14005d2b0
mov eax, dword [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
cmp eax, 1
je 0x14005cbb9
test eax, eax
mov rsi, rbx
jne 0x14005cbe1
cmp qword [rdi + 0x2a0], 7
mov rax, r12
jbe 0x14005cb98
mov rax, qword [rdi + 0x288]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi + 0x298]
mov qword [rbp - 8], rax
mov rcx, qword [rbp - 0x40]
mov rdx, r13
lea r8, [rbp - 0x10]
call fcn.140033d90
jmp 0x14005cbe9
lea rax, [0x1401a0642]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
mov rcx, qword [rbp - 0x40]
mov rdx, r13
lea r8, [rbp - 0x10]
call fcn.140033d90
mov rsi, rbx
jmp 0x14005cbe9
mov rcx, r13
call fcn.140032280
cmp qword [rbp + 0x18], 7
mov rcx, r13
jbe 0x14005cbf7
mov rcx, qword [rbp]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
mov r8, r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, r13
call fcn.140032460
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x14005cc60
mov qword [rbp - 0x38], r14
cmp word [r14], 0
je 0x14005cca3
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
cmp word [rdi + rax*2 + 0x32], 0
lea rax, [rax + 1]
jne 0x14005cc50
jmp 0x14005cca5
mov byte [rdi], 0
cmp dword [rdi + reloc.SHELL32.dll_IsUserAnAdmin], 0
jne 0x14005ca58
mov rcx, qword [rdi + 0x2a0]
test rcx, rcx
je 0x14005cd6c
mov rax, r12
cmp rcx, 8
jb 0x14005cc8d
mov rax, qword [r12]
mov qword [rdi + 0x298], 1
mov dword [rax], 0x2a
jmp 0x14005ca58
xor eax, eax
mov qword [rbp - 0x30], rax
mov rcx, r13
lea rdx, [rbp - 0x38]
call fcn.1400323b0
mov rcx, rdi
mov rdx, r13
call fcn.1400888b0
test al, al
jne 0x14005ca50
mov rbx, r12
mov r12d, dword [rdi + 4]
mov rcx, qword [rbp - 0x40]
mov rdx, rsi
mov r8, r13
call fcn.140035080
test r12b, 0x10
je 0x14005cdb0
cmp byte [rdi + 0x280], 0
je 0x14005cdb0
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14005cd02
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x14005cdb0
mov edx, 1
mov rcx, qword [rbp - 0x48]
call fcn.14005cf90
mov rcx, qword [rdi + 0x2c8]
cmp qword [rdi + 0x2b8], rcx
jb 0x14005ce6c
shl rcx, 5
add rcx, qword [rdi + 0x2b0]
mov rdx, rsi
call fcn.1400322a0
mov rax, qword [rdi + 0x2b8]
mov rcx, qword [rdi + 0x2c8]
lea rsi, [rax - 1]
cmp rcx, rsi
jne 0x14005cd85
mov qword [rdi + 0x2c8], 0
jmp 0x14005cd94
mov edx, 1
mov rcx, r12
lea r9, [0x1401a0642]
call fcn.140006110
jmp 0x14005ca58
mov rdx, rcx
inc rdx
mov qword [rdi + 0x2c8], rdx
jne 0x14005cd97
mov rcx, rsi
cmp rax, rcx
mov rsi, qword [rbp - 0x50]
jb 0x14005ce73
nop word cs:[rax + rax]
nop
and r12d, 0x10
shr r12d, 4
mov rcx, rdi
mov edx, r12d
call fcn.140088a60
test al, al
mov r12, rbx
je 0x14005ce05
mov eax, dword [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
cmp eax, 1
je 0x14005cddb
test eax, eax
jne 0x14005ce05
jmp 0x14005ce1c
cmp qword [rdi + 0x2a0], 8
mov rdx, r12
jb 0x14005cdec
mov rdx, qword [r12]
cmp qword [rbp + 0x18], 7
mov rcx, r13
jbe 0x14005cdfa
mov rcx, qword [rbp]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x14005ce1c
mov rcx, rsi
call fcn.140032460
jmp 0x14005ca50
mov rcx, rsi
call fcn.140032280
jmp 0x14005ce24
mov rcx, rbp
call fcn.140032460
lea rcx, [rbp - 0x28]
call fcn.14004f470
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.14014b5e0
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
int3
int3
int3
int3
int3