Function at 0x1401733a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
push r15
movzx eax, byte [rcx + 0x10]
lea r11, [rcx + 0x10]
mov r15d, dword [rcx]
mov rsi, r8
mov rbp, rdx
mov r10, rcx
test al, al
jne 0x1401736ad
test r8, r8
je 0x1401733d8
movzx edi, word [r8 + 8]
jmp 0x1401733da
xor edi, edi
movzx eax, byte [rcx + 0x11]
cmp al, 8
jae 0x14017356e
mov ecx, eax
sub ecx, 1
je 0x1401734ff
sub ecx, 1
je 0x140173481
cmp ecx, 2
jne 0x140173559
lea eax, [r15 - 1]
and edi, 0xf
mov r8d, eax
lea r11, [rdx - 1]
and eax, 1
shr r8, 1
shl eax, 2
mov r14d, 4
mov r9d, r14d
imul edi, edi, 0x11
sub r9d, eax
add r8, rbp
add r11, r15
mov rbx, r15
test r15d, r15d
je 0x140173559
nop dword [rax + rax]
movzx edx, byte [r8]
lea r11, [r11 - 1]
movzx ecx, r9b
shr dl, cl
movzx eax, dl
shl dl, 4
and al, 0xf
xor al, dl
mov byte [r11 + 1], al
cmp r9d, r14d
lea rax, [r8 - 1]
cmovne rax, r8
mov r8, rax
xor eax, eax
cmp r9d, r14d
cmovne eax, r14d
mov r9d, eax
sub rbx, 1
jne 0x140173440
jmp 0x140173559
lea eax, [r15 - 1]
and edi, 3
mov r9d, eax
lea r11, [rdx - 1]
and eax, 3
shr r9, 2
add eax, eax
imul edi, edi, 0x55
mov r8d, 6
add r9, rbp
sub r8d, eax
add r11, r15
mov rbx, r15
test r15d, r15d
je 0x140173559
nop word [rax + rax]
movzx edx, byte [r9]
movzx ecx, r8b
shr dl, cl
and dl, 3
movzx eax, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
mov byte [r11], al
cmp r8d, 6
jne 0x1401734f0
xor r8d, r8d
dec r9
jmp 0x1401734f4
add r8d, 2
dec r11
sub rbx, 1
jne 0x1401734c0
jmp 0x140173559
lea r9, [rdx - 1]
and edi, 1
lea eax, [r15 - 1]
imul edi, edi, 0xff
mov r8d, eax
mov edx, 7
shr r8, 3
and eax, 7
add r8, rbp
add r9, r15
sub edx, eax
mov r11, r15
test r15d, r15d
je 0x140173559
nop
movzx eax, byte [r8]
movzx ecx, dl
shr al, cl
and al, 1
neg al
sbb al, al
mov byte [r9], al
cmp edx, 7
jne 0x14017354e
xor edx, edx
dec r8
jmp 0x140173550
inc edx
dec r9
sub r11, 1
jne 0x140173530
lea r9, [r10 + 8]
mov byte [r10 + 0x11], 8
mov qword [r9], r15
mov al, 8
mov byte [r10 + 0x13], 8
jmp 0x140173572
lea r9, [rcx + 8]
test rsi, rsi
je 0x140173888
cmp al, 8
jne 0x1401735d9
lea r11d, [r15 + r15]
movzx edi, dil
dec r11
lea r8, [rbp - 1]
add r11, rbp
add r8, r15
mov rbx, r15
test r15d, r15d
je 0x140173651
mov r9d, 0xff
nop word [rax + rax]
movzx eax, byte [r8]
lea r11, [r11 - 2]
xor ecx, ecx
lea r8, [r8 - 1]
cmp eax, edi
cmovne ecx, r9d
mov byte [r11 + 2], cl
movzx eax, byte [r8 + 1]
mov byte [r11 + 1], al
sub rbx, 1
jne 0x1401735b0
jmp 0x14017364d
cmp al, 0x10
jne 0x140173651
mov rax, qword [r9]
lea rdx, [rbp - 1]
mov esi, edi
movzx r14d, dil
shr esi, 8
lea rcx, [rbp - 1]
add rdx, rax
lea rcx, [rcx + rax*2]
test r15d, r15d
je 0x140173651
mov rdi, r15
movzx eax, byte [rdx - 1]
mov rbx, rcx
cmp eax, esi
jne 0x14017361a
movzx eax, byte [rdx]
cmp eax, r14d
jne 0x14017361a
dec rcx
xor al, al
jmp 0x14017361f
dec rcx
mov al, 0xff
mov byte [rbx], al
mov r11, 0xffffffffffffffff
mov byte [rcx], al
mov r9, 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 0x140173600
lea r9, [r10 + 8]
movzx eax, byte [r10 + 0x11]
add al, al
mov byte [r10 + 0x10], 4
movzx ecx, al
mov rax, r15
mov byte [r10 + 0x12], 2
mov byte [r10 + 0x13], cl
cmp cl, 8
jb 0x14017368d
shr rcx, 3
imul rcx, rax
mov qword [r9], rcx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop rdi
pop rsi
ret
imul rcx, rax
add rcx, 7
shr rcx, 3
mov qword [r9], rcx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop rdi
pop rsi
ret
cmp al, 2
jne 0x140173888
test rsi, rsi
je 0x140173888
movzx eax, byte [rcx + 0x11]
lea r9, [rcx + 0x11]
cmp al, 8
jne 0x14017375a
movzx r14d, byte [r8 + 2]
movzx ebx, byte [r8 + 4]
movzx edi, byte [r8 + 6]
lea r8d, [r15*4]
mov rdx, qword [rcx + 8]
dec r8
dec rdx
add r8, rbp
add rdx, rbp
test r15d, r15d
je 0x14017384f
mov r11, r15
cmp byte [rdx - 2], r14b
jne 0x140173715
cmp byte [rdx - 1], bl
jne 0x140173715
cmp byte [rdx], dil
jne 0x140173715
xor al, al
jmp 0x140173717
mov al, 0xff
mov byte [r8], al
mov rcx, r8
movzx eax, byte [rdx]
mov r9, 0xffffffffffffffff
lea r8, [r9 + rcx]
mov byte [r9 + rcx], al
movzx eax, byte [rdx - 1]
mov byte [r8 - 1], al
movzx eax, byte [rdx - 2]
sub rdx, 3
mov byte [r8 - 2], al
sub r8, 3
sub r11, 1
jne 0x140173701
lea r11, [r10 + 0x10]
lea r9, [r10 + 0x11]
jmp 0x14017384f
cmp al, 0x10
jne 0x14017384f
movzx r14d, word [r8 + 2]
mov rdx, qword [rcx + 8]
movzx ebx, r14w
mov qword [rsp + 0x28], r12
dec rdx
movzx r12d, word [r8 + 4]
add rdx, rbp
mov qword [rsp + 0x30], r13
movzx edi, r12w
movzx r13d, word [r8 + 6]
lea r8d, [r15*8]
dec r8
shr bx, 8
movzx esi, r13w
shr di, 8
add r8, rbp
shr si, 8
test r15d, r15d
je 0x140173845
mov rbp, r15
mov r11, r8
cmp byte [rdx - 5], bl
jne 0x1401737e3
cmp byte [rdx - 4], r14b
jne 0x1401737e3
cmp byte [rdx - 3], dil
jne 0x1401737e3
cmp byte [rdx - 2], r12b
jne 0x1401737e3
cmp byte [rdx - 1], sil
jne 0x1401737e3
cmp byte [rdx], r13b
jne 0x1401737e3
dec r8
xor al, al
jmp 0x1401737e8
dec r8
mov al, 0xff
mov byte [r11], al
mov rcx, r8
mov byte [r8], al
mov r9, 0xffffffffffffffff
movzx eax, byte [rdx]
lea r8, [r9 + rcx]
mov byte [r9 + rcx], al
movzx eax, byte [rdx - 1]
mov byte [r8 - 1], al
movzx eax, byte [rdx - 2]
mov byte [r8 - 2], al
movzx eax, byte [rdx - 3]
mov byte [r8 - 3], al
movzx eax, byte [rdx - 4]
mov byte [r8 - 4], al
movzx eax, byte [rdx - 5]
sub rdx, 6
mov byte [r8 - 5], al
sub r8, 6
sub rbp, 1
jne 0x1401737b7
lea r11, [r10 + 0x10]
lea r9, [r10 + 0x11]
mov r12, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
movzx eax, byte [r9]
shl al, 2
movzx ecx, al
mov rax, r15
mov byte [r11], 6
mov byte [r10 + 0x12], 4
mov byte [r10 + 0x13], cl
cmp cl, 8
jb 0x140173878
shr rcx, 3
imul rcx, rax
jmp 0x140173884
imul rcx, rax
add rcx, 7
shr rcx, 3
mov qword [r10 + 8], rcx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop rdi
pop rsi
ret