Function at 0x8e77c0
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 eax, dword [rsp + 0xc0]
add qword [rdx + 0x138], rax
cmp dword [rsp + 0xc0], 0xf
mov qword [rsp + 0xb8], r9
mov rbp, rcx
mov rbx, rdx
mov r14, r8
jbe 0x8e74d8
mov eax, dword [rsp + 0xc0]
lea r15, [rdx + 0x120]
lea r13, [rdx + 0x10]
lea r12, [rsp + 0x30]
lea edi, [rax - 0x10]
shr edi, 4
add edi, 1
shl rdi, 4
mov qword [rsp + 0x28], rdi
lea rsi, [rcx + rdi]
mov rdi, r9
nop dword [rax]
mov eax, dword [rbx + 0x12c]
mov r8, r15
mov rdx, r14
mov rcx, r12
bswap eax
add eax, 1
add rbp, 0x10
add rdi, 0x10
bswap eax
mov dword [rbx + 0x12c], eax
call fcn.00916710
mov rax, qword [rdi - 8]
mov rdx, qword [rdi - 0x10]
mov rcx, rbx
xor qword [rbx], rdx
mov rdx, r13
xor qword [rbx + 8], rax
call fcn.00917120
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
xor rdx, qword [rdi - 0x10]
xor rax, qword [rdi - 8]
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
cmp rsi, rbp
jne 0x8e7280
mov rax, qword [rsp + 0x28]
and dword [rsp + 0xc0], 0xf
add qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0xc0]
test eax, eax
je 0x8e7413
mov eax, dword [rbx + 0x12c]
lea r13, [rsp + 0x40]
mov qword [rsp + 0x40], 0
bswap eax
add eax, 1
mov r12d, dword [rsp + 0xc0]
mov rcx, r13
mov qword [rsp + 0x48], 0
bswap eax
cmp dword [rsp + 0xc0], 8
mov dword [rbx + 0x12c], eax
mov rax, qword [rsp + 0xb8]
jae 0x8e7428
xor edx, edx
test byte [rsp + 0xc0], 4
je 0x8e7370
mov edx, dword [rax]
mov dword [rcx], edx
mov edx, 4
test byte [rsp + 0xc0], 2
je 0x8e7388
movzx r8d, word [rax + rdx]
mov word [rcx + rdx], r8w
add rdx, 2
test byte [rsp + 0xc0], 1
je 0x8e7399
movzx eax, byte [rax + rdx]
mov byte [rcx + rdx], al
mov rax, qword [rsp + 0x40]
xor qword [rbx], rax
lea rdx, [rbx + 0x10]
mov rcx, rbx
mov rax, qword [rsp + 0x48]
xor qword [rbx + 8], rax
lea rdi, [rsp + 0x30]
call fcn.00917120
lea r8, [rbx + 0x120]
mov rdx, r14
mov rcx, rdi
call fcn.00916710
mov ecx, dword [rsp + 0xc0]
mov rax, r13
mov rdx, rdi
sub ecx, 1
lea r8, [rsp + rcx + 0x41]
nop word [rax + rax]
movzx ecx, byte [rdx]
xor byte [rax], cl
add rax, 1
add rdx, 1
cmp r8, rax
jne 0x8e73e8
cmp r12d, 8
jae 0x8e7468
test r12b, 4
jne 0x8e74e0
test r12d, r12d
jne 0x8e74b0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, dword [rsp + 0xc0]
xor eax, eax
and r8d, 0xfffffff8
mov rcx, qword [rsp + 0xb8]
mov edx, eax
add eax, 8
mov rcx, qword [rcx + rdx]
mov qword [r13 + rdx], rcx
cmp eax, r8d
jb 0x8e7436
lea rcx, [r13 + rax]
add rax, qword [rsp + 0xb8]
jmp 0x8e735b
mov rax, qword [rsp + 0x40]
lea rcx, [rsi + 8]
and rcx, 0xfffffffffffffff8
mov qword [rsi], rax
mov rax, qword [r13 + r12 - 8]
mov qword [rsi + r12 - 8], rax
sub rsi, rcx
sub r13, rsi
add esi, r12d
and esi, 0xfffffff8
cmp esi, 8
jb 0x8e7413
and esi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [r13 + rdx]
mov qword [rcx + rdx], r8
cmp eax, esi
jb 0x8e7498
jmp 0x8e7413
movzx eax, byte [r13]
mov byte [rsi], al
test r12b, 2
je 0x8e7413
movzx eax, word [r13 + r12 - 2]
mov word [rsi + r12 - 2], ax
jmp 0x8e7413
mov rsi, rcx
jmp 0x8e7301
mov eax, dword [r13]
mov dword [rsi], eax
mov eax, dword [r13 + r12 - 4]
mov dword [rsi + r12 - 4], eax
jmp 0x8e7413
jmp 0x8e7210