Function at 0x14006b950
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4f0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov r14, rcx
mov rax, qword [rcx + 0x40]
mov rbx, qword [rax + 0x178]
xor r12d, r12d
or r13, 0xffffffffffffffff
test rbx, rbx
je 0x14006ba44
mov rax, qword [rbx]
cmp dword [rax + 0x174], 3
jl 0x14006ba44
call fcn.14009d5e8
mov r11, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x14006b9d8
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rax, [0x1400fb278]
mov qword [rsp + 0x20], rax
lea r9, str.OpenEifFile
lea r8, str.CScriptFileIF
lea rdx, str.__public___s::_s__s_
lea rcx, [rsp + 0x30]
call fcn.14000a800
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14002f200
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14006ba44
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15d, r12d
mov rax, qword [r14 + 0x30]
test byte [rax], 0x80
jne 0x14006bd61
mov rax, qword [rax + 0x100]
cmp dword [rax - 0x10], r12d
je 0x14006ba9f
test rax, rax
je 0x14006ba9f
mov ecx, 0x7fffffff
mov edx, r12d
nop
cmp word [rax], dx
je 0x14006ba81
add rax, 2
sub rcx, 1
jne 0x14006ba70
jmp 0x14006ba86
test rcx, rcx
jne 0x14006ba90
mov edx, 0x80070057
mov r8, r12
jmp 0x14006ba99
mov r8d, 0x7fffffff
sub r8, rcx
test edx, edx
jns 0x14006baad
jmp 0x14006baa4
mov edx, 0x80070057
mov r8, r12
test edx, edx
cmovs r8, r12
mov ecx, 0x7fffffff
lea rax, str.epsetup.eif
nop
nop
cmp word [rax], r15w
je 0x14006bad2
add rax, 2
sub rcx, 1
jne 0x14006bac0
jmp 0x14006bae1
test rcx, rcx
je 0x14006bae1
mov eax, 0x7fffffff
sub rax, rcx
jmp 0x14006bae4
mov rax, r12
lea eax, [rax + r8 + 0x104]
movsxd rbp, eax
lea r8, [rbp + rbp]
mov rcx, qword [r14 + 0x38]
mov rsi, r12
test r8, r8
je 0x14006bb11
mov edx, 8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov rcx, qword [r14 + 0x30]
mov r8, qword [rcx + 0x100]
cmp dword [r8 - 0x10], r15d
cmove r8, r12
test rbp, rbp
je 0x14006bb73
cmp rbp, 0x7fffffff
ja 0x14006bb73
mov rdx, rbp
mov rcx, rsi
mov r9d, 0x7ffffffe
sub r9, rbp
sub r8, rsi
lea rax, [r9 + rdx]
test rax, rax
je 0x14006bb66
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14006bb66
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14006bb44
jmp 0x14006bb6b
test rdx, rdx
jne 0x14006bb6f
sub rcx, 2
mov word [rcx], r15w
lea rdx, str.epsetup.eif
mov rcx, rsi
call fcn.14002ae40
mov ebx, r12d
lea rdx, [rsp + 0x290]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14006bbf6
mov r12d, 1
nop
nop
nop
test byte [rsp + 0x290], 0x10
cmove ebx, r12d
lea rdx, [rsp + 0x290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14006bbd5
test ebx, ebx
je 0x14006bbb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x14006bbf3
lea rcx, [r14 + 0x10]
mov rdx, rsi
call fcn.14005ce20
xor r12d, r12d
jmp 0x14006bbf6
xor r12d, r12d
mov rax, qword [r14 + 0x30]
mov r8, qword [rax + 0x100]
cmp dword [r8 - 0x10], r15d
cmove r8, r12
test rbp, rbp
je 0x14006bc5f
cmp rbp, 0x7fffffff
ja 0x14006bc5f
mov rdx, rbp
mov rcx, rsi
mov r9d, 0x7ffffffe
sub r9, rbp
sub r8, rsi
nop
nop
lea rax, [r9 + rdx]
test rax, rax
je 0x14006bc52
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14006bc52
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14006bc30
jmp 0x14006bc57
test rdx, rdx
jne 0x14006bc5b
sub rcx, 2
mov word [rcx], r15w
lea rdx, str..eif
mov rcx, rsi
call fcn.14002ae40
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006bd4a
nop
nop
test byte [rsp + 0x40], 0x10
jne 0x14006bd2b
lea rdx, str.epsetup.eif
lea rcx, [rsp + 0x6c]
call fcn.1400cdd20
test eax, eax
je 0x14006bd2b
mov rax, qword [r14 + 0x30]
mov r8, qword [rax + 0x100]
cmp dword [r8 - 0x10], r15d
cmove r8, r12
test rbp, rbp
je 0x14006bd12
cmp rbp, 0x7fffffff
ja 0x14006bd12
mov rdx, rbp
mov rcx, rsi
mov r9d, 0x7ffffffe
sub r9, rbp
sub r8, rsi
lea rax, [r9 + rdx]
test rax, rax
je 0x14006bd05
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14006bd05
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14006bce3
jmp 0x14006bd0a
test rdx, rdx
jne 0x14006bd0e
sub rcx, 2
mov word [rcx], r15w
lea rdx, [rsp + 0x6c]
mov rcx, rsi
call fcn.14002ae40
lea rcx, [r14 + 0x10]
mov rdx, rsi
call fcn.14005ce20
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14006bc90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [r14 + 0x38]
test rsi, rsi
je 0x14006bd61
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x14006bebd
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x14006bebd
mov eax, 8
mul rdx
cmovo rax, r13
mov rcx, rax
call fcn.1400913a4
mov qword [r14], rax
mov r13d, r12d
mov rax, qword [r14 + 0x10]
mov rsi, r12
cmp qword [rax + 0x10], r15
jle 0x14006bebd
lea rdi, [0x1400fe8d8]
nop
mov rcx, qword [r14 + 0x10]
test rsi, rsi
js 0x14006bddc
mov rax, qword [rcx + 0x10]
cmp rsi, rax
jge 0x14006bddc
test rsi, rsi
js 0x14006beb7
cmp rsi, rax
jge 0x14006beb7
mov rax, qword [rcx + 8]
mov r12, qword [rax + rsi*8]
mov ecx, 0x48
call fcn.140091360
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14006be78
mov qword [rax], rdi
lea rcx, [rax + 0x20]
call fcn.1400aa430
nop
mov qword [rbx + 8], 0
mov qword [rbx + 0x18], 0
mov ecx, 0x20
call fcn.1400913a4
mov rdi, rax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14006be4a
mov rcx, qword [rax]
mov qword [rdi], rcx
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rax + 0x10]
mov qword [rdi + 0x10], rcx
mov rcx, qword [rax + 0x18]
mov qword [rdi + 0x18], rcx
jmp 0x14006be5b
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov r8, rdi
mov rdx, qword [rbx + 0x30]
lea rcx, [rbx + 0x20]
call fcn.1400aa678
mov qword [rbx + 0x18], rdi
lea rdi, [0x1400fe8d8]
jmp 0x14006be7a
xor ebx, ebx
mov rax, qword [r14]
mov qword [rax + rsi*8], rbx
mov rax, qword [r14]
mov rcx, qword [rax + rsi*8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
or r15d, eax
add r13d, 1
add rsi, 1
mov rcx, qword [r14 + 0x10]
movsxd rax, r13d
cmp rax, qword [rcx + 0x10]
jge 0x14006bebd
xor r12d, r12d
jmp 0x14006bdb0
call fcn.1400a0610
int3
mov dword [rsp + 0x20], r15d
lea r9, [0x1400fb428]
lea r8, str.OpenEifFile
lea rdx, str.CScriptFileIF
mov rcx, qword [r14 + 0x40]
call fcn.140080e70
mov eax, r15d
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1400cd6e0
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret