Function at 0x140201a80
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
movzx eax, byte [rcx]
mov r12, qword [rcx + 0x28]
mov r10, r8
mov r8, qword [rcx + 0x30]
mov byte [rsp + 0x36], al
mov rbx, rcx
mov rsi, rdx
mov r14, r9
mov qword [rsp + 0x28], r8
test al, 0x40
jne 0x140201ad0
mov qword [rsp + 0xb0], r10
lea rdx, [rcx + 0x10]
call r12
add qword [rbx + 0x20], 1
mov r10, qword [rsp + 0xb0]
movzx eax, byte [rsp + 0x36]
mov edx, 0xf
mov edi, eax
and eax, 7
and edi, 7
sub edx, eax
mov byte [rsp + 0x37], dil
mov byte [rbx], dil
mov dword [rsp + 0x30], edx
cmp edx, 0xf
je 0x140201d88
mov edx, edx
sub eax, 1
lea r8, [rbx + rdx + 1]
lea rcx, [rbx + rdx]
add r8, rax
xor eax, eax
nop dword [rax]
movzx edx, byte [rcx]
mov byte [rcx], 0
add rcx, 1
or rax, rdx
shl rax, 8
cmp r8, rcx
jne 0x140201b10
movzx edx, byte [rbx + 0xf]
mov byte [rbx + 0xf], 1
or rax, rdx
cmp rax, r14
jne 0x140201dac
movabs rdx, 0x2000000000000000
lea rax, [r14 + 0xf]
shr rax, 3
or rax, 1
add rax, qword [rbx + 0x20]
mov qword [rbx + 0x20], rax
cmp rdx, rax
jb 0x140201db3
cmp r14, 0xf
jbe 0x140201d8f
lea rax, [r14 - 0x10]
mov edi, 7
mov qword [rsp + 0xb0], r10
lea r15, [rsp + 0x40]
and rax, 0xfffffffffffffff0
sub edi, ebx
mov qword [rsp + 0x20], r15
lea r13, [rbx + 0x10]
lea rcx, [rax + 0x10]
mov qword [rsp + 0xa0], rbx
mov r15d, edi
mov rbx, r10
mov qword [rsp + 0x38], rcx
lea rax, [rsi + rcx]
mov rbp, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], r14
mov r14, rsi
mov rsi, qword [rsp + 0x28]
mov rdi, rax
nop word cs:[rax + rax]
mov rdx, qword [r14]
mov r8, rsi
xor qword [rbp + 0x10], rdx
mov rcx, r13
mov rdx, qword [r14 + 8]
xor qword [rbp + 0x18], rdx
mov rdx, r13
call r12
mov rdx, qword [rsp + 0x20]
mov r8, rsi
mov rcx, rbp
call r12
mov rdx, rbp
nop dword [rax]
movzx eax, byte [rdx + 0xf]
mov ecx, r15d
add eax, 1
add ecx, edx
setne cl
test al, al
mov byte [rdx + 0xf], al
sete al
sub rdx, 1
test cl, al
jne 0x140201c00
mov rdx, qword [rsp + 0x40]
xor rdx, qword [r14]
add r14, 0x10
add rbx, 0x10
mov qword [rbx - 0x10], rdx
mov rdx, qword [rsp + 0x48]
xor rdx, qword [r14 - 8]
mov qword [rbx - 8], rdx
cmp rdi, r14
jne 0x140201bd0
mov rcx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov rax, rdi
mov rbx, rbp
mov r10, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xb8]
add r10, rcx
and r14d, 0xf
test r14, r14
je 0x140201cdd
xor edx, edx
nop dword [rax + rax]
movzx ecx, byte [rax + rdx]
xor byte [rbx + rdx + 0x10], cl
add rdx, 1
cmp rdx, r14
jne 0x140201c78
mov rsi, qword [rsp + 0x28]
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xb0], r10
mov rdx, rcx
mov r8, rsi
call r12
mov rdx, r15
mov r8, rsi
mov rcx, rbx
call r12
mov rax, qword [rsp + 0x20]
mov r10, qword [rsp + 0xb0]
xor edx, edx
nop dword [rax + rax]
movzx ecx, byte [r15 + rdx]
xor cl, byte [rax + rdx]
mov byte [r10 + rdx], cl
add rdx, 1
cmp r14, rdx
jne 0x140201cc8
movzx eax, byte [rsp + 0x37]
mov edx, dword [rsp + 0x30]
xor r9d, r9d
add eax, 1
add rdx, rbx
movzx eax, al
cmp eax, 8
jb 0x140201d70
lea rcx, [rdx + 8]
mov qword [rdx], 0
mov qword [rax + rdx - 8], 0
and rcx, 0xfffffffffffffff8
sub rdx, rcx
add eax, edx
and eax, 0xfffffff8
cmp eax, 8
jb 0x140201d2f
and eax, 0xfffffff8
xor edx, edx
mov r8d, edx
add edx, 8
mov qword [rcx + r8], r9
cmp edx, eax
jb 0x140201d21
mov r8, qword [rsp + 0x28]
mov rdx, r15
mov rcx, rbx
call r12
movdqu xmm0, xmmword [rbx + 0x10]
movzx eax, byte [rsp + 0x36]
pxor xmm0, xmmword [rsp + 0x40]
mov byte [rbx], al
xor eax, eax
movups xmmword [rbx + 0x10], xmm0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test al, 4
jne 0x140201d9c
test eax, eax
je 0x140201d2f
mov byte [rdx], 0
test al, 2
je 0x140201d2f
xor ecx, ecx
mov word [rax + rdx - 2], cx
jmp 0x140201d2f
xor eax, eax
jmp 0x140201b26
mov rax, rsi
lea r15, [rsp + 0x40]
jmp 0x140201c6c
mov dword [rdx], 0
mov dword [rax + rdx - 4], 0
jmp 0x140201d2f
mov eax, 0xffffffff
jmp 0x140201d55
mov eax, 0xfffffffe
jmp 0x140201d55