Function at 0x682190
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov eax, 0x78
call fcn.00693bc0
sub rsp, rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rbp
movzx r11d, byte [rax]
lea r10, [rax + 1]
mov rbp, rcx
movzx eax, byte [r10]
movzx ecx, byte [r10 + 6]
mov qword [rsp + 0x60], rsi
shl eax, 8
shl ecx, 8
mov qword [rsp + 0x58], rdi
or r11d, eax
movzx eax, byte [r10 + 1]
mov qword [rsp + 0x50], r12
movzx r12d, byte [r10 + 3]
shl eax, 0x10
mov qword [rsp + 0x48], r13
or r11d, eax
movzx eax, byte [r10 + 2]
mov rsi, rdx
shl eax, 0x18
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
or r11d, eax
movzx eax, byte [r10 + 4]
mov r15d, r8d
shl eax, 8
mov dword [rsp + 0x20], r11d
or r12d, eax
movzx eax, byte [r10 + 5]
or ecx, eax
mov rax, qword [rsp + 0xb0]
movzx r8d, byte [rax]
movzx r9d, byte [rax + 4]
lea rdx, [rax + 1]
movzx eax, byte [rax + 1]
shl ecx, 0x10
shl eax, 8
or r12d, ecx
movzx ecx, byte [rdx + 6]
or r8d, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
shl eax, 0x10
mov dword [rsp + 0x24], r12d
or r8d, eax
movzx eax, byte [rdx + 2]
shl eax, 0x18
or r8d, eax
movzx eax, byte [rdx + 4]
shl eax, 8
mov dword [rsp + 0x90], r8d
or r9d, eax
movzx eax, byte [rdx + 5]
or ecx, eax
shl ecx, 0x10
or r9d, ecx
cmp dword [rsp + 0xb8], 0
mov dword [rsp + 0xa8], r9d
je 0x682591
mov r14, qword [rsp + 0xa0]
lea edi, [r15 - 8]
movzx eax, byte [r14 + 1]
movzx r8d, byte [r14]
movzx r9d, byte [r14 + 4]
movzx ecx, byte [r14 + 7]
shl eax, 8
lea rbx, [r14 + 1]
or r8d, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
shl eax, 0x10
mov qword [rsp + 0x28], rbx
or r8d, eax
movzx eax, byte [rbx + 2]
shl eax, 0x18
or r8d, eax
movzx eax, byte [rbx + 4]
shl eax, 8
or r9d, eax
movzx eax, byte [rbx + 5]
or ecx, eax
shl ecx, 0x10
or r9d, ecx
test edi, edi
js 0x682430
mov r13d, dword [rsp + 0x90]
mov r15d, dword [rsp + 0x24]
mov r14d, dword [rsp + 0xa8]
lea r12d, [rdi + 8]
mov ebx, r11d
shr r12, 3
mov eax, r12d
neg eax
lea edi, [rdi + rax*8]
mov dword [rsp + 0xb8], edi
mov rdi, qword [rsp + 0x98]
nop
nop
movzx edx, byte [rbp]
movzx eax, byte [rbp + 1]
movzx ecx, byte [rbp + 4]
shl eax, 8
add rbp, 8
or edx, eax
movzx eax, byte [rbp - 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp - 5]
shl eax, 0x18
or edx, eax
movzx eax, byte [rbp - 3]
shl eax, 8
xor edx, r8d
mov r8d, 1
or ecx, eax
movzx eax, byte [rbp - 2]
xor edx, ebx
shl eax, 0x10
mov dword [rsp + 0xb0], edx
mov rdx, rdi
or ecx, eax
movzx eax, byte [rbp - 1]
shl eax, 0x18
or ecx, eax
xor ecx, r9d
xor ecx, r15d
mov dword [rsp + 0xb4], ecx
lea rcx, [rsp + 0xb0]
call fcn.0061e7e0
mov r8d, dword [rsp + 0xb0]
mov r9d, dword [rsp + 0xb4]
xor r8d, r13d
xor r9d, r14d
add rsi, 8
mov byte [rsi - 8], r8b
mov eax, r8d
shr eax, 8
mov byte [rsi - 7], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi - 6], al
mov eax, r8d
shr eax, 0x18
mov byte [rsi - 5], al
mov byte [rsi - 4], r9b
mov eax, r9d
shr eax, 8
mov byte [rsi - 3], al
mov eax, r9d
shr eax, 0x10
mov byte [rsi - 2], al
mov eax, r9d
shr eax, 0x18
dec r12
mov byte [rsi - 1], al
jne 0x682340
mov rbx, qword [rsp + 0x28]
mov edi, dword [rsp + 0xb8]
mov r11d, dword [rsp + 0x20]
mov r14, qword [rsp + 0xa0]
mov r12d, r15d
jmp 0x682438
mov r13d, dword [rsp + 0x90]
cmp edi, 0xfffffff8
je 0x682552
xor edx, edx
lea ecx, [rdi + 8]
movsxd rax, ecx
mov r10d, edx
add rbp, rax
dec ecx
cmp ecx, 7
ja case.default.0x68246a
movsxd rax, ecx
lea rcx, [0x00400000]
mov eax, dword [rcx + rax*4 + 0x282898]
add rax, rcx
jmp rax
movzx edx, byte [rbp - 1]
dec rbp
shl edx, 0x18
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or edx, eax
movzx eax, byte [rbp - 1]
dec rbp
or edx, eax
movzx r10d, byte [rbp - 1]
dec rbp
shl r10d, 0x18
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or r10d, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or r10d, eax
movzx eax, byte [rbp - 1]
or r10d, eax
xor edx, r9d
xor r10d, r8d
lea rcx, [rsp + 0xb0]
xor edx, r12d
xor r10d, r11d
mov r8d, 1
mov dword [rsp + 0xb4], edx
mov rdx, qword [rsp + 0x98]
mov dword [rsp + 0xb0], r10d
call fcn.0061e7e0
mov r8d, dword [rsp + 0xb0]
mov r9d, dword [rsp + 0xb4]
xor r9d, dword [rsp + 0xa8]
xor r8d, r13d
mov byte [rsi], r8b
mov eax, r8d
shr eax, 8
mov byte [rsi + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi + 2], al
mov eax, r8d
shr eax, 0x18
mov byte [rsi + 3], al
mov byte [rsi + 4], r9b
mov eax, r9d
shr eax, 8
mov byte [rsi + 5], al
mov eax, r9d
shr eax, 0x10
mov byte [rsi + 6], al
mov eax, r9d
shr eax, 0x18
mov byte [rsi + 7], al
mov byte [r14], r8b
mov eax, r8d
shr eax, 8
mov byte [rbx], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
mov byte [rbx + 1], al
mov byte [rbx + 2], r8b
mov byte [rbx + 3], r9b
mov eax, r9d
shr eax, 8
mov byte [rbx + 4], al
mov eax, r9d
shr eax, 0x10
shr r9d, 0x18
mov byte [rbx + 5], al
mov byte [rbx + 6], r9b
jmp 0x682868
mov rax, qword [rsp + 0xa0]
add r15d, 0xfffffff8
movzx r12d, byte [rax]
movzx r14d, byte [rax + 4]
movzx ecx, byte [rax + 7]
lea r13, [rax + 1]
shl ecx, 8
movzx eax, byte [r13]
mov qword [rsp + 0x28], r13
shl eax, 8
or r12d, eax
movzx eax, byte [r13 + 1]
shl eax, 0x10
or r12d, eax
movzx eax, byte [r13 + 2]
shl eax, 0x18
or r12d, eax
movzx eax, byte [r13 + 4]
shl eax, 8
or r14d, eax
movzx eax, byte [r13 + 5]
or ecx, eax
shl ecx, 0x10
or r14d, ecx
test r15d, r15d
jle 0x682716
lea eax, [r15 - 1]
shr eax, 3
inc eax
mov r13d, eax
neg eax
lea r15d, [r15 + rax*8]
mov dword [rsp + 0xb8], r15d
mov r15d, r11d
nop
nop
nop
movzx eax, byte [rbp + 1]
movzx edi, byte [rbp]
movzx ebx, byte [rbp + 4]
mov rdx, qword [rsp + 0x98]
shl eax, 8
lea rcx, [rsp + 0xb0]
or edi, eax
movzx eax, byte [rbp + 2]
add rbp, 8
shl eax, 0x10
or edi, eax
movzx eax, byte [rbp - 5]
shl eax, 0x18
or edi, eax
mov eax, edi
xor eax, r8d
xor r8d, r8d
mov dword [rsp + 0xb0], eax
movzx eax, byte [rbp - 3]
shl eax, 8
or ebx, eax
movzx eax, byte [rbp - 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [rbp - 1]
shl eax, 0x18
or ebx, eax
mov eax, ebx
xor eax, r9d
mov dword [rsp + 0xb4], eax
call fcn.0061e7e0
xor r12d, dword [rsp + 0xb0]
xor r14d, dword [rsp + 0xb4]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0xa8]
xor r14d, dword [rsp + 0x24]
xor r12d, r15d
add rsi, 8
mov byte [rsi - 8], r12b
mov eax, r12d
shr eax, 8
mov byte [rsi - 7], al
mov eax, r12d
shr r12d, 0x18
shr eax, 0x10
mov byte [rsi - 6], al
mov byte [rsi - 5], r12b
mov byte [rsi - 4], r14b
mov eax, r14d
mov r12d, edi
shr eax, 8
mov byte [rsi - 3], al
mov eax, r14d
shr r14d, 0x18
shr eax, 0x10
dec r13
mov byte [rsi - 2], al
mov byte [rsi - 1], r14b
mov r14d, ebx
jne 0x682620
mov r13, qword [rsp + 0x28]
mov r15d, dword [rsp + 0xb8]
cmp r15d, 0xfffffff8
je 0x682821
movzx eax, byte [rbp + 1]
movzx ebx, byte [rbp]
movzx ecx, byte [rbp + 7]
movzx edi, byte [rbp + 4]
mov rdx, qword [rsp + 0x98]
shl eax, 8
or ebx, eax
movzx eax, byte [rbp + 2]
shl ecx, 8
shl eax, 0x10
or ebx, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or ebx, eax
mov eax, ebx
xor eax, r8d
xor r8d, r8d
mov dword [rsp + 0xb0], eax
movzx eax, byte [rbp + 5]
shl eax, 8
or edi, eax
movzx eax, byte [rbp + 6]
or ecx, eax
shl ecx, 0x10
or edi, ecx
lea rcx, [rsp + 0xb0]
mov eax, edi
xor eax, r9d
mov dword [rsp + 0xb4], eax
call fcn.0061e7e0
xor r12d, dword [rsp + 0xb0]
xor r14d, dword [rsp + 0xb4]
xor r12d, dword [rsp + 0x20]
lea ecx, [r15 + 8]
xor r14d, dword [rsp + 0x24]
movsxd rax, ecx
add rsi, rax
dec ecx
cmp ecx, 7
ja case.default.0x6827cd
movsxd rax, ecx
lea rcx, [0x00400000]
mov eax, dword [rcx + rax*4 + 0x2828b8]
add rax, rcx
jmp rax
dec rsi
mov eax, r14d
shr eax, 0x18
mov byte [rsi], al
dec rsi
mov eax, r14d
shr eax, 0x10
mov byte [rsi], al
dec rsi
mov eax, r14d
shr eax, 8
mov byte [rsi], al
dec rsi
mov byte [rsi], r14b
dec rsi
mov eax, r12d
shr eax, 0x18
mov byte [rsi], al
dec rsi
mov eax, r12d
shr eax, 0x10
mov byte [rsi], al
dec rsi
mov eax, r12d
shr eax, 8
mov byte [rsi], al
mov byte [rsi - 1], r12b
mov r12d, ebx
mov r14d, edi
mov rax, qword [rsp + 0xa0]
mov byte [rax], r12b
mov eax, r12d
shr eax, 8
mov byte [r13], al
mov eax, r12d
shr r12d, 0x18
shr eax, 0x10
mov byte [r13 + 1], al
mov byte [r13 + 2], r12b
mov byte [r13 + 3], r14b
mov eax, r14d
shr eax, 8
mov byte [r13 + 4], al
mov eax, r14d
shr eax, 0x10
shr r14d, 0x18
mov byte [r13 + 5], al
mov byte [r13 + 6], r14b
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret