Function at 0x1400c2220
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rsp + 0x40], xmm9
mov r15, rdx
mov rbp, rcx
movsd xmm0, qword [rcx + 0x90]
ucomisd xmm0, qword [0x140182628]
jp 0x1400c22c7
jne 0x1400c22c7
mov r10d, 0x7fff
movzx r8d, r10w
mov word [rdx], r10w
movsxd r9, dword [rcx + 0x70]
cmp r9, 1
jle 0x1400c2495
mov ebx, 1
mov r11d, 0x6000
movzx edx, r8b
sar r8w, 1
movzx ecx, r8w
mov eax, 0xffff8001
test dl, 1
cmove ax, r10w
mov word [r15 + rbx*2], ax
inc rbx
xor r8w, r11w
test dl, 1
cmove r8w, cx
cmp rbx, r9
jl 0x1400c2290
jmp 0x1400c2495
subsd xmm0, qword [0x140182600]
movsd qword [rsp + 0xb0], xmm0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov ecx, 8
call fcn.14016cc68
mov qword [rsp + 0x20], rax
lea rdi, [rax + 8]
mov qword [rsp + 0x30], rdi
mov rcx, qword [rsp + 0xb0]
mov qword [rax], rcx
mov qword [rsp + 0x28], rdi
mov ebx, 1
mov esi, dword [rbp + 0x50]
mov eax, 0x29e4129f
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 9
movsd xmm8, qword [rbp + 0x90]
test esi, esi
je 0x1400c23a5
movsd xmm7, qword [0x14018e468]
nop
movd xmm6, ebx
cvtdq2pd xmm6, xmm6
movaps xmm0, xmm6
mulsd xmm0, xmm8
mulsd xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
addsd xmm0, xmm0
mulsd xmm6, xmm7
divsd xmm0, xmm6
inc ebx
movsd qword [rsp + 0xb8], xmm0
cmp rdi, qword [rsp + 0x30]
je 0x1400c2386
movsd qword [rdi], xmm0
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400c23a0
lea r8, [rsp + 0xb8]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006b30
mov rdi, qword [rsp + 0x28]
add esi, 0xffffffff
jne 0x1400c2340
mov eax, dword [rbp + 0x50]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
movsd xmm8, qword [0x14018e478]
divsd xmm8, xmm0
xor r14d, r14d
movsxd r12, dword [rbp + 0x70]
test r12, r12
jle 0x1400c2452
xor ebp, ebp
movsd xmm9, qword [0x14018e480]
nop dword [rax]
xor esi, esi
xorps xmm6, xmm6
mov rbx, qword [rsp + 0x20]
cmp rbx, rdi
je 0x1400c2429
movd xmm7, r14d
cvtdq2pd xmm7, xmm7
nop dword [rax + rax]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm8
mulsd xmm0, xmm7
inc esi
call sub.api_ms_win_crt_math_l1_1_0.dll_cos
mulsd xmm0, qword [rbx]
addsd xmm6, xmm0
add rbx, 8
cmp rbx, rdi
jne 0x1400c2400
mulsd xmm6, xmm9
movaps xmm0, xmm6
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_round]
cvttsd2si eax, xmm0
mov word [r15 + rbp*2], ax
inc r14d
inc rbp
cmp rbp, r12
jge 0x1400c2452
mov rdi, qword [rsp + 0x28]
jmp 0x1400c23e0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400c2495
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c2490
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c2490
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14016cca4
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret