Function at 0x1800e76b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, qword [rsp + 0x90]
mov rbp, rcx
mov r13, r8
mov rbx, rdx
movzx eax, byte [r12]
movzx r14d, byte [r12 + 1]
movzx r15d, byte [r12 + 4]
movzx ecx, byte [r12 + 7]
shl r14d, 8
or r14d, eax
shl ecx, 8
movzx eax, byte [r12 + 2]
shl eax, 0x10
or r14d, eax
movzx eax, byte [r12 + 3]
shl eax, 0x18
or r14d, eax
movzx eax, byte [r12 + 5]
shl eax, 8
or r15d, eax
movzx eax, byte [r12 + 6]
or ecx, eax
shl ecx, 0x10
or r15d, ecx
cmp dword [rsp + 0x98], 0
je 0x1800e7915
cmp r8, 8
jb 0x1800e7828
mov r12, qword [rsp + 0x88]
mov rdi, r8
shr rdi, 3
imul rax, rdi, 0xfffffffffffffff8
add r13, rax
nop word [rax + rax]
movzx eax, byte [rbp + 1]
mov r8d, 1
movzx edx, byte [rbp]
movzx ecx, byte [rbp + 4]
shl eax, 8
or edx, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [rbp + 5]
shl eax, 8
xor edx, r14d
or ecx, eax
mov dword [rsp + 0x20], edx
movzx eax, byte [rbp + 6]
mov rdx, r12
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp + 7]
shl eax, 0x18
add rbp, 8
or ecx, eax
xor ecx, r15d
mov dword [rsp + 0x24], ecx
lea rcx, [rsp + 0x20]
call fcn.1800e4fb0
mov r14d, dword [rsp + 0x20]
mov eax, r14d
mov r15d, dword [rsp + 0x24]
shr eax, 8
mov byte [rbx], r14b
mov byte [rbx + 1], al
mov eax, r14d
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, r14d
shr eax, 0x18
mov byte [rbx + 3], al
mov eax, r15d
shr eax, 8
mov byte [rbx + 5], al
mov eax, r15d
shr eax, 0x10
mov byte [rbx + 6], al
mov eax, r15d
shr eax, 0x18
mov byte [rbx + 7], al
mov byte [rbx + 4], r15b
add rbx, 8
sub rdi, 1
jne 0x1800e7760
mov r12, qword [rsp + 0x90]
mov r9, qword [rsp + 0x88]
test r13, r13
je 0x1800e7af1
xor ecx, ecx
add rbp, r13
dec r13
mov edx, ecx
cmp r13, 7
ja case.default.0x1800e7853
lea r8, [0x180000000]
mov eax, dword [r8 + r13*4 + 0xe7b50]
add rax, r8
jmp rax
movzx ecx, byte [rbp - 1]
dec rbp
shl ecx, 0x18
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
or ecx, eax
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]
or edx, eax
xor edx, r14d
xor ecx, r15d
mov dword [rsp + 0x20], edx
mov r8d, 1
mov dword [rsp + 0x24], ecx
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.1800e4fb0
mov r14d, dword [rsp + 0x20]
mov eax, r14d
mov r15d, dword [rsp + 0x24]
shr eax, 8
mov byte [rbx], r14b
mov byte [rbx + 1], al
mov eax, r14d
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, r14d
shr eax, 0x18
mov byte [rbx + 3], al
mov eax, r15d
shr eax, 8
mov byte [rbx + 5], al
mov eax, r15d
shr eax, 0x10
mov byte [rbx + 6], al
mov eax, r15d
shr eax, 0x18
mov byte [rbx + 7], al
mov byte [rbx + 4], r15b
jmp 0x1800e7af1
mov qword [rsp + 0x70], rsi
cmp r13, 8
jb 0x1800e7a15
mov r12, r13
shr r12, 3
imul rax, r12, 0xfffffffffffffff8
add r13, rax
mov qword [rsp + 0x80], r13
mov r13, qword [rsp + 0x88]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + 1]
lea rcx, [rsp + 0x20]
movzx esi, byte [rbp]
xor r8d, r8d
movzx edi, byte [rbp + 4]
mov rdx, r13
shl eax, 8
or esi, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or esi, eax
movzx eax, byte [rbp + 5]
shl eax, 8
or edi, eax
mov dword [rsp + 0x20], esi
movzx eax, byte [rbp + 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbp + 7]
shl eax, 0x18
add rbp, 8
or edi, eax
mov dword [rsp + 0x24], edi
call fcn.1800e4fb0
mov ecx, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
xor ecx, r14d
mov byte [rbx], cl
xor edx, r15d
mov eax, ecx
mov byte [rbx + 4], dl
shr eax, 8
mov r14d, esi
mov byte [rbx + 1], al
mov r15d, edi
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, edx
shr eax, 8
mov byte [rbx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rbx + 6], al
mov byte [rbx + 3], cl
mov byte [rbx + 7], dl
add rbx, 8
sub r12, 1
jne 0x1800e7950
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x90]
mov r9, qword [rsp + 0x88]
test r13, r13
je 0x1800e7aec
movzx eax, byte [rbp + 1]
xor r8d, r8d
movzx ecx, byte [rbp + 7]
mov rdx, r9
movzx edi, byte [rbp]
movzx esi, byte [rbp + 4]
shl eax, 8
or edi, eax
shl ecx, 8
movzx eax, byte [rbp + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [rbp + 5]
shl eax, 8
or esi, eax
mov dword [rsp + 0x20], edi
movzx eax, byte [rbp + 6]
or ecx, eax
shl ecx, 0x10
or esi, ecx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], esi
call fcn.1800e4fb0
mov edx, dword [rsp + 0x20]
add rbx, r13
mov ecx, dword [rsp + 0x24]
xor edx, r14d
xor ecx, r15d
dec r13
cmp r13, 7
ja case.default.0x1800e7aa0
lea r8, [0x180000000]
mov eax, dword [r8 + r13*4 + 0xe7b70]
add rax, r8
jmp rax
dec rbx
mov eax, ecx
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, ecx
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, ecx
shr eax, 8
mov byte [rbx], al
dec rbx
mov byte [rbx], cl
dec rbx
mov eax, edx
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 8
mov byte [rbx], al
mov byte [rbx - 1], dl
mov r14d, edi
mov r15d, esi
mov rsi, qword [rsp + 0x70]
mov byte [r12], r14b
mov eax, r15d
shr eax, 0x18
mov ecx, r15d
shr ecx, 0x10
mov edx, r15d
shr edx, 8
mov r8d, r14d
shr r8d, 0x18
mov r9d, r14d
shr r9d, 0x10
mov r10d, r14d
shr r10d, 8
mov byte [r12 + 1], r10b
mov byte [r12 + 2], r9b
mov byte [r12 + 3], r8b
mov byte [r12 + 4], r15b
mov byte [r12 + 5], dl
mov byte [r12 + 6], cl
mov byte [r12 + 7], al
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret