Function at 0x18004d9d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0xc], 0
mov rax, rcx
je 0x18004e58d
movdqa xmm3, xmmword [0x180164c10]
movdqa xmm5, xmmword [0x180164ba0]
movdqa xmm4, xmmword [0x180164b70]
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rsi
mov r8d, ebx
mov esi, dword [0x180182290]
mov qword [rsp + 0x20], rdi
movaps xmmword [rsp + 0x10], xmm6
movaps xmmword [rsp], xmm7
cmp esi, 5
jl 0x18004db11
movzx ecx, word [rcx]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x180168e50]
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 0x18004db3d
movabs r9, 0x7fff7e7efe7eff7f
nop dword [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 0x18004db20
xor byte [rax + 2], 0xdf
xor byte [rax + 4], 0x5f
xor byte [rax + 6], 0x7f
xor byte [rax + 8], 0x7f
movzx r8d, byte [rax + 4]
movzx ecx, byte [rax + 1]
xor r8b, 0x5c
movzx r11d, byte [rax + 0xa]
not cl
movzx edx, byte [rax + 2]
xor cl, 0xc0
movzx r9d, byte [rax + 6]
xor r8b, 0xee
movzx r10d, byte [rax + 8]
not r11b
xor byte [rax], 0x3b
xor dl, 0x1c
xor byte [rax + 0xb], 0x4e
xor r9b, 0x3e
movdqa xmm6, xmmword [0x180164bd0]
xor r10b, 0x1c
movdqa xmm7, xmmword [0x180164bc0]
xor r11b, 0x5c
mov byte [rax + 1], cl
xor dl, 0xba
movzx ecx, byte [rax + 3]
xor r9b, 0xbf
not cl
mov byte [rax + 4], r8b
xor cl, 0x84
mov byte [rax + 2], dl
mov byte [rax + 3], cl
xor r10b, 0xbf
movzx ecx, byte [rax + 5]
xor r11b, 0xfb
not cl
mov byte [rax + 6], r9b
xor cl, 0x34
mov byte [rax + 8], r10b
mov byte [rax + 5], cl
mov r8, rbx
movzx ecx, byte [rax + 7]
not cl
mov byte [rax + 0xa], r11b
xor cl, 0x25
mov byte [rax + 7], cl
movzx ecx, byte [rax + 9]
not cl
xor cl, 0xe5
mov byte [rax + 9], cl
cmp esi, 5
jl 0x18004dcec
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x18016a4a0]
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 0x18004dd1d
movabs r9, 0xbbfdd9bbfdf9ffdd
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, 0xc
jb 0x18004dd00
mov edi, 0xc
mov rcx, rax
mov edx, edi
nop word [rax + rax]
xor byte [rcx], 0xdb
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18004dd30
mov r8, rbx
cmp esi, 5
jl 0x18004de35
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x18016df50]
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 0x18004de5c
movabs r9, 0xfffff7777ff7f7ff
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, rdi
jb 0x18004de40
xor byte [rax], 0x6f
mov r8, rbx
xor byte [rax + 1], 0x7e
xor byte [rax + 2], 0xfe
xor byte [rax + 3], 0x6f
xor byte [rax + 4], 0x7e
xor byte [rax + 5], 0xfe
xor byte [rax + 6], 0x6f
xor byte [rax + 7], 0x7e
xor byte [rax + 8], 0xfe
xor byte [rax + 9], 0x6f
xor byte [rax + 0xa], 0x7e
xor byte [rax + 0xb], 0xfe
cmp esi, 5
jl 0x18004df83
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x180166bc0]
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 0x18004dfac
movabs r9, 0x5ddfd5fdf55f57f5
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, rdi
jb 0x18004df90
xor byte [rax + 2], 0xce
xor byte [rax + 4], 0x57
xor byte [rax + 6], 0xf6
xor byte [rax + 8], 0xf4
xor byte [rax + 0xa], 0x6d
movzx r8d, byte [rax + 4]
movzx ecx, byte [rax + 5]
xor r8b, 0xf7
movzx edx, byte [rax + 2]
not cl
movzx r9d, byte [rax + 6]
xor cl, 0x8b
movzx r10d, byte [rax + 8]
xor r8b, 0x3e
movzx r11d, byte [rax + 0xa]
xor dl, 0xb3
xor byte [rax], 0xa4
xor r9b, 0x7f
xor byte [rax + 3], 0xe0
xor r10b, 0xb3
xor byte [rax + 7], 0x8b
xor r11b, 0xf7
xor byte [rax + 9], 0xc7
xor dl, 0x67
not byte [rax + 1]
xor r9b, 0x63
mov byte [rax + 5], cl
xor r10b, 0xfa
movzx ecx, byte [rax + 0xb]
xor r11b, 0xe3
not cl
mov byte [rax + 4], r8b
xor cl, 0xc8
mov byte [rax + 2], dl
mov byte [rax + 6], r9b
mov r8, rbx
mov byte [rax + 8], r10b
mov byte [rax + 0xa], r11b
mov byte [rax + 0xb], cl
cmp esi, 5
jl 0x18004e133
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x180169980]
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 0x18004e15c
movabs r9, 0x9f17173959d15b1f
nop dword [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, rdi
jb 0x18004e140
mov rcx, rax
nop
xor byte [rcx], 0xc7
lea rcx, [rcx + 1]
sub rdi, 1
jne 0x18004e160
mov rdi, qword [rsp + 0x20]
mov r8, rbx
cmp esi, 5
jl 0x18004e26a
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x1801660f0]
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 0x18004e29d
movabs r9, 0x4846735671e562c3
nop dword [rax]
nop dword [rax + rax]
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 0x18004e280
xor byte [rax], 0x72
mov r8, rbx
xor byte [rax + 1], 0x25
xor byte [rax + 2], 0xf3
xor byte [rax + 3], 0x72
xor byte [rax + 4], 0x25
xor byte [rax + 5], 0xf3
xor byte [rax + 6], 0x72
xor byte [rax + 7], 0x25
xor byte [rax + 8], 0xf3
xor byte [rax + 9], 0x72
xor byte [rax + 0xa], 0x25
xor byte [rax + 0xb], 0xf3
cmp esi, 5
jl 0x18004e3c4
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x18016ca80]
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 0x18004e3ed
movabs r9, 0xf87996167f32fafa
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 0x18004e3d0
xor byte [rax + 2], 0xaa
xor byte [rax + 4], 0x8e
xor byte [rax + 6], 0x29
xor byte [rax + 8], 0xeb
xor byte [rax + 0xa], 0x7c
movzx ecx, byte [rax + 2]
movzx edx, byte [rax + 4]
xor cl, 0x3c
movzx r8d, byte [rax + 6]
xor dl, 0x4d
movzx r9d, byte [rax + 8]
xor r8b, 0xc7
movzx r10d, byte [rax + 0xa]
xor r9b, 0x3c
xor byte [rax], 0x7c
xor r10b, 0x4d
xor byte [rax + 1], 0xb0
xor cl, 0x3e
xor byte [rax + 3], 0xc5
xor dl, 0x73
xor byte [rax + 5], 0xb4
xor r8b, 0xcf
xor byte [rax + 7], 0xc2
xor r9b, 0x36
xor byte [rax + 9], 0x7d
xor r10b, 0xe3
xor byte [rax + 0xb], 0xc4
cmp esi, 5
mov byte [rax + 2], cl
mov rsi, qword [rsp + 0x38]
mov byte [rax + 4], dl
mov byte [rax + 6], r8b
mov byte [rax + 8], r9b
mov byte [rax + 0xa], r10b
jl 0x18004e553
movzx ecx, word [rax]
movdqa xmm0, xmm4
movdqa xmm2, xmmword [0x1801670c0]
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 0x18004e57b
movabs r8, 0x6dd17bf3bf3be3fb
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 0x18004e560
movaps xmm7, xmmword [rsp]
movaps xmm6, xmmword [rsp + 0x10]
mov rbx, qword [rsp + 0x30]
mov byte [rax + 0xc], 0
add rsp, 0x28
ret