Function at 0x140003aa0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbx, rdx
xor ebp, ebp
mov edi, 4
mov rax, qword gs:[0x58]
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x140025b24], eax
jle 0x140003b17
lea rcx, [0x140025b24]
call fcn.1400128f0
cmp dword [0x140025b24], 0xffffffff
jne 0x140003b17
movsd xmm0, qword [str.oSIHH_S]
movsd qword [0x140025dc0], xmm0
mov eax, dword [str.3D]
mov dword [0x140025dc8], eax
lea rcx, [0x140025b24]
call fcn.140012884
lea r14, [0x140025dc0]
mov esi, dword [0x140025088]
mov eax, dword [rdi]
cmp dword [0x140025dd0], eax
jle 0x140003cdc
lea rcx, [0x140025dd0]
call fcn.1400128f0
cmp dword [0x140025dd0], 0xffffffff
jne 0x140003cdc
mov qword [0x140025bb0], rbp
cmp byte [0x140025dcb], 0
je 0x140003cb0
mov ecx, ebp
cmp esi, 2
jl 0x140003c73
movdqa xmm4, xmmword [0x140020640]
movdqa xmm2, xmmword [0x1400205c0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400205f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140020600]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140020620]
movd xmm0, dword [0x140025dc0]
xorps xmm2, xmm0
movd dword [0x140025dc0], xmm2
movdqa xmm3, xmmword [0x1400205d0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400205f0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140020600]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140020620]
movd xmm0, dword [0x140025dc4]
xorps xmm2, xmm0
movd dword [0x140025dc4], xmm2
mov ecx, 8
movsxd r8, ecx
add r8, r14
nop dword [rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x39
add dl, cl
xor byte [r8], dl
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xc
jl 0x140003c80
mov qword [0x140025ba8], r14
lea rcx, [0x140025ba8]
call fcn.1400012c0
lea rcx, [0x140014370]
call fcn.140012e68
nop
lea rcx, [0x140025dd0]
call fcn.140012884
cmp byte [0x140025dcb], 0
jne 0x140003e40
mov ecx, ebp
cmp esi, 2
jl 0x140003e03
movdqa xmm4, xmmword [0x140020640]
movdqa xmm2, xmmword [0x1400205c0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400205f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140020600]
packuswb xmm2, xmm2
mov eax, dword [0x140020620]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [0x140025dc0]
xorps xmm2, xmm1
movd dword [0x140025dc0], xmm2
movdqa xmm3, xmmword [0x1400205d0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400205f0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140020600]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [0x140025dc4]
xorps xmm2, xmm1
movd dword [0x140025dc4], xmm2
mov ecx, 8
movsxd r8, ecx
add r8, r14
nop dword [rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x39
add dl, cl
xor byte [r8], dl
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xc
jl 0x140003e10
mov qword [0x140025dc0], rbp
mov dword [0x140025dc8], ebp
movups xmm0, xmmword [0x140025ba8]
movups xmmword [rbx], xmm0
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret