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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
movzx eax, byte [rcx + 1]
lea rsi, [0x140000000]
movzx r10d, byte [rcx]
mov r9, rcx
mov rdi, r8
shl r10d, 8
xor r10d, eax
mov r14, rdx
movzx eax, byte [rcx + 2]
movzx edx, byte [rcx + 8]
shl edx, 8
shl r10d, 8
xor r10d, eax
movzx eax, byte [rcx + 3]
shl r10d, 8
xor r10d, eax
movzx eax, byte [rcx + 5]
xor r10d, dword [r8]
movzx r8d, byte [rcx + 4]
shl r8d, 8
xor r8d, eax
movzx eax, byte [rcx + 6]
shl r8d, 8
xor r8d, eax
movzx eax, byte [rcx + 7]
shl r8d, 8
xor r8d, eax
movzx eax, byte [rcx + 9]
xor r8d, dword [rdi + 4]
xor edx, eax
movzx eax, byte [rcx + 0xa]
shl edx, 8
xor edx, eax
movzx eax, byte [rcx + 0xb]
movzx ecx, byte [rcx + 0xc]
shl ecx, 8
shl edx, 8
xor edx, eax
movzx eax, byte [r9 + 0xd]
xor edx, dword [rdi + 8]
xor ecx, eax
movzx eax, byte [r9 + 0xe]
shl ecx, 8
xor ecx, eax
mov r11d, edx
movzx eax, byte [r9 + 0xf]
shl ecx, 8
xor ecx, eax
mov r9d, r8d
xor ecx, dword [rdi + 0xc]
mov eax, edx
shr rax, 8
movzx edx, al
mov eax, ecx
shr rax, 0x10
mov ebx, ecx
mov ebp, dword [rsi + rdx*4 + 0xc9160]
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov r8d, r10d
xor ebp, dword [rsi + rcx*4 + 0xc8d60]
xor ebp, dword [rsi + rax*4 + 0xc8960]
movzx eax, r9b
xor ebp, dword [rsi + rax*4 + 0xc9560]
xor ebp, dword [rdi + 0x10]
mov eax, r10d
shr rax, 0x10
movzx edx, al
mov eax, ebx
shr rax, 8
movzx ecx, al
mov eax, r9d
shr rax, 0x18
mov r15d, dword [rsi + rdx*4 + 0xc8d60]
xor r15d, dword [rsi + rcx*4 + 0xc9160]
xor r15d, dword [rsi + rax*4 + 0xc8960]
movzx eax, r11b
xor r15d, dword [rsi + rax*4 + 0xc9560]
xor r15d, dword [rdi + 0x14]
mov eax, r10d
mov r13d, dword [rdi + 0xf0]
lea r12, [rdi + 0x20]
shr rax, 8
movzx edx, al
mov eax, r9d
shr rax, 0x10
movzx ecx, al
mov eax, r11d
shr rax, 0x18
mov edx, dword [rsi + rdx*4 + 0xc9160]
shr r9, 8
xor edx, dword [rsi + rcx*4 + 0xc8d60]
xor edx, dword [rsi + rax*4 + 0xc8960]
movzx eax, bl
shr r11, 0x10
shr rbx, 0x18
movzx ecx, r9b
xor edx, dword [rsi + rax*4 + 0xc9560]
xor edx, dword [rdi + 0x18]
movzx eax, r11b
mov r10d, dword [rsi + rcx*4 + 0xc9160]
sar r13d, 1
xor r10d, dword [rsi + rax*4 + 0xc8d60]
xor r10d, dword [rsi + rbx*4 + 0xc8960]
movzx eax, r8b
xor r10d, dword [rsi + rax*4 + 0xc9560]
xor r10d, dword [rdi + 0x1c]
sub r13d, 1
je 0x14000241a
lea r14, [0x140000000]
mov r11d, edx
mov esi, r10d
mov eax, edx
shr rax, 8
movzx edx, al
mov eax, esi
shr rax, 0x10
movzx ecx, al
mov eax, ebp
mov ebx, dword [r14 + rdx*4 + 0xc9160]
shr rax, 0x18
xor ebx, dword [r14 + rcx*4 + 0xc8d60]
mov r10d, r15d
shr r10, 8
xor ebx, dword [r14 + rax*4 + 0xc8960]
movzx eax, r15b
xor ebx, dword [r14 + rax*4 + 0xc9560]
xor ebx, dword [r12]
mov eax, ebp
shr rax, 0x10
movzx edx, al
mov eax, esi
shr rax, 8
movzx ecx, al
mov eax, r15d
mov r9d, dword [r14 + rdx*4 + 0xc8d60]
shr rax, 0x18
xor r9d, dword [r14 + rcx*4 + 0xc9160]
xor r9d, dword [r14 + rax*4 + 0xc8960]
movzx eax, r11b
xor r9d, dword [r14 + rax*4 + 0xc9560]
xor r9d, dword [r12 + 4]
mov eax, ebp
shr rax, 8
movzx edx, al
mov eax, r15d
shr rax, 0x10
movzx ecx, al
mov eax, r11d
mov r8d, dword [r14 + rdx*4 + 0xc9160]
shr rax, 0x18
shr r11, 0x10
xor r8d, dword [r14 + rcx*4 + 0xc8d60]
movzx ecx, r10b
xor r8d, dword [r14 + rax*4 + 0xc8960]
movzx eax, sil
shr rsi, 0x18
xor r8d, dword [r14 + rax*4 + 0xc9560]
xor r8d, dword [r12 + 8]
movzx eax, r11b
mov r11d, dword [r14 + rcx*4 + 0xc9160]
mov r10d, r8d
mov r8d, r9d
xor r11d, dword [r14 + rax*4 + 0xc8d60]
xor r11d, dword [r14 + rsi*4 + 0xc8960]
movzx eax, bpl
xor r11d, dword [r14 + rax*4 + 0xc9560]
mov eax, r10d
xor r11d, dword [r12 + 0xc]
shr rax, 8
movzx edx, al
mov eax, r11d
shr rax, 0x10
movzx ecx, al
mov eax, ebx
mov ebp, dword [r14 + rdx*4 + 0xc9160]
shr rax, 0x18
xor ebp, dword [r14 + rcx*4 + 0xc8d60]
xor ebp, dword [r14 + rax*4 + 0xc8960]
movzx eax, r9b
xor ebp, dword [r14 + rax*4 + 0xc9560]
xor ebp, dword [r12 + 0x10]
mov eax, ebx
shr rax, 0x10
movzx edx, al
mov eax, r11d
shr rax, 8
movzx ecx, al
mov eax, r9d
mov r15d, dword [r14 + rdx*4 + 0xc8d60]
xor r15d, dword [r14 + rcx*4 + 0xc9160]
shr rax, 0x18
shr r8, 8
xor r15d, dword [r14 + rax*4 + 0xc8960]
movzx eax, r10b
xor r15d, dword [r14 + rax*4 + 0xc9560]
xor r15d, dword [r12 + 0x14]
mov eax, ebx
shr rax, 8
movzx edx, al
mov eax, r9d
shr rax, 0x10
movzx ecx, al
mov eax, r10d
mov edx, dword [r14 + rdx*4 + 0xc9160]
shr r10, 0x10
shr rax, 0x18
xor edx, dword [r14 + rcx*4 + 0xc8d60]
movzx ecx, r8b
xor edx, dword [r14 + rax*4 + 0xc8960]
movzx eax, r11b
shr r11, 0x18
xor edx, dword [r14 + rax*4 + 0xc9560]
xor edx, dword [r12 + 0x18]
movzx eax, r10b
mov r10d, dword [r14 + rcx*4 + 0xc9160]
xor r10d, dword [r14 + rax*4 + 0xc8d60]
xor r10d, dword [r14 + r11*4 + 0xc8960]
movzx eax, bl
xor r10d, dword [r14 + rax*4 + 0xc9560]
xor r10d, dword [r12 + 0x1c]
add r12, 0x20
sub r13d, 1
jne 0x1400021ea
mov r14, qword [rsp + 0x38]
lea rsi, [0x140000000]
lea r13, [0x140000000]
mov ebx, r10d
mov r10d, r15d
mov eax, ebx
shr rax, 0x10
mov r15d, 0xff0000
movzx ecx, al
mov rax, rdx
shr rax, 8
mov r11d, ebp
mov ebp, 0xff00
mov edi, dword [rsi + rcx*4 + 0xc9960]
movzx ecx, al
and edi, r15d
mov eax, dword [rsi + rcx*4 + 0xc9960]
and eax, ebp
xor edi, eax
mov eax, r11d
shr rax, 0x18
mov ecx, dword [rsi + rax*4 + 0xc9960]
mov esi, 0xff000000
and ecx, esi
movzx eax, r10b
xor edi, ecx
movzx eax, byte [r13 + rax*4 + 0xc9960]
xor edi, eax
mov eax, ebx
xor edi, dword [r12]
shr rax, 8
movzx ecx, al
mov eax, r11d
shr rax, 0x10
mov r9d, dword [r13 + rcx*4 + 0xc9960]
movzx ecx, al
and r9d, ebp
mov eax, dword [r13 + rcx*4 + 0xc9960]
and eax, r15d
xor r9d, eax
mov eax, r10d
shr rax, 0x18
mov eax, dword [r13 + rax*4 + 0xc9960]
and eax, esi
xor r9d, eax
movzx eax, dl
movzx eax, byte [r13 + rax*4 + 0xc9960]
xor r9d, eax
mov eax, r10d
xor r9d, dword [r12 + 4]
shr rax, 0x10
movzx ecx, al
mov eax, r11d
shr rax, 8
shr r10, 8
mov r8d, dword [r13 + rcx*4 + 0xc9960]
movzx ecx, al
and r8d, r15d
mov eax, dword [r13 + rcx*4 + 0xc9960]
and eax, ebp
xor r8d, eax
mov rax, rdx
shr rax, 0x18
shr rdx, 0x10
mov eax, dword [r13 + rax*4 + 0xc9960]
and eax, esi
xor r8d, eax
movzx eax, bl
shr rbx, 0x18
movzx eax, byte [r13 + rax*4 + 0xc9960]
xor r8d, eax
movzx eax, dl
xor r8d, dword [r12 + 8]
mov edx, dword [r13 + rax*4 + 0xc9960]
movzx eax, r10b
and edx, r15d
mov ecx, dword [r13 + rax*4 + 0xc9960]
mov eax, dword [r13 + rbx*4 + 0xc9960]
and ecx, ebp
and eax, esi
xor edx, ecx
xor edx, eax
movzx eax, r11b
movzx eax, byte [r13 + rax*4 + 0xc9960]
mov rbx, qword [rsp + 0x30]
xor edx, eax
xor edx, dword [r12 + 0xc]
mov eax, edi
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
shr eax, 0x18
mov byte [r14], al
mov eax, edi
shr eax, 0x10
mov byte [r14 + 1], al
mov eax, edi
shr eax, 8
mov byte [r14 + 2], al
mov eax, r9d
shr eax, 0x18
mov byte [r14 + 4], al
mov eax, r9d
shr eax, 0x10
mov byte [r14 + 5], al
mov eax, r9d
shr eax, 8
mov byte [r14 + 6], al
mov eax, r8d
shr eax, 0x18
mov byte [r14 + 8], al
mov eax, r8d
shr eax, 0x10
mov byte [r14 + 9], al
mov eax, r8d
shr eax, 8
mov byte [r14 + 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [r14 + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 0xd], al
mov eax, edx
shr eax, 8
mov byte [r14 + 0xe], al
mov byte [r14 + 3], dil
mov byte [r14 + 7], r9b
mov byte [r14 + 0xb], r8b
mov byte [r14 + 0xf], dl
pop r15
pop r14
pop r13
pop r12
pop rdi
ret