Function at 0x180030890
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x13], 0
mov rax, rcx
je 0x18003157b
movdqa xmm2, xmmword [0x180164c10]
xor r8d, r8d
movdqa xmm3, xmmword [0x180164b70]
mov r9d, r8d
mov qword [rsp + 0x30], rbx
mov r11, 0xfffffffffffffffe
mov qword [rsp + 0x38], rbp
mov ebx, 2
mov ebp, dword [0x180182290]
movaps xmmword [rsp + 0x10], xmm6
movaps xmmword [rsp], xmm7
movdqa xmm7, xmmword [0x180164bb0]
mov qword [rsp + 0x20], rdi
cmp ebp, 5
jl 0x1800309fc
movdqa xmm4, xmmword [0x180168e60]
lea rdx, [rcx + 4]
mov r10, r11
mov edi, ebx
sub r10, rcx
sub rdi, rcx
nop dword [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, [r10 + 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 0x180030910
cmp r9, 0x13
jae 0x180030a2d
movabs r10, 0x7fff7e7ffefe7f7e
nop word [rax + rax]
movzx ecx, r9b
mov rdx, r10
and cl, 3
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x13
jb 0x180030a10
movzx ecx, byte [rax + 1]
lea rdx, [rax + 4]
xor byte [rax], 0x7b
not cl
xor byte [rax + 2], 0xd8
xor cl, 0x22
xor byte [rax + 5], 0x4d
mov r9, r8
xor byte [rax + 6], 0x2e
xor byte [rax + 7], 0xd8
xor byte [rax + 8], 0x5d
xor byte [rax + 9], 0xdb
xor byte [rax + 0xb], 0x59
xor byte [rax + 0xc], 0x2e
xor byte [rax + 0xe], 0xf8
xor byte [rax + 0x11], 0x4d
movdqa xmm6, xmmword [0x180164be0]
mov byte [rax + 1], cl
movzx ecx, byte [rax + 3]
not cl
xor cl, 0xd1
mov byte [rax + 3], cl
movzx ecx, byte [rdx]
not cl
xor cl, 0xe4
mov byte [rdx], cl
movzx ecx, byte [rax + 0xa]
not cl
xor cl, 0xd0
mov byte [rax + 0xa], cl
movzx ecx, byte [rax + 0xd]
not cl
xor cl, 0xf2
mov byte [rax + 0xd], cl
movzx ecx, byte [rax + 0xf]
not cl
xor cl, 1
mov byte [rax + 0xf], cl
movzx ecx, byte [rax + 0x10]
not cl
xor cl, 0x85
mov byte [rax + 0x10], cl
movzx ecx, byte [rax + 0x12]
not cl
xor cl, 0x45
mov byte [rax + 0x12], cl
cmp ebp, 5
jl 0x180030bce
movdqa xmm4, xmmword [0x18016cbf0]
mov r10, r11
sub r10, rax
mov rdi, rbx
sub rdi, 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 + r10]
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 0x180030ae2
cmp r9, 0x13
jae 0x180030bfd
movabs r10, 0xf9d99bdbddd9bfb9
nop dword [rax + rax]
movzx ecx, r9b
mov rdx, r10
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x13
jb 0x180030be0
movdqu xmm0, xmmword [rax]
lea rcx, [rax + 0x10]
mov r10d, 3
movdqa xmm1, xmmword [0x18016a0b0]
mov edx, r10d
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
nop dword [rax]
xor byte [rcx], 0xb8
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x180030c20
movdqa xmm5, xmmword [0x180164b80]
mov r9, r8
mov qword [rsp + 0x40], rsi
cmp ebp, 5
jl 0x180030d4c
movdqa xmm4, xmmword [0x18016c7a0]
lea rdx, [rax + 4]
mov rdi, r11
mov rsi, rbx
sub rdi, rax
sub rsi, rax
nop
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, [rdx + rdi]
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, [rdx + rsi]
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 0x180030c60
cmp r9, 0x13
jae 0x180030d7d
movabs rdi, 0xf77f7fff77f77ff7
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rdi
and cl, 1
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x13
jb 0x180030d60
xor byte [rax], r11b
mov r9, r8
xor byte [rax + 1], r11b
xor byte [rax + 2], r11b
xor byte [rax + 3], r11b
xor byte [rax + 4], r11b
xor byte [rax + 5], r11b
xor byte [rax + 6], r11b
xor byte [rax + 7], r11b
xor byte [rax + 8], r11b
xor byte [rax + 9], r11b
xor byte [rax + 0xa], r11b
xor byte [rax + 0xb], r11b
xor byte [rax + 0xc], r11b
xor byte [rax + 0xd], r11b
xor byte [rax + 0xe], r11b
xor byte [rax + 0xf], r11b
xor byte [rax + 0x10], r11b
xor byte [rax + 0x11], r11b
xor byte [rax + 0x12], r11b
cmp ebp, 5
jl 0x180030edc
movdqa xmm4, xmmword [0x180168080]
lea rdx, [rax + 4]
mov rdi, r11
mov rsi, rbx
sub rdi, rax
sub rsi, rax
nop dword [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 + 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
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 + rsi]
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 0x180030df0
cmp r9, 0x13
jae 0x180030f0d
movabs rdi, 0x7d77f557d7df7555
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rdi
and cl, r10b
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x13
jb 0x180030ef0
movzx ecx, byte [rax + 2]
mov r9, r8
xor byte [rax], 0x14
not cl
xor byte [rax + 1], 0x66
xor cl, 0x2c
xor byte [rax + 3], 0x30
xor byte [rax + 4], 0xcb
xor byte [rax + 5], 0xd
xor byte [rax + 6], 0x22
xor byte [rax + 7], 0xa
xor byte [rax + 9], 0xb
xor byte [rax + 0xa], 0x18
xor byte [rax + 0xb], 0xb7
xor byte [rax + 0xc], 0xd7
xor byte [rax + 0xd], 0x3c
xor byte [rax + 0xf], 0xd4
xor byte [rax + 0x10], 0xbb
xor byte [rax + 0x11], 0x46
xor byte [rax + 0x12], 0x6d
mov byte [rax + 2], cl
movzx ecx, byte [rax + 8]
not cl
xor cl, 0x43
mov byte [rax + 8], cl
movzx ecx, byte [rax + 0xe]
not cl
xor cl, 0x25
mov byte [rax + 0xe], cl
cmp ebp, 5
jl 0x18003108c
movdqa xmm4, xmmword [0x180165200]
lea rdx, [rax + 4]
mov rdi, r11
mov rsi, rbx
sub rdi, rax
sub rsi, rax
nop dword [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, [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
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, [rsi + 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 0x180030fa0
cmp r9, 0x13
jae 0x1800310bd
movabs rdi, 0x1b7b55db599b333b
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rdi
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x13
jb 0x1800310a0
movdqu xmm0, xmmword [rax]
lea rcx, [rax + 0x10]
mov rsi, qword [rsp + 0x40]
movdqa xmm1, xmmword [0x18016bf30]
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
nop dword [rax]
xor byte [rcx], 0xe7
lea rcx, [rcx + 1]
sub r10, 1
jne 0x1800310e0
mov r9, r8
cmp ebp, 5
jl 0x1800311fd
movdqa xmm4, xmmword [0x18016ccd0]
lea rdx, [rax + 4]
mov r10, r11
mov rdi, rbx
sub r10, 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, [r10 + 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 0x180031111
cmp r9, 0x13
jae 0x18003122d
movabs r10, 0xfb63ed407b794045
nop word [rax + rax]
movzx ecx, r9b
mov rdx, r10
and cl, 1
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x13
jb 0x180031210
xor byte [rax], 0xef
mov r9, r8
xor byte [rax + 1], 0x31
xor byte [rax + 2], 0xf9
xor byte [rax + 3], 0xef
xor byte [rax + 4], 0x31
xor byte [rax + 5], 0xf9
xor byte [rax + 6], 0xef
xor byte [rax + 7], 0x31
xor byte [rax + 8], 0xf9
xor byte [rax + 9], 0xef
xor byte [rax + 0xa], 0x31
xor byte [rax + 0xb], 0xf9
xor byte [rax + 0xc], 0xef
xor byte [rax + 0xd], 0x31
xor byte [rax + 0xe], 0xf9
xor byte [rax + 0xf], 0xef
xor byte [rax + 0x10], 0x31
xor byte [rax + 0x11], 0xf9
xor byte [rax + 0x12], 0xef
cmp ebp, 5
jl 0x18003138c
movdqa xmm4, xmmword [0x1801658d0]
lea rdx, [rax + 4]
mov r10, r11
mov rdi, rbx
sub r10, 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, 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 + r10]
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 0x1800312a0
cmp r9, 0x13
jae 0x1800313bd
movabs r10, 0x39357cf39cb690d1
nop word [rax + rax]
movzx ecx, r9b
mov rdx, r10
and cl, 3
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x13
jb 0x1800313a0
movzx ecx, byte [rax + 2]
xor byte [rax], 0xab
not cl
xor byte [rax + 1], 0x99
xor cl, 0x76
xor byte [rax + 3], 0x96
xor byte [rax + 4], 0xe9
xor byte [rax + 5], 0xde
xor byte [rax + 6], 0x61
xor byte [rax + 8], 0x3d
xor byte [rax + 9], 0x69
xor byte [rax + 0xa], 0x21
xor byte [rax + 0xb], 0x78
xor byte [rax + 0xd], 0xad
xor byte [rax + 0xe], 0xf2
xor byte [rax + 0xf], 0x89
xor byte [rax + 0x10], 0xaa
xor byte [rax + 0x12], 0x35
movaps xmm7, xmmword [rsp]
mov rdi, qword [rsp + 0x20]
mov byte [rax + 2], cl
movzx ecx, byte [rax + 7]
not cl
xor cl, 0x3e
mov byte [rax + 7], cl
movzx ecx, byte [rax + 0xc]
not cl
xor cl, 0xca
mov byte [rax + 0xc], cl
movzx ecx, byte [rax + 0x11]
not cl
xor cl, 0x5e
cmp ebp, 5
mov byte [rax + 0x11], cl
mov rbp, qword [rsp + 0x38]
jl 0x18003153d
movdqa xmm4, xmmword [0x180166580]
lea rdx, [rax + 4]
sub r11, rax
sub rbx, 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, [rdx + r11]
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 + 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
add rdx, 8
cmp r8, 0x10
jb 0x180031451
cmp r8, 0x13
jae 0x18003156d
movabs r9, 0x558bf9a58fbd6dbf
nop word [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, 0x13
jb 0x180031550
movaps xmm6, xmmword [rsp + 0x10]
mov rbx, qword [rsp + 0x30]
mov byte [rax + 0x13], 0
add rsp, 0x28
ret