Function at 0x610990
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rdi, qword [rsp + 0xc0]
mov ebp, dword [rdi]
mov r10d, dword [rdi + 4]
mov r13, rdx
mov eax, r8d
mov edx, dword [rsp + 0xc8]
mov qword [rsp + 0xa0], rcx
sub eax, 8
mov dword [rsp + 0xb0], r8d
mov rbx, r9
mov dword [rsp + 0x30], eax
test edx, edx
je 0x610af4
test eax, eax
js 0x610d80
shr eax, 3
mov r14, rcx
lea rsi, [rsp + 0x48]
mov edx, eax
mov dword [rsp + 0x28], eax
mov eax, ebp
lea r15, [rdx*8 + 8]
mov edx, r10d
lea r12, [r13 + r15]
nop dword [rax + rax]
mov ecx, dword [r14 + 4]
mov r8d, dword [r14]
add r13, 8
add r14, 8
xor edx, ecx
xor eax, r8d
mov rcx, rsi
mov r8d, 1
mov dword [rsp + 0x4c], edx
mov rdx, rbx
mov dword [rsp + 0x48], eax
call fcn.0060de50
mov eax, dword [rsp + 0x48]
mov edx, eax
movzx ecx, ah
mov byte [r13 - 8], al
shr edx, 0x10
mov byte [r13 - 7], cl
mov byte [r13 - 6], dl
mov edx, eax
shr edx, 0x18
mov byte [r13 - 5], dl
mov edx, dword [rsp + 0x4c]
movzx ecx, dh
mov byte [r13 - 4], dl
mov byte [r13 - 3], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r13 - 2], cl
mov ecx, edx
shr ecx, 0x18
mov byte [r13 - 1], cl
cmp r12, r13
jne 0x610a10
mov r14d, dword [rsp + 0x28]
mov ebp, eax
mov eax, dword [rsp + 0xb0]
mov r10d, edx
add qword [rsp + 0xa0], r15
neg r14d
shl r14d, 3
lea edx, [rax + r14 - 0x10]
add r14d, dword [rsp + 0x30]
mov dword [rsp + 0xb0], r14d
cmp edx, 0xfffffff8
je 0x610da0
mov rax, qword [rsp + 0xa0]
movsxd rdx, edx
cmp dword [rsp + 0xb0], 7
lea rdx, [rax + rdx + 8]
ja case.0x610af2.0
mov eax, dword [rsp + 0xb0]
lea r8, [0x008e1ae0]
movsxd rcx, dword [r8 + rax*4]
add rcx, r8
jmp rcx
test eax, eax
js 0x610d90
shr eax, 3
lea rsi, [rsp + 0x48]
mov qword [rsp + 0xc0], rdi
mov edi, ebp
mov edx, eax
mov dword [rsp + 0x34], eax
mov r14, rsi
mov rbp, rcx
lea rax, [rdx*8 + 8]
mov esi, r10d
mov qword [rsp + 0x38], rax
add rax, r13
mov qword [rsp + 0x28], rax
mov r15d, dword [rbp]
mov r12d, dword [rbp + 4]
mov rdx, rbx
mov rcx, r14
xor r8d, r8d
add r13, 8
add rbp, 8
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], r12d
call fcn.0060de50
xor edi, dword [rsp + 0x48]
mov eax, dword [rsp + 0x4c]
mov edx, edi
mov byte [r13 - 8], dil
movzx ecx, dh
xor eax, esi
shr edx, 0x18
mov esi, r12d
mov byte [r13 - 7], cl
mov ecx, edi
mov edi, r15d
mov byte [r13 - 5], dl
shr ecx, 0x10
mov edx, eax
mov byte [r13 - 6], cl
shr edx, 0x10
movzx ecx, ah
mov byte [r13 - 4], al
shr eax, 0x18
mov byte [r13 - 3], cl
mov byte [r13 - 2], dl
mov byte [r13 - 1], al
cmp qword [rsp + 0x28], r13
jne 0x610b32
mov edx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x38]
add qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0xb0]
neg edx
mov rdi, qword [rsp + 0xc0]
shl edx, 3
lea esi, [rax + rdx - 0x10]
add edx, dword [rsp + 0x30]
mov dword [rsp + 0xb0], edx
cmp esi, 0xfffffff8
je 0x610c9c
xor r8d, r8d
lea rcx, [rsp + 0x48]
mov rdx, rbx
movsxd rsi, esi
mov rax, qword [rsp + 0xa0]
mov r9d, dword [rax + 4]
mov r14d, dword [rax]
mov dword [rsp + 0x4c], r9d
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x48], r14d
call fcn.0060de50
xor r15d, dword [rsp + 0x48]
xor r12d, dword [rsp + 0x4c]
lea rax, [r13 + rsi + 8]
cmp dword [rsp + 0xb0], 7
mov r9d, dword [rsp + 0x28]
ja case.0x610c4e.0
mov ebp, dword [rsp + 0xb0]
lea rcx, [0x008e1b00]
movsxd rdx, dword [rcx + rbp*4]
add rdx, rcx
jmp rdx
mov edx, r12d
sub rax, 1
shr edx, 0x10
mov byte [rax], dl
mov ebx, r12d
lea rdx, [rax - 1]
mov byte [rax - 1], bh
mov byte [rdx - 1], r12b
lea rax, [rdx - 1]
mov edx, r15d
lea rcx, [rax - 1]
shr edx, 0x18
mov byte [rax - 1], dl
mov eax, r15d
lea rdx, [rcx - 1]
shr eax, 0x10
mov byte [rcx - 1], al
mov ebx, r15d
lea rax, [rdx - 1]
mov byte [rdx - 1], bh
mov byte [rax - 1], r15b
mov r12d, r9d
mov r15d, r14d
mov dword [rdi], r15d
mov dword [rdi + 4], r12d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, byte [rdx - 1]
sub rdx, 1
shl ecx, 0x10
mov r11d, ecx
movzx ecx, byte [rdx - 1]
lea r8, [rdx - 1]
shl ecx, 8
or ecx, r11d
lea rdx, [r8 - 1]
movzx r8d, byte [r8 - 1]
or ecx, r8d
xor r10d, ecx
movzx r8d, byte [rdx - 1]
lea rcx, [rdx - 1]
shl r8d, 0x18
lea r11, [rcx - 1]
movzx ecx, byte [rcx - 1]
shl ecx, 0x10
or r8d, ecx
movzx ecx, byte [r11 - 1]
lea rdx, [r11 - 1]
shl ecx, 8
or ecx, r8d
movzx edx, byte [rdx - 1]
or ecx, edx
xor ebp, ecx
mov rdx, rbx
lea rcx, [rsp + 0x48]
mov r8d, 1
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x4c], r10d
call fcn.0060de50
mov edx, dword [rsp + 0x48]
mov r10, qword [rsp + 0x48]
mov r8d, edx
mov r11d, edx
movzx esi, dh
shr edx, 0x18
mov r9d, edx
mov edx, dword [rsp + 0x4c]
mov qword [r13], r10
shr r8d, 0x10
mov ecx, edx
mov ebp, edx
movzx ebx, dh
shr edx, 0x18
shr ecx, 0x10
mov byte [rdi], r11b
mov byte [rdi + 1], sil
mov byte [rdi + 2], r8b
mov byte [rdi + 3], r9b
mov byte [rdi + 4], bpl
mov byte [rdi + 5], bl
mov byte [rdi + 6], cl
mov byte [rdi + 7], dl
jmp 0x610ca3
mov edx, eax
jmp 0x610ab6
mov esi, eax
mov r12d, r10d
mov r15d, ebp
jmp 0x610bdd
mov eax, ebp
mov r8d, ebp
mov r11d, ebp
shr ebp, 0x18
mov ecx, r10d
movzx esi, ah
mov r9d, ebp
mov eax, r10d
shr r8d, 0x10
mov ebp, r10d
shr r10d, 0x18
movzx ebx, ah
shr ecx, 0x10
mov edx, r10d
jmp 0x610d5e
xor r11d, r11d
jmp 0x610cc2
xor ecx, ecx
jmp 0x610d09
mov r11, rdx
xor r8d, r8d
jmp 0x610cfa
mov rcx, rdx
xor r8d, r8d
jmp 0x610cec
mov r8, rdx
xor ecx, ecx
jmp 0x610cd0
mov rdx, rax
jmp 0x610c88
mov rcx, rax
jmp 0x610c7b
mov rdx, rax
jmp 0x610c66
mov r12d, r9d
mov r15d, r14d
jmp 0x610c9c