Function at 0x24e94
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
push r15
movzx eax, byte [rdx + 2]
movzx r9d, byte [rdx + 3]
movzx edi, byte [rdx + 0xb]
mov r12, rcx
shl r9d, 8
mov r14, r8
movzx r8d, byte [rdx + 0xf]
mov r13d, dword [r12]
or r9d, eax
movzx eax, byte [rdx + 1]
shl edi, 8
shl r8d, 8
shl r9d, 8
lea r15, [0x00010000]
or r9d, eax
movzx eax, byte [rdx]
shl r9d, 8
or r9d, eax
movzx eax, byte [rdx + 6]
xor r9d, dword [rcx + 4]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xa]
xor ecx, dword [r12 + 8]
or edi, eax
movzx eax, byte [rdx + 9]
shl edi, 8
or edi, eax
movzx eax, byte [rdx + 8]
shl edi, 8
or edi, eax
movzx eax, byte [rdx + 0xe]
xor edi, dword [r12 + 0xc]
or r8d, eax
movzx eax, byte [rdx + 0xd]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 0xc]
shl r8d, 8
or r8d, eax
xor r8d, dword [r12 + 0x10]
cmp r13d, 1
jbe 0x250c7
lea rsi, [r12 + 0x1c]
lea ebp, [r13 - 1]
mov r11d, ecx
mov eax, ecx
mov r10d, edi
shr rax, 8
mov edx, r9d
movzx ecx, al
movzx eax, r9b
mov r9d, r8d
mov ebx, dword [r15 + rcx*4 + 0x34820]
rol ebx, 8
xor ebx, dword [r15 + rax*4 + 0x34820]
mov eax, edi
shr rax, 0x10
movzx ecx, al
mov eax, dword [r15 + rcx*4 + 0x34820]
rol eax, 0x10
xor ebx, eax
mov eax, r8d
shr rax, 0x18
mov eax, dword [r15 + rax*4 + 0x34820]
ror eax, 8
xor ebx, eax
mov eax, r8d
shr rax, 0x10
movzx ecx, al
mov eax, edi
mov r8d, dword [r15 + rcx*4 + 0x34820]
shr rax, 8
movzx ecx, al
rol r8d, 0x10
mov eax, dword [r15 + rcx*4 + 0x34820]
rol eax, 8
xor r8d, eax
mov rax, rdx
shr rax, 0x18
mov eax, dword [r15 + rax*4 + 0x34820]
ror eax, 8
xor r8d, eax
movzx eax, r11b
xor r8d, dword [r15 + rax*4 + 0x34820]
mov rax, r9
shr rax, 8
movzx ecx, al
mov rax, rdx
shr rdx, 8
mov edi, dword [r15 + rcx*4 + 0x34820]
shr rax, 0x10
movzx ecx, al
rol edi, 8
mov eax, dword [r15 + rcx*4 + 0x34820]
rol eax, 0x10
xor edi, eax
mov rax, r11
shr r11, 0x10
shr rax, 0x18
mov eax, dword [r15 + rax*4 + 0x34820]
ror eax, 8
xor edi, eax
movzx eax, r10b
shr r10, 0x18
xor edi, dword [r15 + rax*4 + 0x34820]
movzx eax, dl
mov edx, dword [r15 + rax*4 + 0x34820]
xor edi, dword [rsi]
movzx eax, r11b
mov ecx, dword [r15 + rax*4 + 0x34820]
mov eax, dword [r15 + r10*4 + 0x34820]
rol edx, 8
rol ecx, 0x10
xor edx, ecx
mov ecx, dword [rsi - 4]
ror eax, 8
xor edx, eax
movzx eax, r9b
mov r9d, dword [rsi - 8]
xor edx, dword [r15 + rax*4 + 0x34820]
xor ecx, r8d
mov r8d, dword [rsi + 4]
xor r8d, edx
xor r9d, ebx
add rsi, 0x10
sub rbp, 1
jne 0x24f6f
mov edx, r8d
mov r8d, edi
mov edi, ecx
mov rax, rdx
mov esi, r9d
shr rax, 0x10
movzx ecx, al
mov eax, r9d
movzx ebp, byte [rcx + r15 + 0x34620]
shr rax, 0x18
movzx eax, byte [rax + r15 + 0x34620]
shl eax, 8
or ebp, eax
mov rax, r8
shr rax, 8
shl ebp, 8
movzx ecx, al
movzx eax, byte [rcx + r15 + 0x34620]
or ebp, eax
movzx eax, dil
movzx eax, byte [rax + r15 + 0x34620]
shl ebp, 8
or ebp, eax
mov eax, r9d
shr rax, 0x10
movzx ecx, al
mov rax, rdi
movzx ebx, byte [rcx + r15 + 0x34620]
shr rax, 0x18
movzx eax, byte [rax + r15 + 0x34620]
shl eax, 8
or ebx, eax
mov rax, rdx
shr rax, 8
shl ebx, 8
movzx ecx, al
movzx eax, byte [rcx + r15 + 0x34620]
or ebx, eax
movzx eax, r8b
movzx eax, byte [rax + r15 + 0x34620]
shl ebx, 8
or ebx, eax
mov rax, r8
shr r8, 0x10
shr rax, 0x18
movzx r11d, byte [rax + r15 + 0x34620]
mov rax, rdi
shr rdi, 8
shr rax, 0x10
shl r11d, 8
movzx ecx, al
movzx eax, byte [rcx + r15 + 0x34620]
or r11d, eax
mov eax, r9d
mov r9d, r13d
shr rax, 8
shl r11d, 8
shl r9d, 2
movzx ecx, al
movzx eax, byte [rcx + r15 + 0x34620]
or r11d, eax
movzx eax, dl
shr rdx, 0x18
movzx eax, byte [rax + r15 + 0x34620]
movzx r10d, byte [rdx + r15 + 0x34620]
shl r11d, 8
or r11d, eax
shl r10d, 8
movzx eax, r8b
movzx eax, byte [rax + r15 + 0x34620]
or r10d, eax
movzx eax, dil
movzx eax, byte [rax + r15 + 0x34620]
shl r10d, 8
or r10d, eax
movzx eax, sil
movzx eax, byte [rax + r15 + 0x34620]
shl r10d, 8
or r10d, eax
lea eax, [r9 + 1]
xor r10d, dword [r12 + r9*4 + 4]
mov edx, dword [r12 + rax*4 + 4]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
xor edx, ebp
mov rbp, qword [rsp + 0x30]
lea eax, [r9 + 2]
mov r8d, dword [r12 + rax*4 + 4]
lea eax, [r9 + 3]
mov r9d, dword [r12 + rax*4 + 4]
xor r8d, ebx
mov rbx, qword [rsp + 0x28]
xor r9d, r11d
mov eax, r10d
mov byte [r14], r10b
shr eax, 8
mov byte [r14 + 4], dl
mov byte [r14 + 8], r8b
mov byte [r14 + 1], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [r14 + 0xc], r9b
mov byte [r14 + 3], r10b
mov byte [r14 + 2], al
mov eax, edx
shr eax, 8
mov byte [r14 + 5], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
mov byte [r14 + 7], dl
mov byte [r14 + 6], al
mov eax, r8d
shr eax, 8
mov byte [r14 + 9], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
mov byte [r14 + 0xb], r8b
mov byte [r14 + 0xa], al
mov eax, r9d
shr eax, 8
mov byte [r14 + 0xd], al
mov eax, r9d
shr eax, 0x10
shr r9d, 0x18
mov byte [r14 + 0xf], r9b
mov byte [r14 + 0xe], al
pop r15
pop r14
pop r13
pop r12
ret