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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x220], rbx
mov rax, qword [0x1400425e0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r13d, r8d
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
cmp qword [rcx + 0x10], 0
jne 0x14001675d
cmp qword [rcx + 0x18], 0x10
jb 0x140016736
mov rcx, qword [rcx]
call fcn.140018d84
mov qword [rdi + 0x18], 0xf
xor esi, esi
mov qword [rdi + 0x10], rsi
mov byte [rdi], sil
cmp qword [r14 + 0x18], 0x10
jb 0x140016756
mov rcx, qword [r14]
call fcn.140018d84
xor eax, eax
jmp 0x14001697c
xor r8d, r8d
mov dl, 0x2f
call fcn.140018450
mov r15d, 1
mov rbx, qword [rdi + 0x10]
or r8, 0xffffffffffffffff
mov rcx, rdi
cmp rax, r8
je 0x140016796
mov dl, 0x2f
call fcn.1400185e0
lea rcx, [rbx - 1]
cmp rax, rcx
je 0x1400167b8
lea rdx, [0x140034f10]
jmp 0x1400167ad
mov dl, 0x5c
call fcn.1400185e0
lea rcx, [rbx - 1]
cmp rax, rcx
je 0x1400167b8
lea rdx, [0x1400332e0]
mov r8, r15
mov rcx, rdi
call fcn.14000e580
mov r8, r14
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140011910
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
xor esi, esi
cmp rax, 0xffffffffffffffff
je 0x140016927
lea r8, [rbp - 0x54]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1400015e0
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x140016881
cmp qword [rsp + 0x50], 0x10
jb 0x140016823
mov rcx, qword [rsp + 0x38]
call fcn.140018d84
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x38], sil
cmp qword [rbx + 0x18], 0x10
jae 0x140016855
mov r8, qword [rbx + 0x10]
inc r8
je 0x140016860
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140019190
jmp 0x140016860
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
mov qword [rbx], rsi
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x50], rax
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
cmp qword [rsp + 0x70], 0x10
jb 0x140016893
mov rcx, qword [rsp + 0x58]
call fcn.140018d84
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x140016908
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
mov edx, 0x80
call fcn.14001b6c4
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
call fcn.14001ade4
test eax, eax
je 0x140016908
test r13d, r13d
je 0x140016905
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov r15d, esi
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400167f3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x50], 0x10
jb 0x140016939
mov rcx, qword [rsp + 0x38]
call fcn.140018d84
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x38], 0
cmp qword [rdi + 0x18], 0x10
jb 0x14001695b
mov rcx, qword [rdi]
call fcn.140018d84
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov byte [rdi], 0
cmp qword [r14 + 0x18], 0x10
jb 0x140016979
mov rcx, qword [r14]
call fcn.140018d84
mov eax, r15d
mov qword [r14 + 0x18], 0xf
mov qword [r14 + 0x10], rsi
mov byte [r14], 0
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14001c4b0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret