Function at 0x140190980
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r13
push r14
movzx eax, byte [rcx + 0x10]
lea r9, [rcx + 0x10]
mov r13d, dword [rcx]
mov rsi, r8
mov rbp, rdx
mov r10, rcx
test al, al
jne 0x140190c85
test r8, r8
je 0x1401909b4
movzx edi, word [r8 + 8]
jmp 0x1401909b6
xor edi, edi
movzx eax, byte [rcx + 0x11]
cmp al, 8
jae 0x140190b4e
mov ecx, eax
sub ecx, 1
je 0x140190adf
sub ecx, 1
je 0x140190a61
cmp ecx, 2
jne 0x140190b39
lea eax, [r13 - 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, r13
mov rbx, r13
test r13d, r13d
je 0x140190b39
nop word [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 0x140190a20
jmp 0x140190b39
lea eax, [r13 - 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, r13
mov rbx, r13
test r13d, r13d
je 0x140190b39
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 0x140190ad0
xor r8d, r8d
dec r9
jmp 0x140190ad4
add r8d, 2
dec r11
sub rbx, 1
jne 0x140190aa0
jmp 0x140190b39
lea r9, [rdx - 1]
and edi, 1
lea eax, [r13 - 1]
imul edi, edi, 0xff
mov r8d, eax
mov edx, 7
shr r8, 3
and eax, 7
add r8, rbp
add r9, r13
sub edx, eax
mov r11, r13
test r13d, r13d
je 0x140190b39
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 0x140190b2e
xor edx, edx
dec r8
jmp 0x140190b30
inc edx
dec r9
sub r11, 1
jne 0x140190b10
lea r9, [r10 + 8]
mov byte [r10 + 0x11], 8
mov qword [r9], r13
mov al, 8
mov byte [r10 + 0x13], 8
jmp 0x140190b52
lea r9, [rcx + 8]
test rsi, rsi
je 0x140190e58
cmp al, 8
jne 0x140190bb9
lea r8, [rbp - 1]
movzx edi, dil
add r8, r13
lea r11, [rbp - 1]
lea r11, [r11 + r13*2]
mov rbx, r13
test r13d, r13d
je 0x140190c31
mov r9d, 0xff
nop dword [rax]
nop dword [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 0x140190b90
jmp 0x140190c2d
cmp al, 0x10
jne 0x140190c31
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 r13d, r13d
je 0x140190c31
mov rdi, r13
movzx eax, byte [rdx - 1]
mov rbx, rcx
cmp eax, esi
jne 0x140190bfa
movzx eax, byte [rdx]
cmp eax, r14d
jne 0x140190bfa
dec rcx
xor al, al
jmp 0x140190bff
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 0x140190be0
lea r9, [r10 + 8]
movzx eax, byte [r10 + 0x11]
add al, al
mov byte [r10 + 0x10], 4
movzx ecx, al
mov rax, r13
mov byte [r10 + 0x12], 2
mov byte [r10 + 0x13], cl
cmp cl, 8
jb 0x140190c69
shr rcx, 3
imul rcx, rax
mov qword [r9], rcx
mov rbx, qword [rsp + 0x48]
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
imul rcx, rax
add rcx, 7
shr rcx, 3
mov qword [r9], rcx
mov rbx, qword [rsp + 0x48]
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
cmp al, 2
jne 0x140190e58
test rsi, rsi
je 0x140190e58
movzx eax, byte [rcx + 0x11]
lea r8, [rcx + 0x11]
cmp al, 8
jne 0x140190d26
mov rcx, qword [rcx + 8]
dec rdx
movzx r14d, byte [rsi + 2]
dec rcx
movzx ebx, byte [rsi + 4]
add rcx, rbp
movzx edi, byte [rsi + 6]
mov r11, r13
lea rdx, [rdx + r13*4]
test r13d, r13d
je 0x140190e10
cmp byte [rcx - 2], r14b
jne 0x140190ce4
cmp byte [rcx - 1], bl
jne 0x140190ce4
cmp byte [rcx], dil
jne 0x140190ce4
xor al, al
jmp 0x140190ce6
mov al, 0xff
mov byte [rdx], al
mov r9, 0xffffffffffffffff
movzx eax, byte [rcx]
mov r8, rdx
mov byte [r9 + rdx], al
lea rdx, [r9 + 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 0x140190cd0
lea r9, [r10 + 0x10]
lea r8, [r10 + 0x11]
jmp 0x140190e10
cmp al, 0x10
jne 0x140190e10
movzx r14d, word [rsi + 2]
dec rdx
mov rcx, qword [rcx + 8]
movzx ebx, r14w
mov qword [rsp + 0x38], r12
dec rcx
movzx r12d, word [rsi + 6]
add rcx, rbp
mov qword [rsp + 0x40], r15
lea rdx, [rdx + r13*8]
movzx r15d, word [rsi + 4]
movzx esi, r12w
movzx edi, r15w
shr bx, 8
shr di, 8
shr si, 8
mov qword [rsp + 0x30], r13
test r13d, r13d
je 0x140190e06
nop
mov r11, rdx
cmp byte [rcx - 5], bl
jne 0x140190dac
cmp byte [rcx - 4], r14b
jne 0x140190dac
cmp byte [rcx - 3], dil
jne 0x140190dac
cmp byte [rcx - 2], r15b
jne 0x140190dac
cmp byte [rcx - 1], sil
jne 0x140190dac
cmp byte [rcx], r12b
jne 0x140190dac
dec rdx
xor al, al
jmp 0x140190db1
dec rdx
mov al, 0xff
mov byte [r11], al
mov r9, 0xffffffffffffffff
mov byte [rdx], al
mov r8, rdx
movzx eax, byte [rcx]
mov byte [r9 + rdx], al
lea rdx, [r9 + rdx]
movzx eax, byte [rcx - 1]
mov byte [rdx - 1], al
movzx eax, byte [rcx - 2]
mov byte [rdx - 2], al
movzx eax, byte [rcx - 3]
mov byte [rdx - 3], al
movzx eax, byte [rcx - 4]
mov byte [rdx - 4], al
movzx eax, byte [rcx - 5]
sub rcx, 6
mov byte [rdx - 5], al
sub rdx, 6
sub qword [rsp + 0x30], 1
jne 0x140190d80
lea r9, [r10 + 0x10]
lea r8, [r10 + 0x11]
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
movzx eax, byte [r8]
shl al, 2
movzx ecx, al
mov rax, r13
mov byte [r9], 6
mov byte [r10 + 0x12], 4
mov byte [r10 + 0x13], cl
cmp cl, 8
jb 0x140190e48
shr rcx, 3
imul rcx, rax
mov qword [r10 + 8], rcx
mov rbx, qword [rsp + 0x48]
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
imul rcx, rax
add rcx, 7
shr rcx, 3
mov qword [r10 + 8], rcx
mov rbx, qword [rsp + 0x48]
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret