Function at 0x18009ee80
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x11], 0
mov rax, rcx
je 0x18009fad6
movdqa xmm2, xmmword [0x180164c10]
xor r8d, r8d
movdqa xmm3, xmmword [0x180164b70]
mov r9d, r8d
mov qword [rsp + 0x38], rsi
mov r10, 0xfffffffffffffffe
mov esi, dword [0x180182290]
mov r11d, 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 0x18009efec
movdqa xmm4, xmmword [0x180168cf0]
lea rdx, [rcx + 4]
mov rbx, r10
mov edi, r11d
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 0x18009ef00
cmp r9, 0x11
jae 0x18009f01d
movabs rbx, 0x7ffe7fff7f7efe7e
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, 0x11
jb 0x18009f000
movzx ecx, byte [rax + 4]
lea rdx, [rax + 4]
xor byte [rax], 0x1a
not cl
xor byte [rax + 1], 0x3e
xor cl, 0xe0
xor byte [rax + 2], 0xaf
mov r9, r8
xor byte [rax + 3], 0xdc
xor byte [rax + 5], 0xbc
xor byte [rax + 6], 0x7b
xor byte [rax + 7], 0x1b
xor byte [rax + 8], 0xbf
xor byte [rax + 0xa], 0xdf
xor byte [rax + 0xb], 0x9c
xor byte [rax + 0xc], 0x5e
xor byte [rax + 0xd], 0x5a
xor byte [rax + 0xf], 0xdd
xor byte [rax + 0x10], 0xee
movdqa xmm6, xmmword [0x180164be0]
mov byte [rdx], cl
movzx ecx, byte [rax + 9]
not cl
xor cl, 0xb2
mov byte [rax + 9], cl
movzx ecx, byte [rax + 0xe]
not cl
xor cl, 0xc5
mov byte [rax + 0xe], cl
cmp esi, 5
jl 0x18009f18f
movdqa xmm4, xmmword [0x18016b680]
mov rbx, r10
sub rbx, rax
mov rdi, r11
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 + 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 0x18009f0a3
cmp r9, 0x11
jae 0x18009f1bd
movabs rbx, 0xdbbdffdd99f99b9f
nop dword [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, 0x11
jb 0x18009f1a0
movdqu xmm0, xmmword [rax]
mov r9, r8
movdqa xmm1, xmmword [0x18016a800]
movdqa xmm5, xmmword [0x180164b80]
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
xor byte [rax + 0x10], 0xbf
cmp esi, 5
jl 0x18009f2ec
movdqa xmm4, xmmword [0x18016d630]
lea rdx, [rax + 4]
mov rbx, r10
mov rdi, r11
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, [rdx + rbx]
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 + 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
add rdx, 8
cmp r9, 0x10
jb 0x18009f200
cmp r9, 0x11
jae 0x18009f31d
movabs rbx, 0xff77ff77f77ff777
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, 0x11
jb 0x18009f300
xor byte [rax], 0xe7
mov r9, r8
xor byte [rax + 1], r10b
xor byte [rax + 2], 0xef
xor byte [rax + 3], 0xe7
xor byte [rax + 4], r10b
xor byte [rax + 5], 0xef
xor byte [rax + 6], 0xe7
xor byte [rax + 7], r10b
xor byte [rax + 8], 0xef
xor byte [rax + 9], 0xe7
xor byte [rax + 0xa], r10b
xor byte [rax + 0xb], 0xef
xor byte [rax + 0xc], 0xe7
xor byte [rax + 0xd], r10b
xor byte [rax + 0xe], 0xef
xor byte [rax + 0xf], 0xe7
xor byte [rax + 0x10], r10b
cmp esi, 5
jl 0x18009f47c
movdqa xmm4, xmmword [0x18016bd70]
lea rdx, [rax + 4]
mov rbx, r10
mov rdi, r11
sub rbx, 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 + 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 0x18009f390
cmp r9, 0x11
jae 0x18009f4ad
movabs rbx, 0xdfff7dd5d55ddd75
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, 0x11
jb 0x18009f490
movzx ecx, byte [rax + 7]
mov r9, r8
xor byte [rax], 0xb1
not cl
xor byte [rax + 1], 0xc8
xor cl, 0x38
xor byte [rax + 2], 0xca
xor byte [rax + 3], 0xae
xor byte [rax + 4], 0x57
xor byte [rax + 5], 0x39
xor byte [rax + 6], 0x49
xor byte [rax + 8], 0x6e
xor byte [rax + 9], 0xdf
xor byte [rax + 0xa], 0x2d
xor byte [rax + 0xb], 0x1d
xor byte [rax + 0xc], 0x87
xor byte [rax + 0xd], 0x27
xor byte [rax + 0xf], 0x69
xor byte [rax + 0x10], 0xd5
mov byte [rax + 7], cl
movzx ecx, byte [rax + 0xe]
not cl
xor cl, 0xa5
mov byte [rax + 0xe], cl
cmp esi, 5
jl 0x18009f61c
movdqa xmm4, xmmword [0x18016a3f0]
lea rdx, [rax + 4]
mov rbx, r10
mov rdi, r11
sub rbx, 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, 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 0x18009f530
cmp r9, 0x11
jae 0x18009f64d
movabs rbx, 0xbbd1bd13d5bf5f77
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, 0x11
jb 0x18009f630
movdqu xmm0, xmmword [rax]
mov r9, r8
movdqa xmm1, xmmword [0x180169c80]
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
xor byte [rax + 0x10], 0xa6
cmp esi, 5
jl 0x18009f77c
movdqa xmm4, xmmword [0x18016cae0]
lea rdx, [rax + 4]
mov rbx, r10
mov rdi, r11
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, 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 0x18009f690
cmp r9, 0x11
jae 0x18009f7ad
movabs rbx, 0xf8f2d0eaddf6c2cb
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, 0x11
jb 0x18009f790
xor byte [rax], 0x6a
mov r9, r8
xor byte [rax + 1], 0xe0
xor byte [rax + 2], 0xb2
xor byte [rax + 3], 0x6a
xor byte [rax + 4], 0xe0
xor byte [rax + 5], 0xb2
xor byte [rax + 6], 0x6a
xor byte [rax + 7], 0xe0
xor byte [rax + 8], 0xb2
xor byte [rax + 9], 0x6a
xor byte [rax + 0xa], 0xe0
xor byte [rax + 0xb], 0xb2
xor byte [rax + 0xc], 0x6a
xor byte [rax + 0xd], 0xe0
xor byte [rax + 0xe], 0xb2
xor byte [rax + 0xf], 0x6a
xor byte [rax + 0x10], 0xe0
cmp esi, 5
jl 0x18009f90c
movdqa xmm4, xmmword [0x18016c550]
lea rdx, [rax + 4]
mov rbx, r10
mov rdi, r11
sub rbx, 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 + 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 0x18009f820
cmp r9, 0x11
jae 0x18009f93d
movabs rbx, 0xf63d301756361e35
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, 0x11
jb 0x18009f920
xor byte [rax], 0x14
xor byte [rax + 2], 0x90
xor byte [rax + 3], 0x83
xor byte [rax + 4], 0x2d
xor byte [rax + 5], 0x45
xor byte [rax + 6], 0x7f
xor byte [rax + 7], 0xe1
xor byte [rax + 8], 0xa4
xor byte [rax + 9], 0x75
xor byte [rax + 0xa], 0x2a
xor byte [rax + 0xb], 0x37
xor byte [rax + 0xc], 0xe8
xor byte [rax + 0xd], 0x2c
xor byte [rax + 0xe], 0xcf
xor byte [rax + 0xf], 0xf7
xor byte [rax + 0x10], 0xfc
not byte [rax + 1]
cmp esi, 5
mov rsi, qword [rsp + 0x38]
movaps xmm7, xmmword [rsp]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
jl 0x18009fa9c
movdqa xmm4, xmmword [0x180167090]
lea rdx, [rax + 4]
sub r10, rax
sub r11, 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 + 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 + 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
add rdx, 8
cmp r8, 0x10
jb 0x18009f9b0
cmp r8, 0x11
jae 0x18009facd
movabs r9, 0x6d896f1d7531011b
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, 0x11
jb 0x18009fab0
movaps xmm6, xmmword [rsp + 0x10]
mov byte [rax + 0x11], 0
add rsp, 0x28
ret