Function at 0x1800c7800
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x12], 0
mov rax, rcx
je 0x1800c84c6
movdqa xmm2, xmmword [0x180164c10]
xor r8d, r8d
movdqa xmm3, xmmword [0x180164b70]
mov r9d, r8d
mov qword [rsp + 0x38], rsi
mov r11, 0xfffffffffffffffe
mov esi, dword [0x180182290]
mov r10d, 2
movaps xmmword [rsp + 0x10], xmm6
movaps xmmword [rsp], xmm7
movdqa xmm7, xmmword [0x180164bb0]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
cmp esi, 5
jl 0x1800c796c
movdqa xmm4, xmmword [0x18016d800]
lea rdx, [rcx + 4]
mov rbx, r11
mov edi, r10d
sub rbx, rcx
sub rdi, rcx
nop dword [rax + rax]
movzx ecx, word [rdx - 4]
movq xmm0, r9
punpcklqdq xmm0, xmm0
add r9, 8
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [rbx + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, rax
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [rdi + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp r9, 0x10
jb 0x1800c7880
cmp r9, 0x12
jae 0x1800c799d
movabs rbx, 0xff7f7e7e7fff7e7f
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rbx
and cl, 3
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x12
jb 0x1800c7980
movzx ecx, byte [rax + 1]
lea rdx, [rax + 4]
not cl
xor byte [rax], 0x1c
xor cl, 0xd2
xor byte [rax + 3], 0x29
xor byte [rdx], 0x3b
mov r9, r8
xor byte [rax + 8], 0x2f
xor byte [rax + 9], 0x99
xor byte [rax + 0xd], 0x4d
xor byte [rax + 0xe], 0x9f
movdqa xmm6, xmmword [0x180164be0]
mov byte [rax + 1], cl
movzx ecx, byte [rax + 2]
not cl
xor cl, 0xa4
mov byte [rax + 2], cl
movzx ecx, byte [rax + 5]
not cl
xor cl, 0xb7
mov byte [rax + 5], cl
movzx ecx, byte [rax + 6]
not cl
xor cl, 0xb3
mov byte [rax + 6], cl
movzx ecx, byte [rax + 7]
not cl
xor cl, 0xc2
mov byte [rax + 7], cl
movzx ecx, byte [rax + 0xa]
not cl
xor cl, 0x15
mov byte [rax + 0xa], cl
movzx ecx, byte [rax + 0xb]
not cl
xor cl, 0xa6
mov byte [rax + 0xb], cl
movzx ecx, byte [rax + 0xc]
not cl
xor cl, 0xf7
mov byte [rax + 0xc], cl
movzx ecx, byte [rax + 0xf]
not cl
xor cl, 0xb2
mov byte [rax + 0xf], cl
movzx ecx, byte [rax + 0x10]
not cl
xor cl, 5
mov byte [rax + 0x10], cl
movzx ecx, byte [rax + 0x11]
not cl
xor cl, 0xf7
mov byte [rax + 0x11], cl
cmp esi, 5
jl 0x1800c7b5c
movdqa xmm4, xmmword [0x180169b30]
mov rbx, r11
sub rbx, rax
mov rdi, r10
sub rdi, rax
nop word [rax + rax]
movzx ecx, word [rdx - 4]
movq xmm0, r9
punpcklqdq xmm0, xmm0
add r9, 8
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [rdx + rbx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, rax
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [rdx + rdi]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp r9, 0x10
jb 0x1800c7a70
cmp r9, 0x12
jae 0x1800c7b8d
movabs rbx, 0x9fdfdff9bfbd9dbd
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rbx
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x12
jb 0x1800c7b70
movdqu xmm0, xmmword [rax]
lea rcx, [rax + 0x10]
mov rdx, r10
movdqa xmm1, xmmword [0x180169cf0]
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
nop word [rax + rax]
xor byte [rcx], 0xaa
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1800c7bb0
movdqa xmm5, xmmword [0x180164b80]
mov r9, r8
cmp esi, 5
jl 0x1800c7cdc
movdqa xmm4, xmmword [0x18016d790]
lea rdx, [rax + 4]
mov rbx, r11
mov rdi, r10
sub rbx, rax
sub rdi, rax
nop dword [rax]
movzx ecx, word [rdx - 4]
movq xmm0, r9
punpcklqdq xmm0, xmm0
add r9, 8
paddq xmm0, xmm3
andps xmm0, xmm5
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [rbx + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm5
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, rax
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm5
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [rdi + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm5
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp r9, 0x10
jb 0x1800c7bf0
cmp r9, 0x12
jae 0x1800c7d0d
movabs rbx, 0xff7f77f7f77ff7f7
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rbx
and cl, 1
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x12
jb 0x1800c7cf0
xor byte [rax], 0xee
mov r9, r8
xor byte [rax + 1], 0x67
xor byte [rax + 2], 0x6e
xor byte [rax + 3], 0xee
xor byte [rax + 4], 0x67
xor byte [rax + 5], 0x6e
xor byte [rax + 6], 0xee
xor byte [rax + 7], 0x67
xor byte [rax + 8], 0x6e
xor byte [rax + 9], 0xee
xor byte [rax + 0xa], 0x67
xor byte [rax + 0xb], 0x6e
xor byte [rax + 0xc], 0xee
xor byte [rax + 0xd], 0x67
xor byte [rax + 0xe], 0x6e
xor byte [rax + 0xf], 0xee
xor byte [rax + 0x10], 0x67
xor byte [rax + 0x11], 0x6e
cmp esi, 5
jl 0x1800c7e6c
movdqa xmm4, xmmword [0x18016b070]
lea rdx, [rax + 4]
mov rbx, r11
mov rdi, r10
sub rbx, rax
sub rdi, rax
nop dword [rax + rax]
movzx ecx, word [rdx - 4]
movq xmm0, r9
punpcklqdq xmm0, xmm0
add r9, 8
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [rbx + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, rax
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [rdi + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp r9, 0x10
jb 0x1800c7d80
cmp r9, 0x12
jae 0x1800c7e9d
movabs rbx, 0xd57f75ff77d5ddf7
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rbx
and cl, 3
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x12
jb 0x1800c7e80
xor byte [rax], 0x9a
mov r9, r8
xor byte [rax + 1], 0x33
xor byte [rax + 2], 0x42
xor byte [rax + 3], 0xd4
xor byte [rax + 4], 0x66
xor byte [rax + 5], 0x13
xor byte [rax + 6], 0xba
xor byte [rax + 7], 0xd3
xor byte [rax + 8], 0xc
xor byte [rax + 9], 0x73
xor byte [rax + 0xa], 0x53
xor byte [rax + 0xb], 0xea
xor byte [rax + 0xc], 0xd6
xor byte [rax + 0xd], 0xc9
xor byte [rax + 0xe], 0xe6
xor byte [rax + 0xf], 7
xor byte [rax + 0x10], 0x77
xor byte [rax + 0x11], 0x56
cmp esi, 5
jl 0x1800c7ffc
movdqa xmm4, xmmword [0x180168660]
lea rdx, [rax + 4]
mov rbx, r11
mov rdi, r10
sub rbx, rax
sub rdi, rax
nop dword [rax + rax]
movzx ecx, word [rdx - 4]
movq xmm0, r9
punpcklqdq xmm0, xmm0
add r9, 8
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [rbx + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, rax
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [rdi + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp r9, 0x10
jb 0x1800c7f10
cmp r9, 0x12
jae 0x1800c802d
movabs rbx, 0x7f55915dd9db9df9
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rbx
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x12
jb 0x1800c8010
movdqu xmm0, xmmword [rax]
lea rcx, [rax + 0x10]
mov rdx, r10
movdqa xmm1, xmmword [0x18016b3c0]
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
nop word [rax + rax]
xor byte [rcx], 0xd8
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1800c8050
mov r9, r8
cmp esi, 5
jl 0x1800c816d
movdqa xmm4, xmmword [0x180166900]
lea rdx, [rax + 4]
mov rbx, r11
mov rdi, r10
sub rbx, rax
sub rdi, rax
movzx ecx, word [rdx - 4]
movq xmm0, r9
punpcklqdq xmm0, xmm0
add r9, 8
paddq xmm0, xmm3
andps xmm0, xmm5
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [rbx + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm5
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, rax
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm5
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [rdi + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm5
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp r9, 0x10
jb 0x1800c8081
cmp r9, 0x12
jae 0x1800c819d
movabs rbx, 0x597d73cfcc5acb55
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rbx
and cl, 1
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x12
jb 0x1800c8180
xor byte [rax], 0xe1
mov r9, r8
xor byte [rax + 1], 0xe0
xor byte [rax + 2], 0xa5
xor byte [rax + 3], 0xe1
xor byte [rax + 4], 0xe0
xor byte [rax + 5], 0xa5
xor byte [rax + 6], 0xe1
xor byte [rax + 7], 0xe0
xor byte [rax + 8], 0xa5
xor byte [rax + 9], 0xe1
xor byte [rax + 0xa], 0xe0
xor byte [rax + 0xb], 0xa5
xor byte [rax + 0xc], 0xe1
xor byte [rax + 0xd], 0xe0
xor byte [rax + 0xe], 0xa5
xor byte [rax + 0xf], 0xe1
xor byte [rax + 0x10], 0xe0
xor byte [rax + 0x11], 0xa5
cmp esi, 5
jl 0x1800c82fc
movdqa xmm4, xmmword [0x18016a550]
lea rdx, [rax + 4]
mov rbx, r11
mov rdi, r10
sub rbx, rax
sub rdi, rax
nop dword [rax + rax]
movzx ecx, word [rdx - 4]
movq xmm0, r9
punpcklqdq xmm0, xmm0
add r9, 8
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [rdx + rbx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, rax
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [rdx + rdi]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm7
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp r9, 0x10
jb 0x1800c8210
cmp r9, 0x12
jae 0x1800c832d
movabs rbx, 0xbd9217b313fd5e37
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rbx
and cl, 3
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x12
jb 0x1800c8310
xor byte [rax], 0x12
xor byte [rax + 1], 0x63
xor byte [rax + 2], 0x3c
xor byte [rax + 3], 0x53
xor byte [rax + 4], 0xd4
xor byte [rax + 5], 9
xor byte [rax + 6], 0x57
xor byte [rax + 7], 0x98
xor byte [rax + 8], 0xd1
xor byte [rax + 9], 0x9b
xor byte [rax + 0xa], 0xb7
xor byte [rax + 0xb], 0x94
xor byte [rax + 0xc], 0x20
xor byte [rax + 0xd], 0x1d
xor byte [rax + 0xe], 0xdd
xor byte [rax + 0xf], 0x24
xor byte [rax + 0x10], 0x9a
xor byte [rax + 0x11], 0x77
movaps xmm7, xmmword [rsp]
cmp esi, 5
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
jl 0x1800c848e
movdqa xmm4, xmmword [0x180166260]
lea rdx, [rax + 4]
sub r11, rax
sub r10, rax
movzx ecx, word [rdx - 4]
movq xmm0, r8
punpcklqdq xmm0, xmm0
add r8, 8
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [r11 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, rax
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [r10 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm6
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm2
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp r8, 0x10
jb 0x1800c83a2
cmp r8, 0x12
jae 0x1800c84bd
movabs r9, 0x4f5db529bd251177
nop dword [rax + rax]
movzx ecx, r8b
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [rax + r8], dl
inc r8
cmp r8, 0x12
jb 0x1800c84a0
movaps xmm6, xmmword [rsp + 0x10]
mov byte [rax + 0x12], 0
add rsp, 0x28
ret