Function at 0x18001b190
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x18004d8e0]
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test rax, rax
jne 0x18001b5d7
movups xmm0, xmmword [0x180045330]
xor ecx, ecx
movups xmm1, xmmword [0x180045340]
mov r8d, ecx
mov r10d, dword [0x18004b018]
movups xmmword [rsp + 0x80], xmm0
movups xmm0, xmmword [0x180045350]
mov qword [r11 + 8], rbp
lea ebp, [rax + 0x1f]
movups xmmword [rsp + 0x90], xmm1
movups xmm1, xmmword [0x180045360]
movaps xmmword [r11 - 0x18], xmm6
movups xmmword [r11 - 0x78], xmm0
movsd xmm0, qword [0x180045370]
movaps xmmword [r11 - 0x28], xmm7
movsd qword [r11 - 0x58], xmm0
movaps xmmword [r11 - 0x38], xmm8
movups xmmword [r11 - 0x68], xmm1
lea r11d, [rax + 4]
cmp r10d, 2
jl 0x18001b377
movdqa xmm0, xmmword [str.1111111111111111]
lea rdx, [rsp + 0x84]
movdqa xmm5, xmmword [0x180045d60]
movdqa xmm4, xmmword [0x1800460e0]
movdqa xmm7, xmmword [0x180045dc0]
movdqa xmmword [rsp + 0x20], xmm0
mov r9d, dword [rsp + 0x20]
movd xmm6, r11d
movd xmm8, ebp
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
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
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x180045ea0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r9d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r9d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180045ea0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp r8d, 0x48
jl 0x18001b270
jmp 0x18001b3aa
lea r9, [rsp + 0x80]
nop
mov eax, 0x51eb851f
lea r9, [r9 + 1]
mul r8d
shr edx, 4
movsx eax, dl
imul edx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x48
jl 0x18001b380
movups xmm0, xmmword [0x180045380]
movups xmm1, xmmword [0x180045390]
mov eax, dword [0x1800453c8]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1800453a0]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [0x1800453c0]
movups xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [0x1800453b0]
movsd qword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x78], eax
cmp r10d, 2
jl 0x18001b537
movdqa xmm5, xmmword [0x180045d60]
lea rdx, [rsp + 0x30]
movdqa xmm4, xmmword [0x1800460e0]
movdqa xmm7, xmmword [0x180045dc0]
movaps xmmword [rsp + 0xd0], xmm9
movdqa xmm9, xmmword [0x180045e90]
movd xmm6, r11d
movd xmm8, ebp
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 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 [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rdx - 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 [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x20
jl 0x18001b440
movaps xmm9, xmmword [rsp + 0xd0]
cmp ecx, 0x26
jge 0x18001b581
movsxd rax, ecx
lea r8, [rsp + 0x30]
lea r8, [r8 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x32
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x31
xor word [r8 - 2], ax
cmp ecx, 0x26
jl 0x18001b550
xor r9d, r9d
lea rdx, [rsp + 0x80]
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.18001ffa0
mov rdx, rax
mov qword [0x18004d8e0], rax
lea rcx, str.___ScriptCore::ProcessEvent:__p_n
call fcn.18001b600
mov rax, qword [0x18004d8e0]
movaps xmm8, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
movaps xmm6, xmmword [rsp + 0x100]
mov rbp, qword [rsp + 0x120]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
jmp rax