Function at 0x140004df0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
movaps xmmword [rax - 0x38], xmm6
mov r12, r8
mov r13d, edx
mov rbx, rcx
cmp edx, 4
jae 0x140004e2e
xor al, al
jmp 0x140005017
xor ecx, ecx
cmp dword [r9], ecx
jne 0x140004e55
test edx, edx
je 0x140004e55
nop dword [rax]
mov eax, dword [r8 + rcx*4]
cdq
xor eax, edx
sub eax, edx
inc dword [r9]
lea ecx, [rcx + rax + 1]
cmp ecx, r13d
jb 0x140004e40
mov esi, dword [r9]
mov eax, 0x18
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140061e14
mov rbp, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140004e9a
mov rdi, rax
dec esi
js 0x140004e9c
mov rcx, rdi
call qword [sym.imp.AcGe19.dll_public:_void___cdecl_AcGeVector3d::constructor_void____ptr64]
add rdi, 0x18
dec esi
jns 0x140004e87
jmp 0x140004e9c
xor ebp, ebp
mov r14, qword [rsp + 0xb0]
mov qword [r14], rbp
xor r15d, r15d
xor esi, esi
test r13d, r13d
je 0x140005015
xor ebp, ebp
xorpd xmm6, xmm6
nop dword [rax + rax]
mov eax, dword [r12 + rsi*4]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
movapd xmm1, xmm6
movapd xmm2, xmm6
movapd xmm3, xmm6
movsxd r11, esi
xor r9d, r9d
movsxd r8, edi
cmp r8, 4
jl 0x140004f6e
lea r10, [r12 + r11*4 + 8]
lea rdx, [r8 - 4]
shr rdx, 2
inc rdx
lea r9, [rdx*4]
movsxd rax, dword [r10 - 4]
lea rcx, [rax + rax*2]
addsd xmm1, qword [rbx + rcx*8]
addsd xmm2, qword [rbx + rcx*8 + 8]
addsd xmm3, qword [rbx + rcx*8 + 0x10]
movsxd rax, dword [r10]
lea rcx, [rax + rax*2]
addsd xmm1, qword [rbx + rcx*8]
addsd xmm2, qword [rbx + rcx*8 + 8]
addsd xmm3, qword [rbx + rcx*8 + 0x10]
movsxd rax, dword [r10 + 4]
lea rcx, [rax + rax*2]
addsd xmm1, qword [rbx + rcx*8]
addsd xmm2, qword [rbx + rcx*8 + 8]
addsd xmm3, qword [rbx + rcx*8 + 0x10]
movsxd rax, dword [r10 + 8]
lea rcx, [rax + rax*2]
addsd xmm1, qword [rbx + rcx*8]
addsd xmm2, qword [rbx + rcx*8 + 8]
addsd xmm3, qword [rbx + rcx*8 + 0x10]
add r10, 0x10
dec rdx
jne 0x140004f02
cmp r9, r8
jge 0x140004fa0
lea rax, [r9 + r11]
lea rdx, [r12 + rax*4 + 4]
sub r8, r9
movsxd rax, dword [rdx]
lea rcx, [rax + rax*2]
addsd xmm1, qword [rbx + rcx*8]
addsd xmm2, qword [rbx + rcx*8 + 8]
addsd xmm3, qword [rbx + rcx*8 + 0x10]
add rdx, 4
dec r8
jne 0x140004f7f
movd xmm0, edi
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [rsp + 0x30], xmm1
divsd xmm2, xmm0
movsd qword [rsp + 0x38], xmm2
divsd xmm3, xmm0
movsd qword [rsp + 0x40], xmm3
mov rcx, qword [r14]
mov rax, qword [rsp + 0x30]
mov qword [rcx + rbp], rax
mov rax, qword [rsp + 0x38]
mov qword [rcx + rbp + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [rcx + rbp + 0x10], rax
movsxd rax, r15d
lea rcx, [rax + rax*2]
mov rax, qword [r14]
lea rcx, [rax + rcx*8]
mov rdx, qword [sym.imp.AcGe19.dll_class_AcGeTol_AcGeContext::gTol]
call qword [sym.imp.AcGe19.dll_public:_class_AcGeVector3d____ptr64___cdecl_AcGeVector3d::normalize_class_AcGeTol_const____ptr64____ptr64]
inc r15d
add rbp, 0x18
lea esi, [rsi + rdi + 1]
cmp esi, r13d
jb 0x140004ec0
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [rsp + 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret