Function at 0x1400afa20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
lea rbx, [rcx + 0x820]
mov ebp, 2
lea rdi, [rcx + 0x1ef0]
lea rsi, [rcx + 0x12b4]
nop
movzx eax, word [rdi + 2]
lea r11d, [rbp - 2]
shr rax, 4
mov r8d, r11d
and r8d, 1
shr r11d, 1
mov edx, r11d
mov ecx, r8d
neg ecx
shr r11d, 1
shr rcx, 4
and edx, 1
and ecx, 0x7f
add r8d, 2
xor rcx, rax
and r11d, 1
mov eax, edx
neg eax
shr rax, 4
lea r9d, [rdx + r8*2]
mov r10d, dword [rbx + rcx*4]
and eax, 0x7f
movzx ecx, word [rdi + r8*2]
shr rcx, 4
xor rcx, rax
mov eax, r11d
neg eax
shr rax, 4
and eax, 0x7f
add r10d, dword [rbx + rcx*4]
movzx ecx, word [rdi + r9*2]
shr rcx, 4
xor rcx, rax
lea eax, [r11 + r9*2]
movzx edx, word [rdi + rax*2]
lea r11d, [rbp - 1]
mov eax, edx
mov r8d, r11d
shr rax, 4
xor rdx, 0x7f0
add r10d, dword [rbx + rcx*4]
and r8d, 1
shr rdx, 4
shr r11d, 1
mov ecx, dword [rbx + rax*4]
add ecx, r10d
mov dword [rsi - 4], ecx
mov ecx, dword [rbx + rdx*4]
mov edx, r11d
add ecx, r10d
shr r11d, 1
mov dword [rsi + 0x1c], ecx
and edx, 1
movzx eax, word [rdi + 2]
mov ecx, r8d
shr rax, 4
neg ecx
shr rcx, 4
add r8d, 2
and ecx, 0x7f
and r11d, 1
xor rcx, rax
mov eax, edx
neg eax
shr rax, 4
lea r9d, [rdx + r8*2]
and eax, 0x7f
mov r10d, dword [rbx + rcx*4]
movzx ecx, word [rdi + r8*2]
shr rcx, 4
xor rcx, rax
mov eax, r11d
neg eax
shr rax, 4
and eax, 0x7f
add r10d, dword [rbx + rcx*4]
movzx ecx, word [rdi + r9*2]
shr rcx, 4
xor rcx, rax
lea eax, [r11 + r9*2]
add r10d, dword [rbx + rcx*4]
movzx edx, word [rdi + rax*2]
mov r8d, ebp
mov eax, edx
and r8d, 1
shr rax, 4
xor rdx, 0x7f0
shr rdx, 4
mov r11d, ebp
shr r11d, 1
mov ecx, dword [rbx + rax*4]
add ecx, r10d
mov dword [rsi], ecx
mov ecx, dword [rbx + rdx*4]
mov edx, r11d
add ecx, r10d
shr r11d, 1
mov dword [rsi + 0x20], ecx
and edx, 1
movzx eax, word [rdi + 2]
mov ecx, r8d
neg ecx
shr rax, 4
shr rcx, 4
add r8d, 2
and ecx, 0x7f
and r11d, 1
xor rcx, rax
mov eax, edx
neg eax
shr rax, 4
lea r9d, [rdx + r8*2]
and eax, 0x7f
mov r10d, dword [rbx + rcx*4]
movzx ecx, word [rdi + r8*2]
shr rcx, 4
xor rcx, rax
mov eax, r11d
neg eax
shr rax, 4
and eax, 0x7f
add r10d, dword [rbx + rcx*4]
movzx ecx, word [rdi + r9*2]
shr rcx, 4
xor rcx, rax
lea eax, [r11 + r9*2]
movzx edx, word [rdi + rax*2]
lea r11d, [rbp + 1]
mov eax, edx
mov r8d, r11d
shr rax, 4
xor rdx, 0x7f0
add r10d, dword [rbx + rcx*4]
and r8d, 1
shr rdx, 4
shr r11d, 1
mov ecx, dword [rbx + rax*4]
add ecx, r10d
mov dword [rsi + 4], ecx
mov ecx, dword [rbx + rdx*4]
mov edx, r11d
add ecx, r10d
and edx, 1
mov dword [rsi + 0x24], ecx
mov ecx, r8d
movzx eax, word [rdi + 2]
neg ecx
shr rcx, 4
add r8d, 2
shr rax, 4
and ecx, 0x7f
xor rcx, rax
mov eax, edx
neg eax
shr rax, 4
lea r9d, [rdx + r8*2]
and eax, 0x7f
mov r10d, dword [rbx + rcx*4]
movzx ecx, word [rdi + r8*2]
shr rcx, 4
xor rcx, rax
add r10d, dword [rbx + rcx*4]
movzx ecx, word [rdi + r9*2]
lea rsi, [rsi + 0x10]
shr rcx, 4
add ebp, 4
shr r11d, 1
and r11d, 1
mov eax, r11d
neg eax
shr rax, 4
and eax, 0x7f
xor rcx, rax
lea eax, [r11 + r9*2]
movzx edx, word [rdi + rax*2]
add r10d, dword [rbx + rcx*4]
mov eax, edx
shr rax, 4
xor rdx, 0x7f0
shr rdx, 4
mov ecx, dword [rbx + rax*4]
lea eax, [rbp - 2]
add ecx, r10d
mov dword [rsi - 8], ecx
mov ecx, dword [rbx + rdx*4]
add ecx, r10d
mov dword [rsi + 0x18], ecx
cmp eax, 8
jb 0x1400afa50
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret