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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], rdx
mov rdi, rcx
lea r15, [rcx + 4]
lea rax, [rcx + 0x2b0]
mov qword [rsp + 0x48], rax
lea r13, [rcx + 0x30]
lea rax, [rcx + 0x260]
mov qword [rsp + 0x40], rax
lea rbx, [rcx + 0x288]
lea rbp, [rsp + 0x70]
lea r14, [rsp + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x140047358
mov rcx, rbp
call fcn.1400289c0
cmp byte [rdi], 0
je 0x140047390
mov rcx, qword [rdi + 0x258]
mov rdx, r15
call r12
test eax, eax
je 0x140047440
cmp qword [rdi + 0x258], 0xffffffffffffffff
jne 0x1400474e3
jmp 0x140047600
mov rax, qword [rdi + 0x2c8]
cmp qword [rdi + 0x2c0], rax
je 0x140047694
test rax, rax
jne 0x1400473b0
mov rax, qword [rdi + 0x2b8]
shl rax, 5
mov rcx, qword [rdi + 0x2b0]
lea rdx, [rcx + rax]
add rdx, 0xffffffffffffffe0
mov rcx, qword [rsp + 0x40]
call fcn.140028a30
mov rcx, qword [rdi + 0x2c8]
test rcx, rcx
jne 0x1400473e0
mov rcx, qword [rdi + 0x2b8]
add rcx, 0xffffffffffffffff
mov qword [rdi + 0x2c8], rcx
shl rcx, 5
add rcx, qword [rdi + 0x2b0]
call fcn.1400289c0
mov rcx, qword [rsp + 0x48]
call fcn.1400479a0
mov eax, dword [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
cmp eax, 1
je 0x14004745d
test eax, eax
jne 0x140047486
cmp qword [rdi + 0x2a0], 7
mov rax, rbx
jbe 0x140047428
mov rax, qword [rdi + 0x288]
mov qword [rsp + 0x60], rax
mov rax, qword [rdi + 0x298]
mov qword [rsp + 0x68], rax
jmp 0x140047472
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x140047600
lea rax, [0x14014fa44]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov rcx, qword [rsp + 0x40]
mov rdx, rbp
lea r8, [rsp + 0x60]
call fcn.14002a080
jmp 0x14004748e
mov rcx, rbp
call fcn.140028890
cmp qword [rsp + 0x88], 7
mov rcx, rbp
jbe 0x1400474a1
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
xor r9d, r9d
mov r8, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, rbp
call fcn.1400289c0
cmp qword [rdi + 0x258], 0xffffffffffffffff
je 0x140047600
mov qword [rsp + 0x50], r13
mov rcx, r13
call fcn.140120930
mov qword [rsp + 0x58], rax
mov rcx, rbp
mov rdx, r14
call fcn.140028910
mov rcx, rdi
mov rdx, rbp
call fcn.14004aa20
test al, al
jne 0x140047350
mov rsi, r14
mov r14d, dword [rdi + 4]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov r8, rbp
call fcn.14002b200
test r14b, 0x10
je 0x1400475c0
cmp byte [rdi + 0x280], 0
je 0x1400475c0
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x18], 7
mov rcx, rax
jbe 0x140047555
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x1400475c0
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.140047790
mov rcx, qword [rdi + 0x2c8]
shl rcx, 5
add rcx, qword [rdi + 0x2b0]
mov rdx, qword [rsp + 0x38]
call fcn.1400288b0
mov rax, qword [rdi + 0x2b8]
mov rcx, qword [rdi + 0x2c8]
add rax, 0xffffffffffffffff
cmp rcx, rax
lea rax, [rcx + 1]
mov ecx, 0
cmove rax, rcx
mov qword [rdi + 0x2c8], rax
nop word cs:[rax + rax]
and r14d, 0x10
shr r14d, 4
mov rcx, rdi
mov edx, r14d
call fcn.14004abd0
test al, al
mov r14, rsi
je 0x140047685
mov eax, dword [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
cmp eax, 1
je 0x140047657
test eax, eax
jne 0x140047685
jmp 0x1400476a3
mov byte [rdi], 0
cmp dword [rdi + reloc.SHELL32.dll_IsUserAnAdmin], 0
jne 0x140047358
mov rcx, qword [rdi + 0x2a0]
test rcx, rcx
je 0x14004763e
mov rax, rbx
cmp rcx, 8
jb 0x140047628
mov rax, qword [rbx]
mov qword [rdi + 0x298], 1
mov dword [rax], 0x2a
jmp 0x140047358
mov edx, 1
mov rcx, rbx
lea r9, [0x14014fa44]
call fcn.140005da0
jmp 0x140047358
cmp qword [rdi + 0x2a0], 8
mov rdx, rbx
jb 0x140047667
mov rdx, qword [rbx]
cmp qword [rsp + 0x88], 7
mov rcx, rbp
jbe 0x14004767a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x1400476a3
mov rcx, qword [rsp + 0x38]
call fcn.1400289c0
jmp 0x140047350
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140028890
jmp 0x1400476b2
lea rcx, [rsp + 0x70]
call fcn.1400289c0
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14011a370
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret