Function at 0x140201dc0
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 r13, qword [rcx + 0x30]
mov byte [rsp + 0x36], al
mov rbx, rcx
mov r11, rdx
mov rdi, r8
test al, 0x40
jne 0x140201e16
mov qword [rsp + 0xb8], r9
mov r8, r13
mov qword [rsp + 0xa8], rdx
lea rdx, [rcx + 0x10]
call r12
mov r9, qword [rsp + 0xb8]
mov r11, qword [rsp + 0xa8]
movzx eax, byte [rsp + 0x36]
mov edx, 0xf
mov esi, eax
and eax, 7
and esi, 7
sub edx, eax
mov byte [rsp + 0x37], sil
mov byte [rbx], sil
mov dword [rsp + 0x30], edx
cmp edx, 0xf
je 0x140202072
mov edx, edx
sub eax, 1
lea r8, [rbx + rdx + 1]
lea rcx, [rbx + rdx]
add r8, rax
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
mov byte [rcx], 0
add rcx, 1
or rax, rdx
shl rax, 8
cmp rcx, r8
jne 0x140201e58
movzx edx, byte [rbx + 0xf]
mov byte [rbx + 0xf], 1
or rax, rdx
cmp rax, r9
jne 0x140202096
cmp r9, 0xf
jbe 0x140202079
lea rax, [r9 - 0x10]
mov esi, 7
lea r14, [rbx + 0x10]
mov rbp, r11
and rax, 0xfffffffffffffff0
mov qword [rsp + 0xa8], r11
lea r15, [rsp + 0x40]
sub esi, ebx
lea rcx, [rax + 0x10]
mov qword [rsp + 0xb8], r9
mov qword [rsp + 0x38], rcx
lea r10, [rdi + rcx]
mov qword [rsp + 0x28], r15
mov r15d, esi
mov rsi, r10
nop
mov rdx, qword [rsp + 0x28]
mov r8, r13
mov rcx, rbx
call r12
mov rax, rbx
nop dword [rax]
movzx ecx, byte [rax + 0xf]
lea edx, [rcx + 1]
mov ecx, r15d
add ecx, eax
mov byte [rax + 0xf], dl
setne cl
test dl, dl
sete dl
sub rax, 1
test cl, dl
jne 0x140201ee8
mov rax, qword [rsp + 0x40]
xor rax, qword [rbp]
add rdi, 0x10
mov r8, r13
mov qword [rdi - 0x10], rax
mov rdx, r14
mov rcx, r14
add rbp, 0x10
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x48]
xor rax, qword [rbp - 8]
mov qword [rdi - 8], rax
xor qword [rbx + 0x18], rax
call r12
cmp rdi, rsi
jne 0x140201ed0
mov rcx, qword [rsp + 0x38]
mov r11, qword [rsp + 0xa8]
mov r10, rsi
mov r9, qword [rsp + 0xb8]
mov r15, qword [rsp + 0x28]
add r11, rcx
and r9d, 0xf
test r9, r9
mov qword [rsp + 0xa8], r11
mov qword [rsp + 0x28], r10
mov qword [rsp + 0xb8], r9
je 0x140201fcf
mov rdx, r15
mov r8, r13
mov rcx, rbx
call r12
mov r10, qword [rsp + 0x28]
mov r11, qword [rsp + 0xa8]
xor edx, edx
mov r9, qword [rsp + 0xb8]
nop dword [rax + rax]
movzx eax, byte [r15 + rdx]
xor al, byte [r11 + rdx]
mov byte [r10 + rdx], al
xor byte [rbx + rdx + 0x10], al
add rdx, 1
cmp r9, rdx
jne 0x140201fa8
lea rcx, [rbx + 0x10]
mov r8, r13
mov rdx, rcx
call r12
movzx edx, byte [rsp + 0x37]
mov ecx, dword [rsp + 0x30]
xor r10d, r10d
add edx, 1
add rcx, rbx
movzx edx, dl
cmp edx, 8
jb 0x140202058
lea r8, [rcx + 8]
mov qword [rcx], 0
mov qword [rdx + rcx - 8], 0
and r8, 0xfffffffffffffff8
sub rcx, r8
add edx, ecx
and edx, 0xfffffff8
cmp edx, 8
jb 0x140202020
and edx, 0xfffffff8
xor ecx, ecx
mov eax, ecx
add ecx, 8
mov qword [r8 + rax], r10
cmp ecx, edx
jb 0x140202013
mov r8, r13
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 dl, 4
jne 0x140202086
test edx, edx
je 0x140202020
mov byte [rcx], 0
test dl, 2
je 0x140202020
xor eax, eax
mov word [rdx + rcx - 2], ax
jmp 0x140202020
xor eax, eax
jmp 0x140201e6e
mov r10, rdi
lea r15, [rsp + 0x40]
jmp 0x140201f66
mov dword [rcx], 0
mov dword [rdx + rcx - 4], 0
jmp 0x140202020
mov eax, 0xffffffff
jmp 0x140202044