Function at 0x180033c70
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x15], 0
mov rax, rcx
je 0x18003496b
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 0x180033ddc
movdqa xmm4, xmmword [0x18016d180]
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 0x180033cf0
cmp r9, 0x15
jae 0x180033e0d
movabs r10, 0xfe7efe7f7f7ffefe
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, 0x15
jb 0x180033df0
movzx ecx, byte [rax + 1]
lea rdx, [rax + 4]
xor byte [rax], 0x8f
not cl
xor byte [rax + 2], 0xa8
xor cl, 0xc6
xor byte [rax + 3], 0xcf
mov r9, r8
xor byte [rdx], 0x5e
xor byte [rax + 5], 0xc9
xor byte [rax + 7], 0xed
xor byte [rax + 8], 0x98
xor byte [rax + 9], 0xcb
xor byte [rax + 0xa], 0x4f
xor byte [rax + 0xc], 0xaa
xor byte [rax + 0xd], 0xcc
xor byte [rax + 0xe], 0xcc
xor byte [rax + 0xf], 0xdb
xor byte [rax + 0x11], 0xac
xor byte [rax + 0x12], 0xde
xor byte [rax + 0x13], 0xc8
xor byte [rax + 0x14], 0xcd
movdqa xmm6, xmmword [0x180164be0]
mov byte [rax + 1], cl
movzx ecx, byte [rax + 6]
not cl
xor cl, 0xd1
mov byte [rax + 6], cl
movzx ecx, byte [rax + 0xb]
not cl
xor cl, 0xc2
mov byte [rax + 0xb], cl
movzx ecx, byte [rax + 0x10]
not cl
xor cl, 0x14
mov byte [rax + 0x10], cl
cmp ebp, 5
jl 0x180033f9c
movdqa xmm4, xmmword [0x18016b940]
mov r10, r11
sub r10, rax
mov rdi, rbx
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, [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 0x180033eb0
cmp r9, 0x15
jae 0x180033fcd
movabs r10, 0xdddddd99dbfddfdd
nop word [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, 0x15
jb 0x180033fb0
movdqu xmm0, xmmword [rax]
lea rcx, [rax + 0x10]
mov r10d, 5
movdqa xmm1, xmmword [0x18016c0e0]
mov edx, r10d
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
nop dword [rax]
xor byte [rcx], 0xed
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x180033ff0
movdqa xmm5, xmmword [0x180164b80]
mov r9, r8
mov qword [rsp + 0x40], rsi
cmp ebp, r10d
jl 0x18003411c
movdqa xmm4, xmmword [0x1801678f0]
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 0x180034030
cmp r9, 0x15
jae 0x18003414d
movabs rdi, 0x777fffff7fffffff
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, 0x15
jb 0x180034130
xor byte [rax], 0x67
mov r9, r8
xor byte [rax + 1], 0x7f
xor byte [rax + 3], 0x67
xor byte [rax + 4], 0x7f
xor byte [rax + 6], 0x67
xor byte [rax + 7], 0x7f
xor byte [rax + 9], 0x67
xor byte [rax + 0xa], 0x7f
xor byte [rax + 0xc], 0x67
xor byte [rax + 0xd], 0x7f
xor byte [rax + 0xf], 0x67
xor byte [rax + 0x10], 0x7f
xor byte [rax + 0x12], 0x67
xor byte [rax + 0x13], 0x7f
not byte [rax + 2]
not byte [rax + 5]
not byte [rax + 8]
not byte [rax + 0xb]
not byte [rax + 0xe]
not byte [rax + 0x11]
not byte [rax + 0x14]
cmp ebp, r10d
jl 0x1800342ac
movdqa xmm4, xmmword [0x1801679b0]
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, [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
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, [rsi + 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 0x1800341c0
cmp r9, 0x15
jae 0x1800342dd
movabs rdi, 0x77f5f5557f55777f
nop word [rax + rax]
movzx ecx, r9b
mov rdx, rdi
and cl, 3
shl cl, 3
shr rdx, cl
xor byte [rax + r9], dl
inc r9
cmp r9, 0x15
jb 0x1800342c0
movzx ecx, byte [rax + 2]
mov r9, r8
xor byte [rax], 0xda
not cl
xor byte [rax + 1], 0x24
xor cl, 0xe2
xor byte [rax + 3], 0xc7
xor byte [rax + 4], 0x32
xor byte [rax + 5], 0x5a
xor byte [rax + 6], 0xe1
xor byte [rax + 7], 0xd1
xor byte [rax + 9], 0xfa
xor byte [rax + 0xa], 0x5a
xor byte [rax + 0xb], 0x28
xor byte [rax + 0xc], 0x55
xor byte [rax + 0xd], 0xca
xor byte [rax + 0xf], 0x9e
xor byte [rax + 0x10], 0x6c
xor byte [rax + 0x11], 0x59
xor byte [rax + 0x12], 7
xor byte [rax + 0x13], r11b
mov byte [rax + 2], cl
movzx ecx, byte [rax + 8]
not cl
xor cl, 0x34
mov byte [rax + 8], cl
movzx ecx, byte [rax + 0xe]
not cl
xor cl, 0x41
mov byte [rax + 0xe], cl
movzx ecx, byte [rax + 0x14]
not cl
xor cl, 0xe8
mov byte [rax + 0x14], cl
cmp ebp, r10d
jl 0x18003446c
movdqa xmm4, xmmword [0x180169b40]
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 0x180034380
cmp r9, 0x15
jae 0x18003449d
movabs rdi, 0x9ff37b155d75d119
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, 0x15
jb 0x180034480
movdqu xmm0, xmmword [rax]
lea rcx, [rax + 0x10]
mov rsi, qword [rsp + 0x40]
movdqa xmm1, xmmword [0x1801690d0]
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
nop dword [rax]
xor byte [rcx], 0x85
lea rcx, [rcx + 1]
sub r10, 1
jne 0x1800344c0
mov r9, r8
cmp ebp, 5
jl 0x1800345dd
movdqa xmm4, xmmword [0x18016abb0]
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 0x1800344f1
cmp r9, 0x15
jae 0x18003460d
movabs r10, 0xcb53c55cfa567d72
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, 0x15
jb 0x1800345f0
xor byte [rax], 0xec
mov r9, r8
xor byte [rax + 1], 0xe6
xor byte [rax + 2], 0xb4
xor byte [rax + 3], 0xec
xor byte [rax + 4], 0xe6
xor byte [rax + 5], 0xb4
xor byte [rax + 6], 0xec
xor byte [rax + 7], 0xe6
xor byte [rax + 8], 0xb4
xor byte [rax + 9], 0xec
xor byte [rax + 0xa], 0xe6
xor byte [rax + 0xb], 0xb4
xor byte [rax + 0xc], 0xec
xor byte [rax + 0xd], 0xe6
xor byte [rax + 0xe], 0xb4
xor byte [rax + 0xf], 0xec
xor byte [rax + 0x10], 0xe6
xor byte [rax + 0x11], 0xb4
xor byte [rax + 0x12], 0xec
xor byte [rax + 0x13], 0xe6
xor byte [rax + 0x14], 0xb4
cmp ebp, 5
jl 0x18003477c
movdqa xmm4, xmmword [0x180167360]
lea rdx, [rax + 4]
mov r10, r11
mov rdi, rbx
sub r10, rax
sub rdi, 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, 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 0x180034690
cmp r9, 0x15
jae 0x1800347ad
movabs r10, 0x72fa9c1e70bb7230
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, 0x15
jb 0x180034790
movzx ecx, byte [rax + 7]
xor byte [rax], 0xb9
not cl
xor byte [rax + 1], 0xbc
xor cl, 0x9a
xor byte [rax + 2], 0x58
xor byte [rax + 3], 0x49
xor byte [rax + 4], 0xb9
xor byte [rax + 5], 0xf5
xor byte [rax + 6], 0x68
xor byte [rax + 8], 0x13
xor byte [rax + 9], 0x6a
xor byte [rax + 0xa], 0xf8
xor byte [rax + 0xb], 0xe9
xor byte [rax + 0xc], 0x30
xor byte [rax + 0xd], 0xa7
xor byte [rax + 0xf], 0x23
xor byte [rax + 0x10], 0xb8
xor byte [rax + 0x11], 0xdc
xor byte [rax + 0x12], 0x3f
xor byte [rax + 0x13], 0xf9
xor byte [rax + 0x14], 0xc
movaps xmm7, xmmword [rsp]
mov rdi, qword [rsp + 0x20]
mov byte [rax + 7], cl
movzx ecx, byte [rax + 0xe]
not cl
xor cl, 0x33
cmp ebp, 5
mov byte [rax + 0xe], cl
mov rbp, qword [rsp + 0x38]
jl 0x18003492c
movdqa xmm4, xmmword [0x180165380]
lea rdx, [rax + 4]
sub r11, rax
sub rbx, rax
nop dword [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 0x180034840
cmp r8, 0x15
jae 0x18003495d
movabs r9, 0x1dcb7db75fa1fbe3
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, 0x15
jb 0x180034940
movaps xmm6, xmmword [rsp + 0x10]
mov rbx, qword [rsp + 0x30]
mov byte [rax + 0x15], 0
add rsp, 0x28
ret