Function at 0x140047380
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movsxd rax, dword [rcx]
mov rsi, rcx
mov r15, r8
mov ecx, eax
mov r9, rdx
mov edx, eax
sar ecx, 3
mov r8d, eax
sar edx, 1
mov dword [rbp + 0x50], ecx
lea rcx, [rax*4]
sar r8d, 2
lea rax, [rcx + 0xf]
mov dword [rbp + 0x60], edx
mov qword [rbp + 0x68], rcx
cmp rax, rcx
ja 0x1400473db
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140078b20
movsxd r11, dword [rbp + 0x50]
movsxd r12, edx
sub rsp, rax
xor edi, edi
movsxd r13, r8d
lea rax, [r13 + r12]
lea rbx, [rsp + 0x20]
mov r14d, edi
lea rdx, [r9 + rax*4]
mov rax, qword [rsi + 8]
mov r8d, edi
lea r10, [rbx + r12*4]
lea rcx, [rax + r12*4]
lea r9, [rdx + 4]
test r11, r11
jle 0x140047488
lea rax, [r11 - 1]
shr rax, 1
lea r14d, [rax + rax + 2]
nop dword [rax + rax]
movss xmm2, dword [r9 + 8]
movss xmm3, dword [rdx - 8]
sub rcx, 8
sub rdx, 0x10
add r8, 2
add r9, 0x10
addss xmm3, dword [r9 - 0x10]
addss xmm2, dword [rdx]
movaps xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, dword [rcx]
mulss xmm0, dword [rcx + 4]
addss xmm1, xmm0
movss dword [r10 + r8*4 - 8], xmm1
mulss xmm2, dword [rcx]
mulss xmm3, dword [rcx + 4]
subss xmm2, xmm3
movss dword [r10 + r8*4 - 4], xmm2
cmp r8, r11
jl 0x140047430
mov r8d, dword [rbp + 0x60]
mov rax, qword [rbp + 0x58]
movsxd r11, r14d
mov r9d, r8d
add rax, 4
sub r9d, dword [rbp + 0x50]
cmp r14d, r9d
jge 0x140047519
sub r9d, r14d
lea r8, [r10 + r11*4]
dec r9d
shr r9d, 1
inc r9d
mov r11d, r9d
lea r14d, [r14 + r9*2]
nop word [rax + rax]
movss xmm3, dword [rdx - 8]
movss xmm2, dword [rdx - 0x10]
sub rcx, 8
sub rdx, 0x10
add r8, 8
add rax, 0x10
dec r11
subss xmm2, dword [rax - 8]
subss xmm3, dword [rax - 0x10]
movaps xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, dword [rcx]
mulss xmm0, dword [rcx + 4]
addss xmm1, xmm0
movss dword [r8 - 8], xmm1
mulss xmm2, dword [rcx]
mulss xmm3, dword [rcx + 4]
subss xmm2, xmm3
movss dword [r8 - 4], xmm2
jne 0x1400474c0
mov r8d, dword [rbp + 0x60]
mov rdx, qword [rbp + 0x68]
movsxd r9, r14d
add rdx, qword [rbp + 0x58]
cmp r9, r12
jge 0x14004758e
movss xmm4, dword [0x140084e90]
movss xmm3, dword [rdx - 8]
movss xmm2, dword [rdx - 0x10]
sub rcx, 8
sub rdx, 0x10
add r9, 2
add rax, 0x10
xorps xmm2, xmm4
subss xmm2, dword [rax - 8]
xorps xmm3, xmm4
subss xmm3, dword [rax - 0x10]
movaps xmm0, xmm2
mulss xmm0, dword [rcx + 4]
movaps xmm1, xmm3
mulss xmm1, dword [rcx]
addss xmm1, xmm0
movss dword [r10 + r9*4 - 8], xmm1
mulss xmm2, dword [rcx]
mulss xmm3, dword [rcx + 4]
subss xmm2, xmm3
movss dword [r10 + r9*4 - 4], xmm2
cmp r9, r12
jl 0x140047531
mov rdx, r10
mov rcx, rsi
call fcn.140046c80
mov rdx, rbx
mov rcx, rsi
call fcn.140046de0
mov r11, qword [rsi + 8]
lea rcx, [r15 + r12*4]
lea rax, [r11 + r12*4]
cmp r13, 4
jl 0x1400476fc
lea rdx, [r13 - 4]
lea r8, [r15 + 8]
shr rdx, 2
inc rdx
lea rdi, [rdx*4]
movss xmm1, dword [rbx + 4]
movss xmm0, dword [rax]
add rcx, 0xfffffffffffffff0
add rbx, 0x20
add rax, 0x20
add r8, 0x10
dec rdx
mulss xmm0, dword [rbx - 0x20]
mulss xmm1, dword [rax - 0x1c]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r8 - 0x18], xmm1
movss xmm2, dword [rax - 0x1c]
movss xmm0, dword [rbx - 0x1c]
mulss xmm2, dword [rbx - 0x20]
mulss xmm0, dword [rax - 0x20]
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rcx + 0xc], xmm2
movss xmm1, dword [rax - 0x14]
movss xmm0, dword [rax - 0x18]
mulss xmm0, dword [rbx - 0x18]
mulss xmm1, dword [rbx - 0x14]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r8 - 0x14], xmm1
movss xmm2, dword [rax - 0x14]
movss xmm0, dword [rax - 0x18]
mulss xmm2, dword [rbx - 0x18]
mulss xmm0, dword [rbx - 0x14]
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rcx + 8], xmm2
movss xmm1, dword [rax - 0xc]
movss xmm0, dword [rax - 0x10]
mulss xmm0, dword [rbx - 0x10]
mulss xmm1, dword [rbx - 0xc]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r8 - 0x10], xmm1
movss xmm2, dword [rax - 0xc]
movss xmm0, dword [rax - 0x10]
mulss xmm2, dword [rbx - 0x10]
mulss xmm0, dword [rbx - 0xc]
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rcx + 4], xmm2
movss xmm1, dword [rax - 8]
movss xmm0, dword [rbx - 4]
mulss xmm0, dword [rax - 4]
mulss xmm1, dword [rbx - 8]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r8 - 0xc], xmm1
movss xmm2, dword [rbx - 8]
movss xmm0, dword [rax - 8]
mulss xmm2, dword [rax - 4]
mulss xmm0, dword [rbx - 4]
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rcx], xmm2
jne 0x1400475d1
cmp rdi, r13
jge 0x14004775c
sub rax, rbx
movss xmm1, dword [rax + rbx]
movss xmm0, dword [rbx + 4]
sub rcx, 4
inc rdi
add rbx, 8
mulss xmm0, dword [rax + rbx - 4]
mulss xmm1, dword [rbx - 8]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r15 + rdi*4 - 4], xmm1
movss xmm2, dword [rax + rbx - 4]
movss xmm0, dword [rbx - 4]
mulss xmm2, dword [rbx - 8]
mulss xmm0, dword [rax + rbx - 8]
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rcx], xmm2
cmp rdi, r13
jl 0x140047704
lea rsp, [rbp + 8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret