Function at 0x1800218a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1800d4040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r14d, r14d
mov eax, dword [0x1800d5c28]
cmp eax, 0xc
jl 0x1800220aa
cmp eax, 0x1c
jge 0x1800220aa
movups xmm0, xmmword [0x1800b20f8]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [0x1800b2108]
movups xmmword [rbp - 0x59], xmm1
movups xmm0, xmmword [0x1800b2118]
movups xmmword [rbp - 0x49], xmm0
movsd xmm0, qword [0x1800b2128]
movsd qword [rbp - 0x39], xmm0
mov eax, dword [0x1800b2130]
mov dword [rbp - 0x31], eax
mov r8d, r14d
mov edi, dword [0x1800d4018]
cmp edi, 2
jl 0x180021a75
movdqa xmm5, xmmword [0x1800c2cc0]
movdqa xmm4, xmmword [0x1800c2d80]
movdqa xmm6, xmmword [0x1800c2ce0]
movdqa xmm0, xmmword [0x1800c2da0]
movdqa xmmword [rbp - 0x79], xmm0
lea rcx, [rbp - 0x65]
mov edx, dword [rbp - 0x79]
nop word [rax + rax]
movd xmm2, r8d
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, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 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, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x38
jl 0x180021970
cmp r8d, 0x3c
jge 0x180021aaf
movsxd rax, r8d
lea r9, [rbp - 0x69]
add r9, rax
nop
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, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x3c
jl 0x180021a80
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], r14
lea rax, [rbp - 0x69]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x180021ad0
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 0xf]
call fcn.18001d5d0
nop
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov qword [rbp + 7], r14
mov eax, dword [0x1800b20ec]
mov dword [rbp - 0x79], eax
movzx eax, word [0x1800b20f0]
mov word [rbp - 0x75], ax
mov byte [rbp - 0x79], 0x38
xor byte [rbp - 0x78], 0x36
xor byte [rbp - 0x77], 0x37
xor byte [rbp - 0x76], 0x38
xor al, 0x39
mov byte [rbp - 0x75], al
xor byte [rbp - 0x74], 0x3a
movups xmmword [rbp - 0x29], xmm0
movdqu xmmword [rbp - 0x19], xmm1
lea rax, [rbp - 0x79]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x180021b33
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x29]
call fcn.18001d5d0
nop
mov rdx, qword [rbp - 1]
cmp rdx, qword [rbp + 7]
je 0x180021b7c
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rdx + 0x10], xmm1
movdqa xmm0, xmmword [0x1800c2ca0]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
add qword [rbp - 1], 0x20
jmp 0x180021b8a
lea r8, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.1800225a0
nop
lea rcx, [rbp - 0x29]
call fcn.18001faf0
movsd xmm0, qword [0x1800b20e0]
movsd qword [rbp - 0x79], xmm0
mov eax, dword [0x1800b20e8]
mov dword [rbp - 0x71], eax
cmp byte [0x1800b20eb], 0
je 0x180021cff
mov r8d, r14d
cmp edi, 2
jl 0x180021cc1
movdqa xmm4, xmmword [0x1800c2d80]
movdqa xmm2, xmmword [0x1800c2cc0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800c2ce0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
mov eax, dword [0x1800c2da0]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x1800b20e0]
xorps xmm2, xmm0
movd dword [rbp - 0x79], xmm2
movdqa xmm3, xmmword [0x1800c2cd0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
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, xmmword [0x1800c2ce0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x75]
xorps xmm2, xmm1
movd dword [rbp - 0x75], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x79]
add r9, rax
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, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xc
jl 0x180021cd0
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea rax, [rbp - 0x79]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x180021d15
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x29]
call fcn.18001d5d0
nop
mov rdx, qword [rbp - 1]
cmp rdx, qword [rbp + 7]
je 0x180021d5e
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rdx + 0x10], xmm1
movdqa xmm0, xmmword [0x1800c2ca0]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
add qword [rbp - 1], 0x20
jmp 0x180021d6c
lea r8, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.1800225a0
nop
lea rcx, [rbp - 0x29]
call fcn.18001faf0
movsd xmm0, qword [0x1800b20d0]
movsd qword [rbp - 0x79], xmm0
mov eax, dword [0x1800b20d8]
mov dword [rbp - 0x71], eax
cmp byte [0x1800b20db], 0
je 0x180021edf
mov r8d, r14d
cmp edi, 2
jl 0x180021ea3
movdqa xmm4, xmmword [0x1800c2d80]
movdqa xmm2, xmmword [0x1800c2cc0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800c2ce0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
mov eax, dword [0x1800c2da0]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x1800b20d0]
xorps xmm2, xmm0
movd dword [rbp - 0x79], xmm2
movdqa xmm3, xmmword [0x1800c2cd0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
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, xmmword [0x1800c2ce0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800c2d70]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x75]
xorps xmm2, xmm1
movd dword [rbp - 0x75], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x79]
add r9, rax
nop dword [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, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xc
jl 0x180021eb0
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea rax, [rbp - 0x79]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180021ef2
mov r8, rbx
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x29]
call fcn.18001d5d0
nop
mov rdx, qword [rbp - 1]
cmp rdx, qword [rbp + 7]
je 0x180021f3d
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rdx + 0x10], xmm1
movdqa xmm0, xmmword [0x1800c2ca0]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
add qword [rbp - 1], 0x20
jmp 0x180021f4b
lea r8, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.1800225a0
nop
lea rcx, [rbp - 0x29]
call fcn.18001faf0
cmp dword [0x1800d5c28], 0x1a
jl 0x180021fa3
mov rdi, qword [rbp - 9]
mov rsi, qword [rbp - 1]
lea rbx, [rdi + 0x20]
cmp rbx, rsi
je 0x180021f8c
nop
mov rdx, rbx
mov rcx, rdi
call fcn.18001f6e0
add rdi, 0x20
add rbx, 0x20
cmp rbx, rsi
jne 0x180021f70
mov rsi, qword [rbp - 1]
lea rcx, [rsi - 0x20]
call fcn.18001faf0
mov rdi, qword [rbp - 1]
sub rdi, 0x20
mov qword [rbp - 1], rdi
jmp 0x180021fa7
mov rdi, qword [rbp - 1]
mov rbx, qword [rbp - 9]
cmp rbx, rdi
je 0x180022097
movabs r15, 0x7fffffffffffffff
lea r12, [0x1800b1a40]
nop word [rax + rax]
mov rax, r15
mov rcx, qword [rbp + 0x1f]
sub rax, rcx
cmp rax, 1
jb 0x1800220fc
lea r9, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova r9, qword [rbp + 0xf]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x69]
call fcn.18001e580
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18002201c
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x69]
call fcn.18001f5f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x69]
call fcn.18001faf0
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
xor r8d, r8d
lea rcx, [rbp - 0x79]
call fcn.18001e960
mov rsi, qword [rax]
lea rcx, [rbp - 0x29]
call fcn.18001faf0
test rsi, rsi
jne 0x1800220dc
add rbx, 0x20
cmp rbx, rdi
jne 0x180021fd0
lea rcx, [rbp - 9]
call fcn.18001f160
nop
lea rcx, [rbp + 0xf]
call fcn.18001faf0
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180086e20
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, [0x1800d5ca8]
lea rdx, [0x18006e2c0]
mov rcx, rsi
call fcn.180081c40
mov rcx, rsi
call fcn.180081ed8
jmp 0x180022097
call fcn.18001f8d0
int3