Function at 0x140149b50
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov eax, dword [r9 + 4]
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0xf8], r9
test eax, eax
je 0x140149f03
lea rax, [rsp + 0x87]
xor r15d, r15d
mov rdi, rcx
mov r9, rdx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov r12d, r15d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x8a]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x84]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x8d]
mov qword [rsp + 0x68], rax
nop
lea ebx, [r12 + 1]
mov r8, qword [rdi]
mov eax, r12d
mov ebp, r12d
shr ebx, 3
mov r13d, 0xfffffffe
not eax
shr ebp, 3
mov r11d, ebx
sub r13d, r12d
and eax, 7
mov r14d, 0xfffffffd
and r13d, 7
movzx edx, byte [r8 + r11]
mov r15d, eax
sub r14d, r12d
lea esi, [r12 + 2]
mov ecx, r13d
and r14d, 7
mov r10, qword [rdi + 8]
shr esi, 3
movzx eax, byte [r8 + rbp]
sar edx, cl
mov ecx, r15d
movzx r8d, byte [r8 + rsi]
mov qword [rsp + 0x38], r11
xor r11d, r11d
and edx, 1
sar eax, cl
mov ecx, r14d
sar r8d, cl
and eax, 1
and r8d, 1
mov r11b, r8b
movzx r8d, byte [r10 + rsi]
mov ebx, r11d
mov r11, qword [rsp + 0x38]
sar r8d, cl
mov ecx, r8d
xor r8d, r8d
and ecx, 1
mov r8b, dl
movzx edx, byte [r10 + r11]
mov bh, cl
mov ecx, r13d
sar edx, cl
mov word [rsp + 0x7c], bx
mov ebx, r8d
mov ecx, r15d
and edx, 1
mov r8, qword [rsp + 0x58]
mov bh, dl
xor edx, edx
mov dl, al
movzx eax, byte [r10 + rbp]
mov word [rsp + 0x80], bx
mov ebx, r15d
sar eax, cl
mov ecx, r14d
and eax, 1
mov dh, al
mov word [rsp + 0x84], dx
mov rdx, qword [rdi + 0x10]
movzx eax, byte [rdx + rsi]
sar eax, cl
mov ecx, r13d
and eax, 1
mov byte [rsp + 0x7e], al
movzx eax, byte [rdx + r11]
sar eax, cl
mov ecx, r15d
and eax, 1
mov byte [rsp + 0x82], al
movzx eax, byte [rdx + rbp]
mov rdx, qword [rsp + 0x48]
sar eax, cl
mov rcx, qword [rsp + 0x40]
and eax, 1
mov byte [rsp + 0x86], al
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
call fcn.140148a90
mov r15, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
mov rdx, r15
mov qword [rsp + 0x20], rax
call fcn.140148a90
mov rax, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x68]
mov rcx, r15
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140148a90
mov rdx, qword [rdi]
mov ecx, r14d
mov r10, qword [rsp + 0x38]
movzx r15d, byte [rsp + 0x7c]
movzx eax, byte [rsp + 0x8a]
mov r8d, 1
add rdx, rsi
shl r8d, cl
xor eax, r15d
not r8d
xor r15b, byte [rsp + 0x80]
shl eax, cl
movzx ecx, byte [rdx]
and ecx, r8d
or eax, ecx
mov ecx, r13d
mov byte [rdx], al
movzx eax, byte [rsp + 0x8d]
mov edx, 1
add r10, qword [rdi]
shl edx, cl
xor eax, r15d
not edx
shl eax, cl
movzx ecx, byte [r10]
and ecx, edx
or eax, ecx
mov ecx, ebx
mov byte [r10], al
mov r11, qword [rdi]
mov eax, 1
movzx r10d, byte [rsp + 0x84]
shl eax, cl
xor r10b, byte [rsp + 0x87]
add r11, rbp
xor r10d, r15d
not eax
shl r10d, cl
movzx ecx, byte [r11]
and ecx, eax
or r10d, ecx
mov ecx, r14d
mov byte [r11], r10b
movzx r10d, byte [rsp + 0x7d]
movzx r11d, byte [rsp + 0x8b]
mov r15, qword [rdi + 8]
xor r11d, r10d
add r15, rsi
xor r10b, byte [rsp + 0x81]
shl r11d, cl
movzx ecx, byte [r15]
and ecx, r8d
or r11d, ecx
mov ecx, r13d
mov byte [r15], r11b
mov r15, qword [rsp + 0x38]
movzx r11d, byte [rsp + 0x8e]
add r15, qword [rdi + 8]
xor r11d, r10d
shl r11d, cl
movzx ecx, byte [r15]
and ecx, edx
or r11d, ecx
movzx ecx, byte [rsp + 0x85]
mov byte [r15], r11b
mov r11, qword [rdi + 8]
mov r15d, ebx
add r11, rbp
xor cl, byte [rsp + 0x88]
add r12d, 3
xor r10d, ecx
mov ecx, ebx
shl r10d, cl
movzx ecx, byte [r11]
and ecx, eax
or r10d, ecx
mov ecx, r14d
mov byte [r11], r10b
movzx r10d, byte [rsp + 0x7e]
movzx r11d, byte [rsp + 0x8c]
add rsi, qword [rdi + 0x10]
and r8b, byte [rsi]
mov rbx, qword [rsp + 0x38]
xor r11d, r10d
xor r10b, byte [rsp + 0x82]
shl r11d, cl
mov ecx, r13d
or r11d, r8d
movzx r8d, byte [rsp + 0x8f]
mov byte [rsi], r11b
add rbx, qword [rdi + 0x10]
xor r8d, r10d
and dl, byte [rbx]
shl r8d, cl
mov ecx, r15d
or r8d, edx
movzx edx, byte [rsp + 0x86]
xor dl, byte [rsp + 0x89]
mov byte [rbx], r8b
xor edx, r10d
add rbp, qword [rdi + 0x10]
and al, byte [rbp]
shl edx, cl
or edx, eax
mov rax, qword [rsp + 0xf8]
mov byte [rbp], dl
mov eax, dword [rax + 4]
lea eax, [rax + rax*2]
cmp eax, r12d
ja 0x140149be0
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret