Function at 0x1400017c8
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 + 0xd1f90]
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov r8d, r10d
xor ebp, dword [rsi + rcx*4 + 0xd2390]
xor ebp, dword [rsi + rax*4 + 0xd2790]
movzx eax, r9b
xor ebp, dword [rsi + rax*4 + 0xd1b90]
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 + 0xd2390]
xor r15d, dword [rsi + rcx*4 + 0xd1f90]
xor r15d, dword [rsi + rax*4 + 0xd2790]
movzx eax, r11b
xor r15d, dword [rsi + rax*4 + 0xd1b90]
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 + 0xd1f90]
shr r9, 8
xor edx, dword [rsi + rcx*4 + 0xd2390]
xor edx, dword [rsi + rax*4 + 0xd2790]
movzx eax, bl
shr r11, 0x10
shr rbx, 0x18
movzx ecx, r9b
xor edx, dword [rsi + rax*4 + 0xd1b90]
xor edx, dword [rdi + 0x18]
movzx eax, r11b
mov r10d, dword [rsi + rcx*4 + 0xd1f90]
sar r13d, 1
xor r10d, dword [rsi + rax*4 + 0xd2390]
xor r10d, dword [rsi + rbx*4 + 0xd2790]
movzx eax, r8b
xor r10d, dword [rsi + rax*4 + 0xd1b90]
xor r10d, dword [rdi + 0x1c]
sub r13d, 1
je 0x140001bde
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 + 0xd1f90]
shr rax, 0x18
xor ebx, dword [r14 + rcx*4 + 0xd2390]
mov r10d, r15d
shr r10, 8
xor ebx, dword [r14 + rax*4 + 0xd2790]
movzx eax, r15b
xor ebx, dword [r14 + rax*4 + 0xd1b90]
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 + 0xd2390]
shr rax, 0x18
xor r9d, dword [r14 + rcx*4 + 0xd1f90]
xor r9d, dword [r14 + rax*4 + 0xd2790]
movzx eax, r11b
xor r9d, dword [r14 + rax*4 + 0xd1b90]
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 + 0xd1f90]
shr rax, 0x18
shr r11, 0x10
xor r8d, dword [r14 + rcx*4 + 0xd2390]
movzx ecx, r10b
xor r8d, dword [r14 + rax*4 + 0xd2790]
movzx eax, sil
shr rsi, 0x18
xor r8d, dword [r14 + rax*4 + 0xd1b90]
xor r8d, dword [r12 + 8]
movzx eax, r11b
mov r11d, dword [r14 + rcx*4 + 0xd1f90]
mov r10d, r8d
mov r8d, r9d
xor r11d, dword [r14 + rax*4 + 0xd2390]
xor r11d, dword [r14 + rsi*4 + 0xd2790]
movzx eax, bpl
xor r11d, dword [r14 + rax*4 + 0xd1b90]
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 + 0xd1f90]
shr rax, 0x18
xor ebp, dword [r14 + rcx*4 + 0xd2390]
xor ebp, dword [r14 + rax*4 + 0xd2790]
movzx eax, r9b
xor ebp, dword [r14 + rax*4 + 0xd1b90]
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 + 0xd2390]
xor r15d, dword [r14 + rcx*4 + 0xd1f90]
shr rax, 0x18
shr r8, 8
xor r15d, dword [r14 + rax*4 + 0xd2790]
movzx eax, r10b
xor r15d, dword [r14 + rax*4 + 0xd1b90]
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 + 0xd1f90]
shr r10, 0x10
shr rax, 0x18
xor edx, dword [r14 + rcx*4 + 0xd2390]
movzx ecx, r8b
xor edx, dword [r14 + rax*4 + 0xd2790]
movzx eax, r11b
shr r11, 0x18
xor edx, dword [r14 + rax*4 + 0xd1b90]
xor edx, dword [r12 + 0x18]
movzx eax, r10b
mov r10d, dword [r14 + rcx*4 + 0xd1f90]
xor r10d, dword [r14 + rax*4 + 0xd2390]
xor r10d, dword [r14 + r11*4 + 0xd2790]
movzx eax, bl
xor r10d, dword [r14 + rax*4 + 0xd1b90]
xor r10d, dword [r12 + 0x1c]
add r12, 0x20
sub r13d, 1
jne 0x1400019ae
mov r14, qword [rsp + 0x38]
lea rsi, [0x140000000]
mov r8d, edx
mov edi, 0xff00
mov r9d, r15d
mov ebx, 0xff000000
lea r15, [0x140000000]
mov eax, r10d
shr rax, 0x10
movzx ecx, al
mov eax, r8d
shr rax, 8
mov r11d, r10d
mov edx, dword [rsi + rcx*4 + 0xd1790]
mov esi, 0xff0000
movzx ecx, al
and edx, esi
mov eax, dword [r15 + rcx*4 + 0xd1790]
and eax, edi
xor edx, eax
mov eax, ebp
shr rax, 0x18
mov ecx, dword [r15 + rax*4 + 0xd1790]
and ecx, ebx
movzx eax, r9b
xor edx, ecx
movzx eax, byte [r15 + rax*4 + 0xd1790]
xor edx, eax
xor edx, dword [r12]
mov eax, edx
mov byte [r14 + 3], dl
shr eax, 0x18
mov byte [r14], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 1], al
mov eax, edx
shr eax, 8
mov byte [r14 + 2], al
mov eax, r10d
shr rax, 8
movzx ecx, al
mov eax, ebp
shr rax, 0x10
mov edx, dword [r15 + rcx*4 + 0xd1790]
movzx ecx, al
and edx, edi
mov eax, dword [r15 + rcx*4 + 0xd1790]
and eax, esi
xor edx, eax
mov eax, r9d
shr rax, 0x18
mov eax, dword [r15 + rax*4 + 0xd1790]
and eax, ebx
xor edx, eax
movzx eax, r8b
movzx eax, byte [r15 + rax*4 + 0xd1790]
xor edx, eax
xor edx, dword [r12 + 4]
mov eax, edx
mov byte [r14 + 7], dl
shr eax, 0x18
mov byte [r14 + 4], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 5], al
mov eax, edx
shr eax, 8
mov byte [r14 + 6], al
mov eax, r9d
shr rax, 0x10
movzx ecx, al
mov eax, ebp
shr rax, 8
mov edx, dword [r15 + rcx*4 + 0xd1790]
movzx ecx, al
and edx, esi
mov eax, dword [r15 + rcx*4 + 0xd1790]
and eax, edi
xor edx, eax
mov eax, r8d
shr rax, 0x18
mov eax, dword [r15 + rax*4 + 0xd1790]
and eax, ebx
shr r8, 0x10
xor edx, eax
shr r9, 8
movzx eax, r10b
shr r11, 0x18
movzx eax, byte [r15 + rax*4 + 0xd1790]
xor edx, eax
xor edx, dword [r12 + 8]
mov eax, edx
mov byte [r14 + 0xb], dl
shr eax, 0x18
mov byte [r14 + 8], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 9], al
mov eax, edx
shr eax, 8
mov byte [r14 + 0xa], al
movzx eax, r8b
mov edx, dword [r15 + rax*4 + 0xd1790]
and edx, esi
movzx eax, r9b
mov rsi, qword [rsp + 0x48]
mov ecx, dword [r15 + rax*4 + 0xd1790]
mov eax, dword [r15 + r11*4 + 0xd1790]
and ecx, edi
and eax, ebx
xor edx, ecx
mov rbx, qword [rsp + 0x30]
xor edx, eax
movzx eax, bpl
mov rbp, qword [rsp + 0x40]
movzx eax, byte [r15 + rax*4 + 0xd1790]
xor edx, eax
xor edx, dword [r12 + 0xc]
mov eax, edx
mov byte [r14 + 0xf], dl
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
pop r15
pop r14
pop r13
pop r12
pop rdi
ret