Function at 0x18000caf0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7d8]
sub rsp, 0x8d8
mov rax, qword [0x18005d060]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov r12d, r9d
mov r13, r8
mov rsi, rdx
mov qword [rsp + 0x38], rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x70]
call fcn.180020550
mov edi, 0x100
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x5c0]
call fcn.180020550
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x3c0]
call fcn.180020550
mov rdx, rsi
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x5be], 0x5c
je 0x18000cbab
lea rdx, [0x180053bd0]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x180053c90]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
xor r14d, r14d
mov rdi, rax
nop dword [rax]
mov rdx, rsi
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x3be], 0x5c
je 0x18000cc1f
lea rdx, [0x180053bd0]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp - 0x64]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
test byte [rsp + 0x70], 0x10
je 0x18000cee7
lea rdx, [0x180053c3c]
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000cee7
lea rdx, [0x180053c74]
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000cee7
mov ecx, 0x410
call fcn.18001de28
mov r15, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
lea rax, [rbp + 0x3c0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18000cca1
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x48]
call fcn.18000f260
nop
lea rdi, [rsp + 0x48]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x60]
cmp r14, 8
cmovae rdi, rsi
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x18000cea3
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1c0]
call fcn.180020550
lea rcx, [0x180053bd0]
mov edx, 0x100
movzx eax, word [rcx]
cmp ax, dx
jae 0x18000cd61
movzx eax, al
mov byte [rbp + rax + 0x1c0], 1
add rcx, 2
lea rax, [0x180053bd2]
cmp rcx, rax
jne 0x18000cd03
lea rcx, [rbx - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdi + rax*2]
nop dword [rax]
movzx eax, word [rcx]
cmp ax, dx
jae 0x18000cd52
cmp byte [rbp + rax + 0x1c0], 0
jne 0x18000cdb4
cmp rcx, rdi
je 0x18000cea3
sub rcx, 2
jmp 0x18000cd40
lea rcx, [rbx - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdi + rax*2]
nop word [rax + rax]
mov edx, 1
lea rax, [0x180053bd0]
movzx r8d, word [rcx]
cmp word [rax], r8w
je 0x18000cdb4
add rax, 2
sub rdx, 1
jne 0x18000cd90
cmp rcx, rdi
je 0x18000cdab
sub rcx, 2
jmp 0x18000cd80
mov rcx, 0xffffffffffffffff
jmp 0x18000cdba
sub rcx, rdi
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x18000cea3
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
sub eax, r12d
movsxd r8, eax
mov eax, r12d
test r12d, r12d
jns 0x18000cdeb
lea eax, [r12 + 1]
sar eax, 1
cdqe
lea rdx, [rbp + 0x3c0]
lea rdx, [rdx + rax*2]
mov rcx, r15
call fcn.18001fe80
test r13, r13
jne 0x18000ce0e
mov eax, 0x10000
jmp 0x18000ce36
cmp dword [r13], 2
je 0x18000ce1c
mov eax, 0x80000
jmp 0x18000ce36
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13 + 8]
call fcn.1800142f0
mov dword [0x1800603f0], eax
mov r9d, r12d
mov r8, r13
lea rdx, [rbp + 0x3c0]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.18000caf0
mov rcx, r15
call fcn.18001ddb8
nop
cmp r14, 8
jb 0x18000d10d
lea rdx, [r14*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x18000ce96
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000d165
mov rcx, rsi
call fcn.18001ddb8
jmp 0x18000d10d
cmp r14, 8
jb 0x18000d108
lea rdx, [r14*2 + 2]
cmp rdx, 0x1000
mov rax, rsi
jb 0x18000ceda
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000d165
mov rcx, rsi
call fcn.18001ddb8
jmp 0x18000d108
lea rdx, [0x180053c3c]
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000d11a
lea rdx, [0x180053c74]
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000d11a
mov ecx, 0x410
call fcn.18001de28
mov r15, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
lea rax, [rbp + 0x3c0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18000cf50
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x48]
call fcn.18000f260
nop
lea rdi, [rsp + 0x48]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x60]
cmp r14, 8
cmovae rdi, rsi
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x18000d0fe
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x2c0]
call fcn.180020550
lea rcx, [0x180053bd0]
mov edx, 0x100
movzx eax, word [rcx]
cmp ax, dx
jae 0x18000d011
movzx eax, al
mov byte [rbp + rax + 0x2c0], 1
add rcx, 2
lea rax, [0x180053bd2]
cmp rcx, rax
jne 0x18000cfb2
lea rcx, [rbx - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdi + rax*2]
nop dword [rax + rax]
movzx eax, word [rcx]
cmp ax, dx
jae 0x18000d002
cmp byte [rbp + rax + 0x2c0], 0
jne 0x18000d064
cmp rcx, rdi
je 0x18000d0fe
sub rcx, 2
jmp 0x18000cff0
lea rcx, [rbx - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdi + rax*2]
nop word [rax + rax]
mov edx, 1
lea rax, [0x180053bd0]
movzx r8d, word [rcx]
cmp word [rax], r8w
je 0x18000d064
add rax, 2
sub rdx, 1
jne 0x18000d040
cmp rcx, rdi
je 0x18000d05b
sub rcx, 2
jmp 0x18000d030
mov rcx, 0xffffffffffffffff
jmp 0x18000d06a
sub rcx, rdi
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x18000d0fe
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
sub eax, r12d
movsxd r8, eax
mov eax, r12d
test r12d, r12d
jns 0x18000d09b
lea eax, [r12 + 1]
sar eax, 1
cdqe
lea rdx, [rbp + 0x3c0]
lea rdx, [rdx + rax*2]
mov rcx, r15
call fcn.18001fe80
test r13, r13
jne 0x18000d0be
mov eax, 0x10000
jmp 0x18000d0ea
cmp dword [r13], 2
je 0x18000d0cc
mov eax, 0x80000
jmp 0x18000d0ea
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8, [rbp + 0x3c0]
mov rdx, r15
mov rcx, qword [r13 + 8]
call fcn.1800142f0
mov dword [0x1800603f0], eax
mov rcx, r15
call fcn.18001ddb8
nop
jmp 0x18000cea3
cmp r14, 8
jae 0x18000cead
mov rbx, qword [rsp + 0x40]
xor r14d, r14d
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x18000d139
cmp dword [rbx + 0x8c8], 0
je 0x18000cbe0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x8d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.180024230
int3