Function at 0x18001b6a0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x2a8]
sub rsp, 0x3a0
mov qword [r11 + 8], rbx
mov rbx, r9
mov qword [r11 + 0x10], rsi
mov rsi, rcx
mov qword [r11 + 0x18], rdi
mov rdi, r8
mov qword [r11 - 0x10], r14
mov r14, rdx
mov rdx, qword [0x18014e7e0]
mov qword [r11 - 0x18], r15
xor r15d, r15d
test rdx, rdx
jne 0x18001b95d
cmp dword [0x1800542c0], 2
mov r8d, r15d
movups xmm0, xmmword [0x180049f30]
movups xmm1, xmmword [0x180049f40]
mov eax, dword [0x180049fc0]
movups xmmword [rbp + 0x1b0], xmm0
mov dword [rbp + 0x240], eax
movups xmm0, xmmword [0x180049f50]
movups xmmword [rbp + 0x1d0], xmm0
movups xmm0, xmmword [0x180049f70]
movups xmmword [rbp + 0x1c0], xmm1
movups xmm1, xmmword [0x180049f60]
movups xmmword [rbp + 0x1f0], xmm0
movups xmm0, xmmword [0x180049f90]
movups xmmword [rbp + 0x1e0], xmm1
movups xmm1, xmmword [0x180049f80]
movups xmmword [rbp + 0x210], xmm0
movups xmm0, xmmword [0x180049fb0]
movups xmmword [rbp + 0x200], xmm1
movups xmm1, xmmword [0x180049fa0]
movups xmmword [rbp + 0x230], xmm0
movups xmmword [rbp + 0x220], xmm1
jl 0x18001b8e5
movdqa xmm5, xmmword [0x18004fda0]
lea rcx, [rbp + 0x1b0]
movdqa xmm4, xmmword [0x180050ef0]
mov eax, 4
movaps xmmword [r11 - 0x28], xmm6
movaps xmmword [r11 - 0x38], xmm7
movdqa xmm7, xmmword [0x18004fdc0]
movaps xmmword [r11 - 0x48], xmm8
movd xmm6, eax
mov eax, 0x1f
movaps xmmword [r11 - 0x58], xmm9
movdqa xmm9, xmmword [0x18004fdd0]
movd xmm8, eax
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 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 r8d, 0x48
jl 0x18001b7d0
movaps xmm9, xmmword [rsp + 0x350]
movaps xmm8, xmmword [rsp + 0x360]
movaps xmm7, xmmword [rsp + 0x370]
movaps xmm6, xmmword [rsp + 0x380]
cmp r8d, 0x4a
jge 0x18001b935
movsxd rax, r8d
lea r9, [rbp + 0x1b0]
lea r9, [r9 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4d4873ed
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x35
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x36
xor word [r9 - 2], ax
cmp r8d, 0x4a
jl 0x18001b900
mov rax, qword [0x18014e530]
lea r8, [rbp + 0x1b0]
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor ecx, ecx
lea rdx, [r9 - 1]
call rax
mov rdx, rax
mov qword [0x18014e7e0], rax
xorps xmm0, xmm0
mov qword [rsp + 0x30], r14
mov r14, qword [rsp + 0x398]
xor eax, eax
mov qword [rbp + 0x1a0], rax
xorps xmm1, xmm1
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov eax, dword [rbp + 0x2d0]
mov dword [rsp + 0x48], eax
mov rax, qword [rbp + 0x2d8]
movsd qword [rbp + 0x118], xmm0
movups xmmword [rbp + 0x120], xmm1
mov qword [rsp + 0x38], rdi
mov rdi, qword [rsp + 0x3c0]
mov qword [rsp + 0x40], rbx
mov rbx, qword [rsp + 0x3b0]
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
mov qword [rbp - 8], r15
mov qword [rbp], r15
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x60], r15
mov qword [rbp + 0xd8], r15
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], r15
mov qword [rbp + 0xf0], r15
mov qword [rbp + 0xf8], r15
mov qword [rbp + 0x100], r15
mov qword [rbp + 0x108], r15
mov qword [rbp + 0x110], r15
movups xmmword [rbp - 0x64], xmm0
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], r15
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rsp + 0x5c], xmm0
movups xmmword [rsp + 0x6c], xmm0
movups xmmword [rsp + 0x7c], xmm0
movups xmmword [rbp - 0x74], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
movups xmmword [rbp + 0x48], xmm0
movups xmmword [rbp + 0x68], xmm0
movups xmmword [rbp + 0x78], xmm0
movups xmmword [rbp + 0x88], xmm0
movups xmmword [rbp + 0x98], xmm0
movups xmmword [rbp + 0xa8], xmm0
movups xmmword [rbp + 0xb8], xmm0
movups xmmword [rbp + 0xc8], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmm0, xmmword [rax]
movzx eax, byte [rbp + 0x2e8]
mov byte [rbp + 0x178], al
mov rax, qword [rbp + 0x2f0]
movups xmmword [rsp + 0x4c], xmm0
movups xmm0, xmmword [rax]
mov rax, qword [rbp + 0x2f8]
movups xmmword [rbp + 0x180], xmm0
movups xmm1, xmmword [rax]
mov eax, dword [rbp + 0x300]
mov dword [rbp + 0x1a0], eax
movzx eax, byte [rbp + 0x308]
mov byte [rbp + 0x1a4], al
movups xmmword [rbp + 0x190], xmm1
test rdx, rdx
je 0x18001bb0e
mov rax, qword [rsi]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [rax + 0x260]
mov rcx, qword [rbp + 0x2e0]
mov r15, qword [rsp + 0x390]
mov rsi, qword [rsp + 0x3b8]
test rcx, rcx
je 0x18001bb34
lea rdx, [rsp + 0x60]
call fcn.180001ba0
movzx eax, byte [rbp + 0x1a5]
add rsp, 0x3a0
pop rbp
ret