Function at 0x18004c290
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0xc], 0
mov rax, rcx
je 0x18004ce1d
movdqa xmm3, xmmword [0x180164c10]
movdqa xmm5, xmmword [0x180164ba0]
movdqa xmm4, xmmword [0x180164b70]
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov edi, dword [0x180182290]
movaps xmmword [rsp + 0x10], xmm6
movaps xmmword [rsp], xmm7
cmp edi, 5
jl 0x18004c3cc
movzx ecx, word [rcx]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x180168a10]
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax], cx
movzx ecx, word [rax + 2]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 2], cx
movzx ecx, word [rax + 4]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 4], cx
movzx ecx, word [rax + 6]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 6], cx
movzx ecx, word [rax + 8]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 8], cx
movzx ecx, word [rax + 0xa]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rax + 0xa], cx
jmp 0x18004c3fd
movabs r9, 0x7f7fff7e7e7e7e7f
nop word [rax + rax]
movzx ecx, r8b
mov rdx, r9
and cl, 3
shl cl, 3
shr rdx, cl
xor byte [rax + r8], dl
inc r8
cmp r8, 0xc
jb 0x18004c3e0
xor byte [rax + 2], 0xdf
xor byte [rax + 4], 0x7f
xor byte [rax + 6], 0x5f
xor byte [rax + 8], 0xdf
xor byte [rax + 0xa], 0xdf
movzx r8d, byte [rax + 4]
movzx edx, byte [rax + 2]
xor r8b, 0x7d
movzx r9d, byte [rax + 6]
xor r8b, 0xaa
movzx r10d, byte [rax + 8]
xor dl, 0xfc
movzx r11d, byte [rax + 0xa]
xor r9b, 0xdc
xor byte [rax], 0xb9
xor r10b, 0xfc
xor byte [rax + 1], 0xed
xor r11b, 0x7d
xor byte [rax + 3], 0x8a
xor dl, 0xbf
xor byte [rax + 5], 0xad
xor r9b, 0xbf
xor byte [rax + 7], 0x79
xor r10b, 0xae
xor byte [rax + 9], 0x3e
xor r11b, 0xab
xor byte [rax + 0xb], 0x69
movdqa xmm6, xmmword [0x180164bd0]
movdqa xmm7, xmmword [0x180164bc0]
mov byte [rax + 4], r8b
mov r8, rbx
mov byte [rax + 2], dl
mov byte [rax + 6], r9b
mov byte [rax + 8], r10b
mov byte [rax + 0xa], r11b
cmp edi, 5
jl 0x18004c585
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x18016a7e0]
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax], cx
movzx ecx, word [rax + 2]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm7
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 2], cx
movzx ecx, word [rax + 4]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm6
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 4], cx
movzx ecx, word [rax + 6]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 6], cx
movzx ecx, word [rax + 8]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 8], cx
movzx ecx, word [rax + 0xa]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rax + 0xa], cx
jmp 0x18004c5ad
movabs r9, 0xbfbdbddd99d9fddf
nop
movzx ecx, r8b
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [rax + r8], dl
inc r8
cmp r8, 0xc
jb 0x18004c590
mov r11d, 0xc
mov rcx, rax
mov edx, r11d
nop dword [rax]
xor byte [rcx], 0xc9
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18004c5c0
mov r8, rbx
cmp edi, 5
jl 0x18004c6c5
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x18016c750]
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax], cx
movzx ecx, word [rax + 2]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 2], cx
movzx ecx, word [rax + 4]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 4], cx
movzx ecx, word [rax + 6]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 6], cx
movzx ecx, word [rax + 8]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 8], cx
movzx ecx, word [rax + 0xa]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rax + 0xa], cx
jmp 0x18004c6ec
movabs r9, 0xf77f77f7777f7ff7
nop
movzx ecx, r8b
mov rdx, r9
and cl, 1
shl cl, 3
shr rdx, cl
xor byte [rax + r8], dl
inc r8
cmp r8, r11
jb 0x18004c6d0
xor byte [rax], 0xf6
mov r8, rbx
xor byte [rax + 1], 0x6e
xor byte [rax + 2], 0x7f
xor byte [rax + 3], 0xf6
xor byte [rax + 4], 0x6e
xor byte [rax + 5], 0x7f
xor byte [rax + 6], 0xf6
xor byte [rax + 7], 0x6e
xor byte [rax + 8], 0x7f
xor byte [rax + 9], 0xf6
xor byte [rax + 0xa], 0x6e
xor byte [rax + 0xb], 0x7f
cmp edi, 5
jl 0x18004c813
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x18016bb10]
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax], cx
movzx ecx, word [rax + 2]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 2], cx
movzx ecx, word [rax + 4]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 4], cx
movzx ecx, word [rax + 6]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 6], cx
movzx ecx, word [rax + 8]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 8], cx
movzx ecx, word [rax + 0xa]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rax + 0xa], cx
jmp 0x18004c83c
movabs r9, 0xdf75d7d7ffdff5f7
nop dword [rax]
movzx ecx, r8b
mov rdx, r9
and cl, 3
shl cl, 3
shr rdx, cl
xor byte [rax + r8], dl
inc r8
cmp r8, r11
jb 0x18004c820
xor byte [rax + 2], 0xcd
xor byte [rax + 4], 0xde
xor byte [rax + 6], 0xde
xor byte [rax + 8], 0x5f
xor byte [rax + 0xa], 0xd5
movzx r8d, byte [rax + 6]
movzx ecx, byte [rax + 2]
xor r8b, 0xfb
movzx edx, byte [rax + 4]
xor cl, 0x37
movzx r9d, byte [rax + 8]
xor cl, 0xef
movzx r10d, byte [rax + 0xa]
xor r8b, 0x2b
xor byte [rax], 0xd4
xor r9b, 0x37
xor byte [rax + 1], 0x1b
xor r9b, 0xbe
xor byte [rax + 7], 0x4c
not dl
mov byte [rax + 2], cl
xor dl, 0xfe
movzx ecx, byte [rax + 3]
not r10b
not cl
mov byte [rax + 6], r8b
xor cl, 0xa1
mov byte [rax + 4], dl
mov byte [rax + 3], cl
xor r10b, 0xfe
movzx ecx, byte [rax + 5]
mov r8, rbx
not cl
mov byte [rax + 8], r9b
xor cl, 0xba
mov byte [rax + 0xa], r10b
mov byte [rax + 5], cl
movzx ecx, byte [rax + 9]
not cl
xor cl, 0x31
mov byte [rax + 9], cl
movzx ecx, byte [rax + 0xb]
not cl
xor cl, 0x20
mov byte [rax + 0xb], cl
cmp edi, 5
jl 0x18004c9ce
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x1801657b0]
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax], cx
movzx ecx, word [rax + 2]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm7
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 2], cx
movzx ecx, word [rax + 4]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm6
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 4], cx
movzx ecx, word [rax + 6]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 6], cx
movzx ecx, word [rax + 8]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 8], cx
movzx ecx, word [rax + 0xa]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rax + 0xa], cx
jmp 0x18004c9fc
movabs r9, 0x357b13d3d7157ff3
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, r11
jb 0x18004c9e0
mov rcx, rax
nop
xor byte [rcx], 0xf2
lea rcx, [rcx + 1]
sub r11, 1
jne 0x18004ca00
mov r8, rbx
cmp edi, 5
jl 0x18004cb05
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x18016b3f0]
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax], cx
movzx ecx, word [rax + 2]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 2], cx
movzx ecx, word [rax + 4]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 4], cx
movzx ecx, word [rax + 6]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 6], cx
movzx ecx, word [rax + 8]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 8], cx
movzx ecx, word [rax + 0xa]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rax + 0xa], cx
jmp 0x18004cb2d
movabs r9, 0xd94d76d04fef72fd
nop
movzx ecx, r8b
mov rdx, r9
and cl, 1
shl cl, 3
shr rdx, cl
xor byte [rax + r8], dl
inc r8
cmp r8, 0xc
jb 0x18004cb10
xor byte [rax], 0xeb
mov r8, rbx
xor byte [rax + 1], 0x79
xor byte [rax + 2], 0xe0
xor byte [rax + 3], 0xeb
xor byte [rax + 4], 0x79
xor byte [rax + 5], 0xe0
xor byte [rax + 6], 0xeb
xor byte [rax + 7], 0x79
xor byte [rax + 8], 0xe0
xor byte [rax + 9], 0xeb
xor byte [rax + 0xa], 0x79
xor byte [rax + 0xb], 0xe0
cmp edi, 5
jl 0x18004cc54
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x180169780]
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax], cx
movzx ecx, word [rax + 2]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 2], cx
movzx ecx, word [rax + 4]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 4], cx
movzx ecx, word [rax + 6]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm4
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 6], cx
movzx ecx, word [rax + 8]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movdqa xmm0, xmm5
movd ecx, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax + 8], cx
movzx ecx, word [rax + 0xa]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rax + 0xa], cx
jmp 0x18004cc7d
movabs r9, 0x9c90fb56fe99bc16
nop
movzx ecx, r8b
mov rdx, r9
and cl, 3
shl cl, 3
shr rdx, cl
xor byte [rax + r8], dl
inc r8
cmp r8, 0xc
jb 0x18004cc60
xor byte [rax + 2], 0xe
xor byte [rax + 4], 0x5a
xor byte [rax + 6], 0x2d
xor byte [rax + 8], 0x8c
xor byte [rax + 0xa], 0xd8
movzx ecx, byte [rax + 2]
movzx edx, byte [rax + 4]
xor cl, 0xdc
movzx r8d, byte [rax + 6]
xor dl, 0x8d
movzx r9d, byte [rax + 8]
xor r8b, 0x97
movzx r10d, byte [rax + 0xa]
xor r9b, 0xdc
xor byte [rax], 0xdd
xor r10b, 0x8d
xor byte [rax + 1], 0x2d
xor cl, 0xce
xor byte [rax + 3], 0x7d
xor dl, 0x7a
xor byte [rax + 5], 0xf4
xor r8b, 0x86
xor byte [rax + 7], 0xd2
xor r9b, 0x4e
xor byte [rax + 9], 0x5b
xor r10b, 0x3e
xor byte [rax + 0xb], 0x40
cmp edi, 5
mov byte [rax + 2], cl
mov rdi, qword [rsp + 0x20]
mov byte [rax + 4], dl
mov byte [rax + 6], r8b
mov byte [rax + 8], r9b
mov byte [rax + 0xa], r10b
jl 0x18004cde3
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x180169050]
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
psllq xmm7, 3
movd ecx, xmm1
movdqa xmm0, xmm5
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
mov word [rax], cx
movzx ecx, word [rax + 2]
pshufb xmm1, xmm3
movd xmm0, ecx
xorps xmm1, xmm0
psllq xmm6, 3
movd ecx, xmm1
vpsrlvq xmm1, xmm2, xmm7
pshufb xmm1, xmm3
mov word [rax + 2], cx
movzx ecx, word [rax + 4]
psllq xmm4, 3
psllq xmm5, 3
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
vpsrlvq xmm1, xmm2, xmm6
pshufb xmm1, xmm3
mov word [rax + 4], cx
movzx ecx, word [rax + 6]
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
vpsrlvq xmm1, xmm2, xmm4
pshufb xmm1, xmm3
mov word [rax + 6], cx
movzx ecx, word [rax + 8]
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
vpsrlvq xmm1, xmm2, xmm5
pshufb xmm1, xmm3
mov word [rax + 8], cx
movzx ecx, word [rax + 0xa]
movd xmm0, ecx
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rax + 0xa], cx
jmp 0x18004ce0b
movabs r8, 0x81a3fb5ff30b590b
nop dword [rax]
movzx ecx, bl
mov rdx, r8
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [rax + rbx], dl
inc rbx
cmp rbx, 0xc
jb 0x18004cdf0
movaps xmm7, xmmword [rsp]
movaps xmm6, xmmword [rsp + 0x10]
mov rbx, qword [rsp + 0x30]
mov byte [rax + 0xc], 0
add rsp, 0x28
ret