Function at 0x1800419b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
mov rdi, qword [0x18014e798]
xor r12d, r12d
mov qword [rax + 8], rbx
mov rbx, r8
mov qword [rax + 0x10], r14
mov r14, rdx
mov qword [rax + 0x18], r15
mov r15, r9
mov rsi, rcx
test rdi, rdi
jne 0x180041c1d
cmp dword [0x1800542c0], 2
mov r8d, r12d
movups xmm0, xmmword [0x180049b70]
movups xmm1, xmmword [0x180049b80]
movups xmmword [rbp - 0x20], xmm0
movups xmm0, xmmword [0x180049b90]
movups xmmword [rbp - 0x10], xmm1
movups xmm1, xmmword [0x180049ba0]
movups xmmword [rbp], xmm0
movups xmm0, xmmword [0x180049bb0]
movups xmmword [rbp + 0x10], xmm1
movups xmm1, xmmword [0x180049bc0]
movups xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [0x180049bd0]
movups xmmword [rbp + 0x30], xmm1
movups xmm1, xmmword [0x180049be0]
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm1
jl 0x180041bbd
movdqa xmm5, xmmword [0x18004fda0]
lea rcx, [rbp - 0x20]
movdqa xmm4, xmmword [0x180050ef0]
mov edx, r12d
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movdqa xmm7, xmmword [0x18004fdc0]
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
mov eax, 4
movdqa xmm9, xmmword [0x18004fdd0]
movd xmm6, eax
mov eax, 0x1f
movd xmm8, eax
nop dword [rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add edx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp edx, 0x40
jl 0x180041ab0
movaps xmm9, xmmword [rsp + 0x160]
movaps xmm8, xmmword [rsp + 0x170]
movaps xmm7, xmmword [rsp + 0x180]
movaps xmm6, xmmword [rsp + 0x190]
jmp 0x180041bf8
lea r9, [rbp - 0x20]
mov eax, 0x3521cfb3
lea r9, [r9 + 2]
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movzx eax, ax
imul ecx, eax, 0x35
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x36
xor word [r9 - 2], ax
cmp r8d, 0x40
jl 0x180041bc1
mov rax, qword [0x18014e530]
lea r8, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor ecx, ecx
lea rdx, [r9 - 1]
call rax
mov rdi, rax
mov qword [0x18014e798], rax
movups xmm1, xmmword [r14]
xor eax, eax
mov dword [rbp - 0x36], eax
xorps xmm0, xmm0
mov word [rbp - 0x38], ax
mov word [rbp - 0x32], ax
mov rax, qword [rbx]
movups xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [r14 + 0x20]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x60], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0x60]
mov qword [rbp - 0x40], rax
movzx eax, byte [rbx + 0x68]
mov byte [rbp - 0x38], al
movzx eax, byte [rbx + 0x69]
mov byte [rbp - 0x37], al
movzx eax, byte [rbx + 0x6a]
mov byte [rbp - 0x36], al
movzx eax, byte [rbx + 0x6b]
mov byte [rbp - 0x35], al
movzx eax, byte [rbx + 0x6c]
mov byte [rbp - 0x34], al
movzx eax, byte [rbx + 0x6d]
mov byte [rbp - 0x33], al
movzx eax, byte [rbx + 0x6e]
mov byte [rbp - 0x32], al
movzx eax, byte [rbx + 0x6f]
mov byte [rbp - 0x31], al
movups xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [r14 + 0x10]
mov r14, qword [rsp + 0x1c8]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rbx + 0x18]
movups xmmword [rsp + 0x78], xmm0
movups xmm0, xmmword [rbx + 0x28]
movups xmmword [rbp - 0x78], xmm0
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbp - 0x68], xmm0
movups xmm0, xmmword [rbx + 0x48]
movups xmmword [rbp - 0x58], xmm0
movsd xmm0, qword [rbx + 0x58]
mov rbx, qword [rsp + 0x1c0]
movsd qword [rbp - 0x48], xmm0
movups xmm0, xmmword [r15]
mov r15, qword [rsp + 0x1d0]
movups xmmword [rbp - 0x30], xmm0
test rdi, rdi
je 0x180041d67
test rsi, rsi
je 0x180041d67
test dword [rsi + 8], 0x60000000
jne 0x180041d67
test dword [rdi + 0xb0], 0x400
je 0x180041d67
mov rax, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, rdi
mov rcx, rsi
mov r10, qword [rax + 0x268]
call r10
mov qword [rsp + 0x20], r12
mov rcx, rsi
test al, 1
je 0x180041d53
mov rax, qword [rsi]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov rdx, rdi
call qword [rax + 0x270]
jmp 0x180041d67
lea r9, [rbp - 0x30]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
call qword [0x18014e550]
mov rsi, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop r12
pop rdi
pop rbp
ret