Function at 0x140082710
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 8], 1
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
jne 0x140082a60
mov qword [rsp + 0x68], r15
mov r15, qword [rcx]
add rcx, 0xbb8
cmp qword [rcx], r15
jge 0x140082748
mov rdx, r15
call fcn.14003e440
mov rdx, rbx
mov rcx, rsi
call fcn.140082a80
mov rax, qword [rsi + 0x258]
add rax, qword [rsi + 0x210]
cmp rax, r15
jl 0x140082776
mov r15, qword [rsp + 0x68]
xorps xmm0, xmm0
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x50], rbp
xor ebp, ebp
mov qword [rsp + 0x58], r12
mov edx, ebp
mov qword [rsp + 0x60], r14
lea r14, [r15 - 1]
test r14, r14
js 0x14008282a
lea r8, [rdi + 0x38]
cmp r15, 4
jl 0x140082810
lea r9, [r14 - 3]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r8]
mov rcx, qword [rsi + 0xbf0]
mov rax, qword [rax + rdx*8]
mov qword [rcx + rdx*8], rax
mov rax, qword [r8]
mov rcx, qword [rsi + 0xbf0]
mov rax, qword [rax + rdx*8 + 8]
mov qword [rcx + rdx*8 + 8], rax
mov rax, qword [r8]
mov rcx, qword [rsi + 0xbf0]
mov rax, qword [rax + rdx*8 + 0x10]
mov qword [rcx + rdx*8 + 0x10], rax
mov rax, qword [r8]
mov rcx, qword [rsi + 0xbf0]
mov rax, qword [rax + rdx*8 + 0x18]
mov qword [rcx + rdx*8 + 0x18], rax
add rdx, 4
cmp rdx, r9
jle 0x1400827b0
cmp rdx, r14
jg 0x14008282a
nop dword [rax]
mov rax, qword [r8]
mov rcx, qword [rsi + 0xbf0]
mov rax, qword [rax + rdx*8]
mov qword [rcx + rdx*8], rax
inc rdx
cmp rdx, r14
jle 0x140082810
cmp qword [rsi + 0x210], 1
mov r12, rbp
js 0x14008289f
movsd xmm5, qword [0x140216560]
nop
mov rax, qword [rsi + 0x208]
mov r9d, 1
mov rdi, qword [rsi + 0xbf0]
mov edx, r9d
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rbx, qword [rax + r12*8]
mov rcx, rbx
call fcn.14003ed50
xorps xmm0, xmm5
mov r9d, 1
movsd qword [rsp + 0x28], xmm0
mov edx, r9d
mov r8, rbx
mov qword [rsp + 0x20], r15
mov rcx, rdi
call fcn.14003f5b0
mov rax, qword [rsi + 0x210]
inc r12
dec rax
cmp r12, rax
jle 0x140082840
mov r12, qword [rsp + 0x58]
mov rcx, rbp
test r14, r14
js 0x140082959
cmp r15, 4
jl 0x140082930
lea r8, [r14 - 3]
lea rdx, [rsi + 0xbf0]
mov rax, qword [rsi + 0x110]
cmp qword [rax + rcx*8], rbp
jle 0x1400828d5
mov rax, qword [rdx]
mov qword [rax + rcx*8], rbp
mov rax, qword [rsi + 0x110]
cmp qword [rax + rcx*8 + 8], rbp
jle 0x1400828ed
mov rax, qword [rdx]
mov qword [rax + rcx*8 + 8], rbp
jmp 0x1400828f4
lea rdx, [rsi + 0xbf0]
mov rax, qword [rsi + 0x110]
cmp qword [rax + rcx*8 + 0x10], rbp
jle 0x14008290a
mov rax, qword [rdx]
mov qword [rax + rcx*8 + 0x10], rbp
mov rax, qword [rsi + 0x110]
cmp qword [rax + rcx*8 + 0x18], rbp
jle 0x140082920
mov rax, qword [rdx]
mov qword [rax + rcx*8 + 0x18], rbp
add rcx, 4
cmp rcx, r8
jle 0x1400828c1
cmp rcx, r14
jg 0x140082959
nop
mov rax, qword [rsi + 0x110]
cmp qword [rax + rcx*8], rbp
jle 0x140082948
mov rax, qword [rsi + 0xbf0]
mov qword [rax + rcx*8], rbp
inc rcx
cmp rcx, r14
jle 0x140082930
xorps xmm2, xmm2
lea rcx, [r15 - 1]
jmp 0x140082969
lea rcx, [r15 - 1]
xorps xmm2, xmm2
test rcx, rcx
js 0x140082a25
mov rdx, qword [rsi + 0xbf0]
mov r10, qword [rsi + 0x90]
cmp r15, 4
jl 0x1400829fd
mov r8, rdx
lea r9, [rcx + 1]
sub r8, r10
lea rax, [r10 + 8]
shr r9, 2
lea rbp, [r9*4]
nop dword [rax + rax]
movsd xmm0, qword [rax + r8 - 8]
mulsd xmm0, qword [rax - 8]
movsd xmm1, qword [rax + r8]
mulsd xmm1, qword [rax]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm2, xmm0
movsd xmm0, qword [rax + r8 + 8]
mulsd xmm0, qword [rax + 8]
addsd xmm2, xmm1
movsd xmm1, qword [rax + r8 + 0x10]
mulsd xmm1, qword [rax + 0x10]
add rax, 0x20
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm2, xmm0
addsd xmm2, xmm1
sub r9, 1
jne 0x1400829a0
cmp rbp, rcx
jg 0x140082a25
sub rdx, r10
lea rax, [r10 + rbp*8]
sub rcx, rbp
inc rcx
movsd xmm0, qword [rax + rdx]
mulsd xmm0, qword [rax]
add rax, 8
mulsd xmm0, xmm0
addsd xmm2, xmm0
sub rcx, 1
jne 0x140082a0a
mov r14, qword [rsp + 0x60]
xorps xmm0, xmm0
ucomisd xmm0, xmm2
mov rbp, qword [rsp + 0x50]
ja 0x140082a4c
mov r15, qword [rsp + 0x68]
xorps xmm0, xmm0
sqrtsd xmm0, xmm2
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
movaps xmm0, xmm2
mov r15, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
jmp fcn.140170bf8
lea r8, str.SASMoveTo:_is_not_in_optimization_mode
mov edx, 3
mov rcx, rbx
call fcn.14003de20
int3