Function at 0x1400479a0
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 0x140047d6f
sub ecx, 1
je 0x140047d06
sub ecx, 1
je 0x140047ca2
sub ecx, 1
je 0x140047ab2
mov r8, 0xffffffffffffffff
cmp ecx, 2
je 0x140047a54
movsd xmm0, qword [0x14010ff68]
movzx ecx, word [0x14010ff70]
movzx eax, byte [0x14010ff72]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x3a
xor byte [rbp - 0x16], 0x3b
xor byte [rbp - 0x15], 0x3c
xor byte [rbp - 0x14], 0x3d
xor byte [rbp - 0x13], 0x3e
xor byte [rbp - 0x12], 0x3f
xor byte [rbp - 0x11], 0x40
mov word [rbp - 0x10], cx
xor cl, 0x41
xor byte [rbp - 0xf], 0x42
xor al, 0x43
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 0x140047a46
jmp 0x140047ddf
movsd xmm0, qword [str.jRTSIWQA]
movzx eax, byte [0x14010fbc8]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x3a
xor byte [rbp - 0x16], 0x3b
xor byte [rbp - 0x15], 0x3c
xor byte [rbp - 0x14], 0x3d
xor byte [rbp - 0x13], 0x3e
xor byte [rbp - 0x12], 0x3f
xor byte [rbp - 0x11], 0x40
xor al, 0x41
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 0x140047aa0
lea rdx, [rbp - 0x18]
jmp 0x140047de3
cmp byte [0x1401111e3], r10b
movsd xmm0, qword [str.k_WSZV.lmD]
mov eax, dword [0x1401111e0]
movsd qword [rbp - 0x18], xmm0
mov dword [rbp - 0x10], eax
je 0x140047c73
cmp dword [0x14011f090], 2
mov r8d, r10d
jl 0x140047c34
movdqa xmm2, xmmword [0x140112470]
movdqa xmm5, xmmword [0x140112860]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140112490]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm4, xmmword [0x1401124f0]
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401124e0]
psubd xmm2, xmm0
movd xmm0, dword [str.k_WSZV.lmD]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140112530]
xorps xmm2, xmm0
movd dword [rbp - 0x18], xmm2
movdqa xmm2, xmmword [0x140112480]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x1401124e0]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rbp - 0x14]
andps xmm2, xmm4
packuswb xmm2, xmm2
pmuldq xmm1, xmm5
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140112530]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rbp - 0x14], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401124e0]
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x140112530]
xorps xmm3, xmm0
movd dword [rbp - 0x10], xmm3
jmp 0x140047c73
lea r9, [rbp - 0x18]
nop dword [rax + rax]
mov eax, 0x1f7047dd
lea r9, [r9 + 1]
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x140047c40
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 0x140047c90
lea rdx, [rbp - 0x18]
jmp 0x140047de3
movsd xmm0, qword [str.jRTSIWQA]
mov r8, 0xffffffffffffffff
movzx eax, byte [0x14010fbc8]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x3a
xor byte [rbp - 0x16], 0x3b
xor byte [rbp - 0x15], 0x3c
xor byte [rbp - 0x14], 0x3d
xor byte [rbp - 0x13], 0x3e
xor byte [rbp - 0x12], 0x3f
xor byte [rbp - 0x11], 0x40
xor al, 0x41
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 0x140047cf4
lea rdx, [rbp - 0x18]
jmp 0x140047de3
movsd xmm0, qword [str.jRTSIWQA]
mov r8, 0xffffffffffffffff
movzx eax, byte [0x14010fbc8]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x3a
xor byte [rbp - 0x16], 0x3b
xor byte [rbp - 0x15], 0x3c
xor byte [rbp - 0x14], 0x3d
xor byte [rbp - 0x13], 0x3e
xor byte [rbp - 0x12], 0x3f
xor byte [rbp - 0x11], 0x40
xor al, 0x41
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 0x140047d60
lea rdx, [rbp - 0x18]
jmp 0x140047de3
movsd xmm0, qword [str.pTHLX_K___C]
mov r8, 0xffffffffffffffff
movzx ecx, word [0x140110b68]
movzx eax, byte [0x140110b6a]
movsd qword [rbp - 0x18], xmm0
xorps xmm0, xmm0
xor byte [rbp - 0x17], 0x3a
xor byte [rbp - 0x16], 0x3b
xor byte [rbp - 0x15], 0x3c
xor byte [rbp - 0x14], 0x3d
xor byte [rbp - 0x13], 0x3e
xor byte [rbp - 0x12], 0x3f
xor byte [rbp - 0x11], 0x40
mov word [rbp - 0x10], cx
xor cl, 0x41
xor byte [rbp - 0xf], 0x42
xor al, 0x43
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 0x140047dd6
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.14009c460
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret