Function at 0x1800365d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800ae4b0]
mov rbx, rdx
mov rdi, rcx
test rax, rax
jne 0x18003690d
movups xmm3, xmmword [str.wTLVH]
mov eax, dword [0x180053740]
xor r8d, r8d
cmp dword [0x1800adb58], 2
movups xmm0, xmmword [str.ax_5]
mov dword [rsp + 0x68], eax
movups xmm1, xmmword [0x180053730]
movups xmmword [rsp + 0x38], xmm3
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm1
jl 0x1800368a9
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 + 0x70], 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 + 0x38], 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 + 0x40]
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 + 0x40], 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 + 0x48]
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 + 0x48], 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, 0x18
movdqa xmm3, xmmword [0x18004e920]
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x50]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
paddw xmm2, xmm6
xorps xmm2, xmm0
pmuldq xmm1, xmm4
movq qword [rsp + 0x50], 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
movdqa xmm3, xmmword [0x18004e930]
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x58]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
paddw xmm2, xmm6
punpckldq xmm1, xmm3
xorps xmm2, xmm0
pmuldq xmm1, xmm4
movq qword [rsp + 0x58], 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, qword [rsp + 0x60]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmm6
movaps xmm6, xmmword [rsp + 0x70]
xorps xmm2, xmm0
movq qword [rsp + 0x60], xmm2
mov eax, r8d
lea r9, [rsp + 0x38]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 2]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x36
xor word [r9 - 2], ax
cmp r8d, 0x1a
jl 0x1800368c0
mov rax, qword [0x1800ae1c8]
lea r8, [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x1800ae4b0], rax
mov rdx, qword [rdi]
xorps xmm1, xmm1
xorps xmm0, xmm0
movsd qword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm1
test rdx, rdx
je 0x180036949
mov rcx, qword [0x1800ad248]
mov r9, qword [rdx + rcx*8]
test r9, r9
je 0x180036949
lea r8, [rsp + 0x20]
mov rdx, rax
mov rcx, rdi
call r9
movups xmm1, xmmword [rsp + 0x20]
movsd xmm0, qword [rsp + 0x30]
mov rax, rbx
movups xmmword [rbx], xmm1
movsd qword [rbx + 0x10], xmm0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret