Function at 0x14001b6e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
movzx eax, byte [rcx + 0x10]
lea r10, [rcx + 0x10]
mov ebp, dword [rcx]
mov rbx, r8
mov rdi, rdx
mov r9, rcx
test al, al
jne 0x14001ba05
test rbx, rbx
je 0x14001b713
movzx r11d, word [r8 + 8]
jmp 0x14001b716
xor r11d, r11d
movzx eax, byte [rcx + 0x11]
cmp al, 8
jae 0x14001b8cc
mov ecx, eax
sub ecx, 1
je 0x14001b84e
sub ecx, 1
je 0x14001b7c0
cmp ecx, 2
jne 0x14001b8b7
lea eax, [rbp - 1]
and r11d, 0xf
mov r8d, eax
lea rsi, [rdx - 1]
and eax, 1
shr r8, 1
shl eax, 2
mov r15d, 4
mov r10d, r15d
imul r11d, r11d, 0x11
sub r10d, eax
add r8, rdi
add rsi, rbp
mov r14, rbp
test ebp, ebp
je 0x14001b8b7
nop word [rax + rax]
movzx edx, byte [r8]
lea rsi, [rsi - 1]
movzx ecx, r10b
shr dl, cl
movzx eax, dl
shl dl, 4
and al, 0xf
xor al, dl
mov byte [rsi + 1], al
cmp r10d, r15d
lea rax, [r8 - 1]
cmovne rax, r8
mov r8, rax
xor eax, eax
cmp r10d, r15d
cmovne eax, r15d
mov r10d, eax
sub r14, 1
jne 0x14001b780
jmp 0x14001b8b7
lea eax, [rbp - 1]
and r11d, 3
mov r10d, eax
lea rsi, [rdx - 1]
and eax, 3
shr r10, 2
add eax, eax
imul r11d, r11d, 0x55
mov r8d, 6
add r10, rdi
sub r8d, eax
add rsi, rbp
mov r14, rbp
test ebp, ebp
je 0x14001b8b7
nop word [rax + rax]
movzx edx, byte [r10]
lea rsi, [rsi - 1]
movzx ecx, r8b
shr dl, cl
lea ecx, [r8 + 2]
and dl, 3
movzx eax, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
cmp r8d, 6
mov byte [rsi + 1], al
lea rax, [r10 - 1]
cmovne rax, r10
mov r10, rax
mov eax, r8d
xor r8d, r8d
cmp eax, 6
cmovne r8d, ecx
sub r14, 1
jne 0x14001b800
jmp 0x14001b8b7
lea rsi, [rdx - 1]
and r11d, 1
lea eax, [rbp - 1]
imul r11d, r11d, 0xff
mov r8d, eax
mov edx, 7
shr r8, 3
and eax, 7
add r8, rdi
add rsi, rbp
sub edx, eax
mov r10, rbp
test ebp, ebp
je 0x14001b8b7
nop
movzx eax, byte [r8]
lea rsi, [rsi - 1]
movzx ecx, dl
shr al, cl
lea ecx, [rdx + 1]
and al, 1
neg al
sbb al, al
cmp edx, 7
mov byte [rsi + 1], al
lea rax, [r8 - 1]
cmovne rax, r8
mov r8, rax
mov eax, edx
xor edx, edx
cmp eax, 7
cmovne edx, ecx
sub r10, 1
jne 0x14001b880
lea r10, [r9 + 8]
mov byte [r9 + 0x11], 8
mov qword [r10], rbp
mov al, 8
mov byte [r9 + 0x13], 8
jmp 0x14001b8d0
lea r10, [rcx + 8]
test rbx, rbx
je 0x14001bbd8
cmp al, 8
jne 0x14001b939
movzx esi, r11b
lea r8, [rdi - 1]
add r8, rbp
lea r11, [rdi - 1]
lea r11, [r11 + rbp*2]
mov rbx, rbp
test ebp, ebp
je 0x14001b9b1
mov r10d, 0xff
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8]
lea r11, [r11 - 2]
xor ecx, ecx
lea r8, [r8 - 1]
cmp eax, esi
cmovne ecx, r10d
mov byte [r11 + 2], cl
movzx eax, byte [r8 + 1]
mov byte [r11 + 1], al
sub rbx, 1
jne 0x14001b910
jmp 0x14001b9ad
cmp al, 0x10
jne 0x14001b9b1
mov rax, qword [r10]
lea rdx, [rdi - 1]
mov esi, r11d
movzx r14d, r11b
shr esi, 8
lea rcx, [rdi - 1]
add rdx, rax
lea rcx, [rcx + rax*2]
test ebp, ebp
je 0x14001b9b1
mov rdi, rbp
movzx eax, byte [rdx - 1]
mov rbx, rcx
cmp eax, esi
jne 0x14001b97a
movzx eax, byte [rdx]
cmp eax, r14d
jne 0x14001b97a
dec rcx
xor al, al
jmp 0x14001b97f
dec rcx
mov al, 0xff
mov byte [rbx], al
mov r11, 0xffffffffffffffff
mov byte [rcx], al
mov r10, rcx
movzx eax, byte [rdx]
mov byte [r11 + rcx], al
lea rcx, [r11 + rcx]
movzx eax, byte [rdx - 1]
add rdx, 0xfffffffffffffffe
mov byte [rcx - 1], al
sub rcx, 2
sub rdi, 1
jne 0x14001b960
lea r10, [r9 + 8]
movzx eax, byte [r9 + 0x11]
add al, al
mov byte [r9 + 0x10], 4
movzx ecx, al
mov rax, rbp
mov byte [r9 + 0x12], 2
mov byte [r9 + 0x13], cl
cmp cl, 8
jb 0x14001b9e9
shr rcx, 3
imul rcx, rax
mov qword [r10], rcx
mov rbx, qword [rsp + 0x48]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
imul rcx, rax
add rcx, 7
shr rcx, 3
mov qword [r10], rcx
mov rbx, qword [rsp + 0x48]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp al, 2
jne 0x14001bbd8
test rbx, rbx
je 0x14001bbd8
movzx eax, byte [rcx + 0x11]
lea r8, [rcx + 0x11]
cmp al, 8
jne 0x14001baa6
mov rcx, qword [rcx + 8]
dec rdx
movzx r14d, byte [rbx + 2]
dec rcx
movzx esi, byte [rbx + 4]
add rcx, rdi
movzx ebx, byte [rbx + 6]
mov r11, rbp
lea rdx, [rdx + rbp*4]
test ebp, ebp
je 0x14001bb90
nop
cmp byte [rcx - 2], r14b
jne 0x14001ba64
cmp byte [rcx - 1], sil
jne 0x14001ba64
cmp byte [rcx], bl
jne 0x14001ba64
xor al, al
jmp 0x14001ba66
mov al, 0xff
mov byte [rdx], al
mov r10, 0xffffffffffffffff
movzx eax, byte [rcx]
mov r8, rdx
mov byte [r10 + rdx], al
lea rdx, [r10 + rdx]
movzx eax, byte [rcx - 1]
mov byte [rdx - 1], al
movzx eax, byte [rcx - 2]
sub rcx, 3
mov byte [rdx - 2], al
sub rdx, 3
sub r11, 1
jne 0x14001ba50
lea r10, [r9 + 0x10]
lea r8, [r9 + 0x11]
jmp 0x14001bb90
cmp al, 0x10
jne 0x14001bb90
movzx r15d, word [rbx + 2]
mov rdx, qword [rcx + 8]
movzx esi, r15w
mov qword [rsp + 0x38], r12
lea rcx, [rdi - 1]
movzx r12d, word [rbx + 4]
lea rcx, [rcx + rbp*8]
dec rdx
mov qword [rsp + 0x40], r13
movzx r13d, word [rbx + 6]
movzx r14d, r12w
movzx ebx, r13w
shr si, 8
shr bx, 8
add rdx, rdi
shr r14w, 8
mov qword [rsp + 0x30], rbp
test ebp, ebp
je 0x14001bb86
nop
mov r11, rcx
cmp byte [rdx - 5], sil
jne 0x14001bb2c
cmp byte [rdx - 4], r15b
jne 0x14001bb2c
cmp byte [rdx - 3], r14b
jne 0x14001bb2c
cmp byte [rdx - 2], r12b
jne 0x14001bb2c
cmp byte [rdx - 1], bl
jne 0x14001bb2c
cmp byte [rdx], r13b
jne 0x14001bb2c
dec rcx
xor al, al
jmp 0x14001bb31
dec rcx
mov al, 0xff
mov byte [r11], al
mov r10, 0xffffffffffffffff
mov byte [rcx], al
mov r8, rcx
movzx eax, byte [rdx]
mov byte [r10 + rcx], al
lea rcx, [r10 + rcx]
movzx eax, byte [rdx - 1]
mov byte [rcx - 1], al
movzx eax, byte [rdx - 2]
mov byte [rcx - 2], al
movzx eax, byte [rdx - 3]
mov byte [rcx - 3], al
movzx eax, byte [rdx - 4]
mov byte [rcx - 4], al
movzx eax, byte [rdx - 5]
sub rdx, 6
mov byte [rcx - 5], al
sub rcx, 6
sub qword [rsp + 0x30], 1
jne 0x14001bb00
lea r10, [r9 + 0x10]
lea r8, [r9 + 0x11]
mov r12, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
movzx eax, byte [r8]
shl al, 2
movzx ecx, al
mov rax, rbp
mov byte [r10], 6
mov byte [r9 + 0x12], 4
mov byte [r9 + 0x13], cl
cmp cl, 8
jb 0x14001bbc8
shr rcx, 3
imul rcx, rax
mov qword [r9 + 8], rcx
mov rbx, qword [rsp + 0x48]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
imul rcx, rax
add rcx, 7
shr rcx, 3
mov qword [r9 + 8], rcx
mov rbx, qword [rsp + 0x48]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret