Function at 0x140046a50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rbx, rcx
xor r10d, r10d
movzx ecx, dl
sub ecx, 3
je 0x140046dbf
sub ecx, 1
je 0x140046d56
sub ecx, 1
je 0x140046cf2
sub ecx, 1
je 0x140046b62
mov r8, 0xffffffffffffffff
cmp ecx, 2
je 0x140046b04
movsd xmm0, qword [0x140103c38]
movzx ecx, word [0x140103c40]
movzx eax, byte [0x140103c42]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x31
xor byte [rbp - 0x16], 0x32
xor byte [rbp - 0x15], 0x33
xor byte [rbp - 0x14], 0x34
xor byte [rbp - 0x13], 0x35
xor byte [rbp - 0x12], 0x36
xor byte [rbp - 0x11], 0x37
mov word [rbp - 0x10], cx
xor cl, 0x38
xor byte [rbp - 0xf], 0x39
xor al, 0x3a
mov byte [rbp - 0x18], 0x4e
movups xmmword [rbx], xmm0
mov byte [rbp - 0xe], al
lea rax, [rbp - 0x18]
mov byte [rbp - 0x10], cl
mov qword [rbx + 0x10], r10
mov qword [rbx + 0x18], r10
inc r8
cmp byte [rax + r8], r10b
jne 0x140046af6
jmp 0x140046e2f
movsd xmm0, qword [str.cY__XP8]
movzx eax, byte [0x1401019b0]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x31
xor byte [rbp - 0x16], 0x32
xor byte [rbp - 0x15], 0x33
xor byte [rbp - 0x14], 0x34
xor byte [rbp - 0x13], 0x35
xor byte [rbp - 0x12], 0x36
xor byte [rbp - 0x11], 0x37
xor al, 0x38
mov byte [rbp - 0x18], 0x53
movups xmmword [rbx], xmm0
mov byte [rbp - 0x10], al
lea rax, [rbp - 0x18]
mov qword [rbx + 0x10], r10
mov qword [rbx + 0x18], r10
nop
inc r8
cmp byte [rax + r8], r10b
jne 0x140046b50
lea rdx, [rbp - 0x18]
jmp 0x140046e33
cmp byte [0x14010384b], r10b
movsd xmm0, qword [str.bTUQ_Y_]
mov eax, dword [0x140103848]
movsd qword [rbp - 0x18], xmm0
mov dword [rbp - 0x10], eax
je 0x140046cc4
cmp dword [0x140110090], 2
mov r8d, r10d
jl 0x140046c80
movdqa xmm2, xmmword [0x140103fa0]
mov r8d, 8
movdqa xmm4, xmmword [0x140104360]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140103fc0]
psubd xmm2, xmm0
movd xmm0, dword [str.bTUQ_Y_]
andps xmm2, xmmword [0x140103fe0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140104000]
xorps xmm2, xmm0
movd dword [rbp - 0x18], xmm2
movdqa xmm2, xmmword [0x140103fb0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140103fc0]
psubd xmm2, xmm0
movd xmm0, dword [rbp - 0x14]
andps xmm2, xmmword [0x140103fe0]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140104000]
xorps xmm2, xmm0
movd dword [rbp - 0x14], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x18]
add r9, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x140046c90
xorps xmm0, xmm0
lea rax, [rbp - 0x18]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r10
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], r10
nop dword [rax]
inc r8
cmp byte [rax + r8], r10b
jne 0x140046ce0
lea rdx, [rbp - 0x18]
jmp 0x140046e33
movsd xmm0, qword [str.cY__XP8]
mov r8, 0xffffffffffffffff
movzx eax, byte [0x1401019b0]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x31
xor byte [rbp - 0x16], 0x32
xor byte [rbp - 0x15], 0x33
xor byte [rbp - 0x14], 0x34
xor byte [rbp - 0x13], 0x35
xor byte [rbp - 0x12], 0x36
xor byte [rbp - 0x11], 0x37
xor al, 0x38
mov byte [rbp - 0x18], 0x53
movups xmmword [rbx], xmm0
mov byte [rbp - 0x10], al
lea rax, [rbp - 0x18]
mov qword [rbx + 0x10], r10
mov qword [rbx + 0x18], r10
inc r8
cmp byte [rax + r8], r10b
jne 0x140046d44
lea rdx, [rbp - 0x18]
jmp 0x140046e33
movsd xmm0, qword [str.cY__XP8]
mov r8, 0xffffffffffffffff
movzx eax, byte [0x1401019b0]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x31
xor byte [rbp - 0x16], 0x32
xor byte [rbp - 0x15], 0x33
xor byte [rbp - 0x14], 0x34
xor byte [rbp - 0x13], 0x35
xor byte [rbp - 0x12], 0x36
xor byte [rbp - 0x11], 0x37
xor al, 0x38
mov byte [rbp - 0x18], 0x53
movups xmmword [rbx], xmm0
mov byte [rbp - 0x10], al
lea rax, [rbp - 0x18]
mov qword [rbx + 0x10], r10
mov qword [rbx + 0x18], r10
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r10b
jne 0x140046db0
lea rdx, [rbp - 0x18]
jmp 0x140046e33
movsd xmm0, qword [str.y_ACQVBV:]
mov r8, 0xffffffffffffffff
movzx ecx, word [0x140102798]
movzx eax, byte [0x14010279a]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x31
xor byte [rbp - 0x16], 0x32
xor byte [rbp - 0x15], 0x33
xor byte [rbp - 0x14], 0x34
xor byte [rbp - 0x13], 0x35
xor byte [rbp - 0x12], 0x36
xor byte [rbp - 0x11], 0x37
mov word [rbp - 0x10], cx
xor cl, 0x38
xor byte [rbp - 0xf], 0x39
xor al, 0x3a
mov byte [rbp - 0x18], 0x49
movups xmmword [rbx], xmm0
mov byte [rbp - 0xe], al
lea rax, [rbp - 0x18]
mov byte [rbp - 0x10], cl
mov qword [rbx + 0x10], r10
mov qword [rbx + 0x18], r10
inc r8
cmp byte [rax + r8], r10b
jne 0x140046e26
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.14008eb40
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret