Function at 0x18003b4a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x70
mov rdx, qword [0x1800ae4c0]
xor r8d, r8d
mov qword [rax + 8], r8
mov rbx, rcx
test rdx, rdx
jne 0x18003b78a
cmp dword [0x1800adb58], 2
movups xmm3, xmmword [0x180053768]
movups xmm0, xmmword [0x180053778]
movaps xmmword [rax - 0x28], xmm7
movq xmm7, qword [0x180053788]
movups xmmword [rax - 0x58], xmm3
movups xmmword [rax - 0x48], xmm0
movq qword [rax - 0x38], xmm7
mov eax, dword [0x180053790]
mov dword [rsp + 0x48], eax
jl 0x18003b713
movdqa xmm4, xmmword [0x18004e960]
movdqa xmm2, xmmword [0x18004e8e0]
movdqa xmm5, xmmword [str.7777]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x180054940]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x18004e8f0]
paddw xmm2, xmm6
xorps xmm2, xmm1
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
movdqa xmm1, xmm3
pmuldq xmm0, xmm4
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movq qword [rsp + 0x20], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
movdqa xmm3, xmmword [0x18004e900]
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x28]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
paddw xmm2, xmm6
xorps xmm2, xmm0
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
movq qword [rsp + 0x28], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
movdqa xmm3, xmmword [0x18004e910]
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x30]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
paddw xmm2, xmm6
xorps xmm2, xmm0
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
movq qword [rsp + 0x30], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
mov r8d, 0x14
movdqa xmm3, xmmword [0x18004e920]
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x38]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
paddw xmm2, xmm6
punpckldq xmm1, xmm3
xorps xmm2, xmm0
pmuldq xmm1, xmm4
movq qword [rsp + 0x38], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, xmm7
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmm6
movaps xmm6, xmmword [rsp + 0x60]
xorps xmm2, xmm0
movq qword [rsp + 0x40], xmm2
movaps xmm7, xmmword [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov eax, r8d
lea rcx, [rcx + rax*2]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x94f2095
lea rcx, [rcx + 2]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x37
movzx eax, r8w
inc r8d
sub ax, dx
add ax, 0x36
xor word [rcx - 2], ax
cmp r8d, 0x16
jl 0x18003b730
mov rax, qword [0x1800ae1c8]
lea r8, [rsp + 0x20]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov r8, qword [rsp + 0x80]
mov rdx, rax
mov qword [0x1800ae4c0], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x18003b7be
mov rax, qword [0x1800ad248]
mov r9, qword [rcx + rax*8]
test r9, r9
je 0x18003b7be
lea r8, [rsp + 0x80]
mov rcx, rbx
call r9
mov rax, qword [rsp + 0x80]
add rsp, 0x70
pop rbx
ret
mov rax, r8
add rsp, 0x70
pop rbx
ret