Function at 0x18002f810
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
call fcn.1800654b0
xor edi, edi
lea rbx, [rdi - 1]
lea r15d, [rdi + 1]
lea r12d, [rdi + 0x1f]
mov r14d, dword [0x180112028]
test eax, eax
je 0x18002fa48
cmp eax, r15d
je 0x18002fa48
movups xmm0, xmmword [0x1800ed4f8]
movups xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [0x1800ed508]
movsd qword [rbp - 0x29], xmm0
cmp byte [0x1800ed50f], dil
je 0x18002fa0f
cmp r14d, 2
jl 0x18002f9d1
movdqa xmm5, xmmword [0x1800feda0]
mov edx, edi
movdqa xmm4, xmmword [0x1800fef20]
movd xmm6, r15d
movdqa xmm7, xmmword [0x1800fee30]
movd xmm8, r12d
movdqa xmm0, xmmword [0x1800fef30]
movdqa xmmword [rbp - 0x49], xmm0
lea rcx, [rbp - 0x39]
mov r8d, dword [rbp - 0x49]
nop
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [rdx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
pxor xmm2, xmm0
movd dword [rcx + 4], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x18
jl 0x18002f8d0
jmp 0x18002fa0f
lea r9, [rbp - 0x39]
mov r8d, edi
nop dword [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x18
jl 0x18002f9e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
lea rax, [rbp - 0x39]
mov r8, rbx
inc r8
cmp byte [rax + r8], dil
jne 0x18002fa25
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.180013d70
movzx edx, r15b
lea rcx, [rbp - 0x19]
call fcn.180029370
cmp qword [0x180211bc0], rdi
je 0x18002faeb
call fcn.18002c460
mov rsi, rax
mov rcx, rax
call fcn.18004efa0
test al, al
je 0x18002fa7b
mov rcx, qword [0x180112c68]
cmp rcx, rbx
je 0x18002fa7b
mov rcx, qword [rcx + rsi]
jmp 0x18002fa7e
mov rcx, rdi
call fcn.18004efa0
test al, al
je 0x18002faeb
mov ecx, 0x18
call fcn.1800b7bb0
mov rbx, rax
mov qword [rbp + 0x67], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov r14, qword [0x180211bc0]
call fcn.18002c460
mov rsi, rax
mov rcx, rax
call fcn.18004efa0
test al, al
je 0x18002fad0
mov rcx, qword [0x180112c68]
cmp rcx, 0xffffffffffffffff
je 0x18002fad0
mov rdi, qword [rcx + rsi]
mov r8, r14
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.1800302f0
nop
mov qword [0x180211880], rax
jmp 0x18002fce6
movups xmm0, xmmword [0x1800ed4d8]
movups xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [0x1800ed4e8]
movsd qword [rbp - 0x29], xmm0
mov eax, dword [0x1800ed4f0]
mov dword [rbp - 0x21], eax
movzx eax, word [0x1800ed4f4]
mov word [rbp - 0x1d], ax
movzx eax, byte [0x1800ed4f6]
mov byte [rbp - 0x1b], al
mov ecx, edi
cmp r14d, 2
jl 0x18002fc74
movdqa xmm5, xmmword [0x1800feda0]
movdqa xmm4, xmmword [0x1800fef20]
movd xmm6, r15d
movdqa xmm7, xmmword [0x1800fee30]
movd xmm8, r12d
movdqa xmm0, xmmword [0x1800fef30]
movdqa xmmword [rbp - 0x49], xmm0
lea rdx, [rbp - 0x39]
mov r8d, dword [rbp - 0x49]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, 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
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
pxor xmm2, xmm0
movd dword [rdx], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
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
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx + 4]
pxor xmm2, xmm0
movd dword [rdx + 4], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x18002fb70
cmp ecx, r12d
jge 0x18002fcab
movsxd rax, ecx
lea r8, [rbp - 0x39]
add r8, rax
nop
mov eax, 0x94f2095
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, r12d
jl 0x18002fc80
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
lea rax, [rbp - 0x39]
nop
inc rbx
cmp byte [rax + rbx], dil
jne 0x18002fcc0
mov r8, rbx
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.180013d70
movzx edx, r15b
lea rcx, [rbp - 0x19]
call fcn.180029370
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret