Function at 0x1400afd00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x200
mov r15, rcx
mov dword [rcx + 0xe8], 0
mov esi, 2
lea rbp, [rcx + 0x2d72]
movzx r11d, byte [rbp]
mov r9d, 1
mov r8d, r11d
mov r14d, r9d
and r11d, 1
shr r8d, 1
or r11d, 2
dec r8d
mov ecx, r8d
xor ebx, ebx
shl r11d, cl
mov r10d, esi
shl r14d, cl
lea rdi, [r15 + r11*4]
add r11d, esi
test r8d, r8d
je 0x1400afda8
nop dword [rax]
mov eax, r9d
mov edx, r10d
and edx, 1
shr r10d, 1
movzx ecx, word [rdi + rax*2 + 0x2470]
mov eax, edx
neg eax
shr rcx, 4
shr rax, 4
lea r9d, [rdx + r9*2]
and eax, 0x7f
xor rcx, rax
add ebx, dword [r15 + rcx*4 + 0x820]
add r8d, 0xffffffff
jne 0x1400afd70
mov eax, r9d
inc esi
inc rbp
movzx edx, word [rdi + rax*2 + 0x2470]
mov eax, edx
xor rdx, 0x7f0
shr rax, 4
shr rdx, 4
mov ecx, dword [r15 + rax*4 + 0x820]
lea eax, [r14 + r11]
mov edx, dword [r15 + rdx*4 + 0x820]
add ecx, ebx
add edx, ebx
mov dword [rsp + r11*4], ecx
mov dword [rsp + rax*4], edx
cmp esi, 0x40
jb 0x1400afd30
lea rbx, [rsp]
mov r14d, 4
sub rbx, r15
mov qword [rsp + 0x248], r14
sub rbx, 0x16f0
lea r9, [r15 + 0x2d74]
lea rbp, [r15 + 0x2270]
lea r11, [r15 + 0x12f0]
lea rsi, [r15 + 0x16f8]
nop dword [rax]
mov edi, dword [r15 + 0xf0]
inc edi
shr edi, 1
mov dword [rsp + 0x240], edi
je 0x1400aff93
mov eax, edi
lea r13, [rbp + 0x40]
mov edi, eax
mov r14d, 0x20
mov r12, r11
nop dword [rax]
mov r9d, r14d
lea r12, [r12 + 8]
shr r9d, 1
lea r13, [r13 + 2]
mov eax, r14d
inc r14d
and eax, 1
neg eax
movzx edx, word [rbp + r9*2]
shr rax, 4
and eax, 0x7f
shr rdx, 4
xor rdx, rax
mov eax, r9d
and eax, 1
shr r9d, 1
neg eax
shr rax, 4
mov r10d, dword [r15 + rdx*4 + 0x820]
and eax, 0x7f
movzx edx, word [rbp + r9*2]
shr rdx, 4
xor rdx, rax
mov eax, r9d
and eax, 1
shr r9d, 1
neg eax
shr rax, 4
add r10d, dword [r15 + rdx*4 + 0x820]
and eax, 0x7f
movzx edx, word [rbp + r9*2]
shr rdx, 4
xor rdx, rax
add r10d, dword [r15 + rdx*4 + 0x820]
mov edx, r9d
and edx, 1
shr r9d, 1
mov eax, r9d
shr rax, 1
mov ecx, r9d
and r9d, 1
movzx r8d, word [rbp + rax*2]
mov eax, r9d
movzx ecx, word [rbp + rcx*2]
neg eax
shr rax, 4
and eax, 0x7f
shr rcx, 4
shr r8, 4
xor r8, rax
mov eax, edx
movzx edx, word [r13 - 2]
neg eax
shr rax, 4
and eax, 0x7f
xor rcx, rax
mov eax, dword [r15 + r8*4 + 0x820]
add eax, dword [r15 + rcx*4 + 0x820]
add r10d, eax
mov eax, edx
shr rax, 4
xor rdx, 0x7f0
shr rdx, 4
mov ecx, dword [r15 + rax*4 + 0x820]
add ecx, r10d
mov dword [r12 - 8], ecx
mov ecx, dword [r15 + rdx*4 + 0x820]
add ecx, r10d
mov dword [r12 - 4], ecx
sub rdi, 1
jne 0x1400afe60
mov edi, dword [rsp + 0x240]
lea r9, [r15 + 0x2d74]
mov r14, qword [rsp + 0x248]
mov edx, 0x20
cmp edi, 7
jbe 0x1400affd0
lea rcx, [r11 + 0x38]
lea r8d, [rdi - 7]
nop word [rax + rax]
add dword [rcx], edx
add dword [rcx + 4], edx
lea rcx, [rcx + 8]
add edx, 0x10
sub r8, 1
jne 0x1400affb0
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r11]
mov r10d, 0x1f
mov dword [rsi - 8], eax
mov eax, dword [r11 + 4]
mov dword [rsi - 4], eax
mov eax, dword [r11 + 8]
mov dword [rsi], eax
mov eax, dword [r11 + 0xc]
mov dword [rsi + 4], eax
lea rax, [rsi + 0xc]
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 4]
mov edx, dword [rax + rbx - 4]
lea rax, [rax + 0x10]
mov r8d, dword [r11 + rcx*4]
add edx, r8d
mov dword [rax - 0x14], edx
mov edx, dword [rax + rbx - 0x10]
add edx, r8d
mov dword [rax - 0x10], edx
movzx ecx, byte [r9 - 2]
mov edx, dword [rax + rbx - 0xc]
mov r8d, dword [r11 + rcx*4]
add edx, r8d
mov dword [rax - 0xc], edx
mov edx, dword [rax + rbx - 8]
add edx, r8d
mov dword [rax - 8], edx
sub r10, 1
jne 0x1400b0000
add r11, 0x100
lea r9, [r15 + 0x2d74]
sub rbp, 0xffffffffffffff80
add rsi, 0x200
sub rbx, 0x200
sub r14, 1
mov qword [rsp + 0x248], r14
jne 0x1400afe30
mov rbx, qword [rsp + 0x258]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret