Function at 0x140164e70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], r9
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x40
call fcn.1400babe0
sub rsp, rax
mov rax, qword [rsp + 0x90]
mov rbx, rdx
movzx r15d, byte [rax + 1]
mov rbp, rcx
movzx r14d, byte [rax + 4]
lea rcx, [rax + 1]
shl r14d, 0x18
mov r10, r9
movzx edx, byte [rax]
movzx eax, byte [rcx + 1]
shl eax, 8
shl edx, 8
or r15d, edx
shl r15d, 0x10
or r15d, eax
movzx eax, byte [rcx + 2]
or r15d, eax
cmp dword [rsp + 0x98], 0
je 0x1401650de
movzx eax, byte [rcx + 4]
lea rdi, [rcx + 6]
shl eax, 0x10
lea esi, [r8 - 8]
or r14d, eax
mov qword [rsp + 0x28], rdi
movzx eax, byte [rcx + 5]
shl eax, 8
or r14d, eax
movzx eax, byte [rdi]
or r14d, eax
test esi, esi
js 0x140164fdf
mov edi, r8d
shr rdi, 3
mov eax, edi
neg eax
lea esi, [rsi + rax*8]
movzx edx, byte [rbp]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rbp + 1]
shl eax, 0x10
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [rbp + 2]
shl eax, 8
or edx, eax
movzx eax, byte [rbp + 3]
or edx, eax
movzx eax, byte [rbp + 5]
shl eax, 0x10
xor edx, r15d
or ecx, eax
mov dword [rsp + 0x20], edx
movzx eax, byte [rbp + 6]
mov rdx, r10
shl eax, 8
or ecx, eax
movzx eax, byte [rbp + 7]
or ecx, eax
add rbp, 8
xor ecx, r14d
mov dword [rsp + 0x24], ecx
lea rcx, [rsp + 0x20]
call fcn.1401653a0
mov r15d, dword [rsp + 0x20]
mov eax, r15d
mov r14d, dword [rsp + 0x24]
mov r10, qword [rsp + 0x88]
shr eax, 0x18
mov byte [rbx], al
mov eax, r15d
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, r15d
shr eax, 8
mov byte [rbx + 2], al
mov eax, r14d
shr eax, 0x18
mov byte [rbx + 4], al
mov eax, r14d
shr eax, 0x10
mov byte [rbx + 5], al
mov eax, r14d
shr eax, 8
mov byte [rbx + 6], al
mov byte [rbx + 3], r15b
mov byte [rbx + 7], r14b
add rbx, 8
sub rdi, 1
jne 0x140164f20
mov rdi, qword [rsp + 0x28]
cmp esi, 0xfffffff8
je 0x1401650c9
lea eax, [rsi + 8]
add esi, 7
movsxd rcx, eax
add rbp, rcx
xor ecx, ecx
mov edx, ecx
cmp esi, 7
ja case.default.0x140165012
lea r9, sym.MZ_mQPlsmXCc__60Uh4h_9_OBkY_WADHltH
movsxd rax, esi
mov eax, dword [r9 + rax*4 + 0x165354]
add rax, r9
jmp rax
movzx ecx, byte [rbp - 1]
dec rbp
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x18
or ecx, eax
movzx edx, byte [rbp - 1]
dec rbp
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or edx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp - 1]
shl eax, 0x18
or edx, eax
xor edx, r15d
xor ecx, r14d
mov dword [rsp + 0x20], edx
mov rdx, r10
mov dword [rsp + 0x24], ecx
lea rcx, [rsp + 0x20]
call fcn.1401653a0
mov r15d, dword [rsp + 0x20]
mov eax, r15d
mov r14d, dword [rsp + 0x24]
shr eax, 0x18
mov byte [rbx], al
mov eax, r15d
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, r15d
shr eax, 8
mov byte [rbx + 2], al
mov eax, r14d
shr eax, 0x18
mov byte [rbx + 4], al
mov eax, r14d
shr eax, 0x10
mov byte [rbx + 5], al
mov eax, r14d
shr eax, 8
mov byte [rbx + 6], al
mov byte [rbx + 3], r15b
mov byte [rbx + 7], r14b
mov rsi, qword [rsp + 0x28]
lea rax, [rdi - 6]
lea r12, [rax + 4]
mov rdi, r12
jmp 0x1401652f0
movzx eax, byte [rcx + 4]
lea r12, [rcx + 4]
shl eax, 0x10
or r14d, eax
mov qword [rsp + 0x70], r13
movzx eax, byte [r12 + 1]
lea r13d, [r8 - 8]
shl eax, 8
or r14d, eax
mov qword [rsp + 0x30], r12
lea rax, [r12 + 2]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x28], rax
movzx eax, byte [rax]
or r14d, eax
test r13d, r13d
js 0x1401651fb
mov r12d, r8d
shr r12, 3
mov eax, r12d
neg eax
lea r13d, [r13 + rax*8]
nop word [rax + rax]
movzx esi, byte [rbp]
lea rcx, [rsp + 0x20]
movzx eax, byte [rbp + 1]
mov rdx, r10
movzx edi, byte [rbp + 4]
shl eax, 0x10
shl esi, 0x18
or esi, eax
shl edi, 0x18
movzx eax, byte [rbp + 2]
shl eax, 8
or esi, eax
movzx eax, byte [rbp + 3]
or esi, eax
movzx eax, byte [rbp + 5]
shl eax, 0x10
or edi, eax
mov dword [rsp + 0x20], esi
movzx eax, byte [rbp + 6]
shl eax, 8
or edi, eax
movzx eax, byte [rbp + 7]
or edi, eax
add rbp, 8
mov dword [rsp + 0x24], edi
call fcn.1401653a0
mov ecx, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
xor ecx, r15d
mov r10, qword [rsp + 0x88]
xor edx, r14d
mov eax, ecx
mov r15d, esi
shr eax, 0x18
mov r14d, edi
mov byte [rbx], al
mov eax, ecx
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, ecx
shr eax, 8
mov byte [rbx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [rbx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [rbx + 5], al
mov eax, edx
shr eax, 8
mov byte [rbx + 6], al
mov byte [rbx + 3], cl
mov byte [rbx + 7], dl
add rbx, 8
sub r12, 1
jne 0x140165140
mov r12, qword [rsp + 0x30]
cmp r13d, 0xfffffff8
je 0x1401652dd
movzx ecx, byte [rbp + 6]
mov rdx, r10
movzx edi, byte [rbp]
movzx eax, byte [rbp + 1]
movzx esi, byte [rbp + 4]
shl eax, 0x10
shl edi, 0x18
or edi, eax
shl ecx, 8
movzx eax, byte [rbp + 2]
shl eax, 8
or edi, eax
shl esi, 0x18
movzx eax, byte [rbp + 3]
or edi, eax
movzx eax, byte [rbp + 5]
shl eax, 0x10
or esi, eax
mov dword [rsp + 0x20], edi
movzx eax, byte [rbp + 7]
or ecx, eax
or esi, ecx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], esi
call fcn.1401653a0
mov edx, dword [rsp + 0x20]
lea eax, [r13 + 8]
mov r8d, dword [rsp + 0x24]
xor edx, r15d
movsxd rcx, eax
xor r8d, r14d
add rbx, rcx
add r13d, 7
cmp r13d, 7
ja case.default.0x140165290
lea r9, sym.MZ_mQPlsmXCc__60Uh4h_9_OBkY_WADHltH
movsxd rax, r13d
mov eax, dword [r9 + rax*4 + 0x165374]
add rax, r9
jmp rax
dec rbx
mov byte [rbx], r8b
dec rbx
mov eax, r8d
shr eax, 8
mov byte [rbx], al
dec rbx
mov eax, r8d
shr eax, 0x10
mov byte [rbx], al
dec rbx
shr r8d, 0x18
mov byte [rbx], r8b
dec rbx
mov byte [rbx], dl
dec rbx
mov eax, edx
shr eax, 8
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 0x10
mov byte [rbx], al
shr edx, 0x18
mov byte [rbx - 1], dl
mov r15d, edi
mov r14d, esi
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
mov r13, qword [rsp + 0x70]
lea rax, [rsi - 6]
mov ecx, r14d
mov edx, r14d
shr ecx, 8
mov r8d, r14d
shr edx, 0x10
mov r9d, r15d
shr r8d, 0x18
mov r10d, r15d
shr r9d, 8
mov r11d, r15d
shr r10d, 0x10
mov rbx, rax
shr r11d, 0x18
mov byte [rsi - 7], r11b
mov byte [rax], r10b
mov byte [rax + 1], r9b
mov byte [rax + 2], r15b
mov byte [rax + 3], r8b
mov byte [r12], dl
mov byte [rdi + 1], cl
mov byte [rdi + 2], r14b
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret