Function at 0x140032260
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 + 0x2ada]
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 0x140032308
nop dword [rax]
mov eax, r9d
mov edx, r10d
and edx, 1
shr r10d, 1
movzx ecx, word [rdi + rax*2 + 0x21d8]
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 + 0x588]
add r8d, 0xffffffff
jne 0x1400322d0
mov eax, r9d
inc esi
inc rbp
movzx edx, word [rdi + rax*2 + 0x21d8]
mov eax, edx
xor rdx, 0x7f0
shr rax, 4
shr rdx, 4
mov ecx, dword [r15 + rax*4 + 0x588]
lea eax, [r14 + r11]
mov edx, dword [r15 + rdx*4 + 0x588]
add ecx, ebx
add edx, ebx
mov dword [rsp + r11*4], ecx
mov dword [rsp + rax*4], edx
cmp esi, 0x40
jb 0x140032290
lea r11, [rsp]
mov r14d, 4
sub r11, r15
mov qword [rsp + 0x248], r14
sub r11, 0x1458
lea r8, [r15 + 0x2adc]
lea rbp, [r15 + 0x1fd8]
lea rbx, [r15 + 0x1058]
lea rsi, [r15 + 0x1460]
nop dword [rax]
mov edi, dword [r15 + 0xf0]
inc edi
shr edi, 1
mov dword [rsp + 0x240], edi
je 0x1400324f3
mov r14d, 0x20
lea r13, [rbp + 0x40]
mov r12, rbx
nop word [rax + 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 + 0x588]
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 + 0x588]
and eax, 0x7f
movzx edx, word [rbp + r9*2]
shr rdx, 4
xor rdx, rax
add r10d, dword [r15 + rdx*4 + 0x588]
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 + 0x588]
add eax, dword [r15 + rcx*4 + 0x588]
add r10d, eax
mov eax, edx
shr rax, 4
xor rdx, 0x7f0
shr rdx, 4
mov ecx, dword [r15 + rax*4 + 0x588]
add ecx, r10d
mov dword [r12 - 8], ecx
mov ecx, dword [r15 + rdx*4 + 0x588]
add ecx, r10d
mov dword [r12 - 4], ecx
sub rdi, 1
jne 0x1400323c0
mov edi, dword [rsp + 0x240]
lea r8, [r15 + 0x2adc]
mov r14, qword [rsp + 0x248]
mov ecx, 0x20
cmp edi, 7
jbe 0x140032522
lea edx, [rdi - 7]
lea rax, [rbx + 0x38]
nop dword [rax]
nop dword [rax + rax]
add dword [rax], ecx
add dword [rax + 4], ecx
lea rax, [rax + 8]
add ecx, 0x10
sub rdx, 1
jne 0x140032510
mov eax, dword [rbx]
mov rcx, rbx
mov dword [rsi - 8], eax
mov r9, r8
mov eax, dword [rbx + 4]
mov r10d, 0x1f
mov dword [rsi - 4], eax
mov eax, dword [rbx + 8]
mov dword [rsi], eax
mov eax, dword [rbx + 0xc]
mov dword [rsi + 4], eax
lea rax, [rsi + 0xc]
nop dword [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 4]
mov edx, dword [rax + r11 - 4]
lea rax, [rax + 0x10]
mov r8d, dword [rbx + rcx*4]
add edx, r8d
mov dword [rax - 0x14], edx
mov edx, dword [rax + r11 - 0x10]
add edx, r8d
mov dword [rax - 0x10], edx
movzx ecx, byte [r9 - 2]
mov edx, dword [rax + r11 - 0xc]
mov r8d, dword [rbx + rcx*4]
add edx, r8d
mov dword [rax - 0xc], edx
mov edx, dword [rax + r11 - 8]
add edx, r8d
mov dword [rax - 8], edx
sub r10, 1
jne 0x140032550
add rbx, 0x100
lea r8, [r15 + 0x2adc]
sub rbp, 0xffffffffffffff80
add rsi, 0x200
sub r11, 0x200
sub r14, 1
mov qword [rsp + 0x248], r14
jne 0x140032390
mov rbx, qword [rsp + 0x258]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret