Function at 0x140091c50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push r12
push r13
sub rsp, 0x38
mov rax, qword [rcx + 0x10]
mov r13, r9
mov r12, r8
mov rbx, rdx
mov rbp, rcx
cmp qword [rcx + 8], rax
jne 0x140091c7a
call fcn.140041540
test r13, r13
je 0x140092021
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdi
lea rdi, [rbx + 4]
mov qword [rsp + 0x28], r14
lea r14, [r12 + 4]
sub r12, rbx
mov qword [rsp + 0x20], r15
sub r12, 4
mov qword [rsp + 0x70], r12
nop dword [rax]
movzx ebx, word [rdi - 4]
lea r12, [0x140000000]
movzx r11d, word [rdi - 2]
movzx esi, word [rdi]
movzx eax, word [rdi + 2]
mov r15, qword [rbp + 8]
mov ebp, 4
rol bx, 8
rol r11w, 8
rol si, 8
rol ax, 8
movzx ecx, word [r15]
and cx, bx
xor r11w, cx
movzx ecx, r11w
or cx, word [r15 + 2]
xor bx, cx
movzx ecx, word [r15 + 4]
and cx, si
xor ax, cx
movzx ecx, bx
xor cx, word [r15 + 8]
movzx r8d, cx
movzx edx, cx
and r8w, 0x7f
shr rdx, 7
movzx ecx, r8w
xor cx, word [r12 + rdx*2 + 0x172c00]
movzx edx, cx
movzx ecx, r8w
movzx r8d, byte [rcx + r12 + 0x172b80]
xor r8w, word [r15 + 0xa]
movzx ecx, word [r15 + 0xc]
xor r8w, dx
xor rcx, rdx
and r8w, 0x7f
movzx r10d, r8w
shl r8w, 9
xor r10w, word [r12 + rcx*2 + 0x172c00]
movzx ecx, r11w
xor cx, word [r15 + 0xe]
or r10w, r8w
movzx r8d, cx
movzx edx, cx
and r8w, 0x7f
shr rdx, 7
movzx ecx, r8w
xor r10w, r11w
xor cx, word [r12 + rdx*2 + 0x172c00]
movzx edx, cx
movzx ecx, r8w
movzx r8d, byte [rcx + r12 + 0x172b80]
xor r8w, word [r15 + 0x10]
movzx ecx, word [r15 + 0x12]
xor r8w, dx
xor rcx, rdx
and r8w, 0x7f
movzx r9d, r8w
shl r8w, 9
xor r9w, word [r12 + rcx*2 + 0x172c00]
or r9w, r8w
xor r9w, r10w
xor r10w, word [r15 + 0x14]
movzx r8d, r10w
movzx edx, r10w
and r8w, 0x7f
shr rdx, 7
movzx ecx, r8w
xor cx, word [r12 + rdx*2 + 0x172c00]
movzx edx, cx
movzx ecx, r8w
movzx r8d, byte [rcx + r12 + 0x172b80]
movzx ecx, ax
or cx, word [r15 + 6]
xor cx, word [r15 + 0x1a]
xor r8w, word [r15 + 0x16]
xor cx, r9w
xor r8w, dx
xor si, cx
movzx ecx, word [r15 + 0x18]
and r8w, 0x7f
xor rcx, rdx
movzx edx, r8w
shl r8w, 9
xor dx, word [r12 + rcx*2 + 0x172c00]
movzx ecx, si
xor cx, word [r15 + 0x1c]
or dx, r8w
xor dx, r9w
movzx r8d, cx
xor ax, dx
and r8w, 0x7f
movzx edx, cx
lea r15, [r15 + 0x30]
movzx ecx, r8w
shr rdx, 7
xor cx, word [r12 + rdx*2 + 0x172c00]
movzx edx, cx
movzx ecx, r8w
movzx r8d, byte [rcx + r12 + 0x172b80]
xor r8w, word [r15 - 0x12]
movzx ecx, word [r15 - 0x10]
xor r8w, dx
xor rcx, rdx
and r8w, 0x7f
movzx r10d, r8w
shl r8w, 9
xor r10w, word [r12 + rcx*2 + 0x172c00]
movzx ecx, ax
xor cx, word [r15 - 0xe]
or r10w, r8w
movzx r8d, cx
movzx edx, cx
and r8w, 0x7f
shr rdx, 7
movzx ecx, r8w
xor r10w, ax
xor cx, word [r12 + rdx*2 + 0x172c00]
movzx edx, cx
movzx ecx, r8w
movzx r8d, byte [rcx + r12 + 0x172b80]
xor r8w, word [r15 - 0xc]
movzx ecx, word [r15 - 0xa]
xor r8w, dx
xor rcx, rdx
and r8w, 0x7f
movzx r9d, r8w
shl r8w, 9
xor r9w, word [r12 + rcx*2 + 0x172c00]
or r9w, r8w
xor r9w, r10w
xor r10w, word [r15 - 8]
movzx r8d, r10w
movzx edx, r10w
and r8w, 0x7f
shr rdx, 7
movzx ecx, r8w
xor cx, word [r12 + rdx*2 + 0x172c00]
movzx edx, cx
movzx ecx, r8w
movzx r8d, byte [rcx + r12 + 0x172b80]
movzx ecx, r9w
xor cx, word [r15 - 2]
xor r8w, word [r15 - 6]
xor bx, cx
movzx ecx, word [r15 - 4]
xor r8w, dx
xor rcx, rdx
and r8w, 0x7f
movzx edx, r8w
shl r8w, 9
xor dx, word [r12 + rcx*2 + 0x172c00]
or dx, r8w
xor dx, r9w
xor r11w, dx
sub rbp, 1
jne 0x140091ce1
mov rbp, qword [rsp + 0x60]
mov r12, qword [rsp + 0x70]
mov rdx, qword [rbp + 8]
movzx ecx, word [rdx + 0xc0]
and cx, bx
xor r11w, cx
movzx ecx, r11w
rol r11w, 8
or cx, word [rdx + 0xc2]
xor bx, cx
movzx ecx, word [rdx + 0xc4]
and cx, si
rol bx, 8
xor ax, cx
movzx ecx, ax
rol ax, 8
or cx, word [rdx + 0xc6]
xor cx, si
mov word [r14 - 2], ax
rol cx, 8
mov word [r12 + rdi], cx
add rdi, 8
mov word [r14], bx
mov word [r14 + 2], r11w
add r14, 8
sub r13, 1
jne 0x140091cb0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
add rsp, 0x38
pop r13
pop r12
pop rbp
pop rbx
ret