Function at 0x1801b4770
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 edi, dword [rcx]
mov rbx, r8
mov rsi, rdx
mov r9, rcx
test al, al
jne 0x1801b4a9d
test rbx, rbx
je 0x1801b47a7
movzx r11d, word [r8 + 8]
jmp 0x1801b47aa
xor r11d, r11d
movzx eax, byte [rcx + 0x11]
cmp al, 8
jae 0x1801b495d
mov ecx, eax
sub ecx, 1
je 0x1801b48df
sub ecx, 1
je 0x1801b4851
cmp ecx, 2
jne 0x1801b4948
lea eax, [rdi - 1]
and r11d, 0xf
mov r8d, eax
lea r14, [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, rsi
add r14, rdi
mov rbp, rdi
test edi, edi
je 0x1801b4948
nop dword [rax + rax]
movzx edx, byte [r8]
lea r14, [r14 - 1]
movzx ecx, r10b
shr dl, cl
movzx eax, dl
shl dl, 4
and al, 0xf
xor al, dl
mov byte [r14 + 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 rbp, 1
jne 0x1801b4810
jmp 0x1801b4948
lea eax, [rdi - 1]
and r11d, 3
mov r10d, eax
lea r14, [rdx - 1]
and eax, 3
shr r10, 2
add eax, eax
imul r11d, r11d, 0x55
mov r8d, 6
add r10, rsi
sub r8d, eax
add r14, rdi
mov rbp, rdi
test edi, edi
je 0x1801b4948
nop word [rax + rax]
movzx edx, byte [r10]
lea r14, [r14 - 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 [r14 + 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 rbp, 1
jne 0x1801b4890
jmp 0x1801b4948
lea r14, [rdx - 1]
and r11d, 1
lea eax, [rdi - 1]
imul r11d, r11d, 0xff
mov r8d, eax
mov edx, 7
shr r8, 3
and eax, 7
add r8, rsi
add r14, rdi
sub edx, eax
mov r10, rdi
test edi, edi
je 0x1801b4948
nop
movzx eax, byte [r8]
lea r14, [r14 - 1]
movzx ecx, dl
shr al, cl
lea ecx, [rdx + 1]
and al, 1
neg al
sbb al, al
cmp edx, 7
mov byte [r14 + 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 0x1801b4910
lea r10, [r9 + 8]
mov byte [r9 + 0x11], 8
mov qword [r10], rdi
mov al, 8
mov byte [r9 + 0x13], 8
jmp 0x1801b4961
lea r10, [rcx + 8]
test rbx, rbx
je 0x1801b4c77
cmp al, 8
jne 0x1801b49c9
movzx ebp, r11b
lea r8, [rsi - 1]
lea r11d, [rdi + rdi]
add r8, rdi
dec r11
mov rbx, rdi
add r11, rsi
test edi, edi
je 0x1801b4a41
mov r10d, 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, ebp
cmovne ecx, r10d
mov byte [r11 + 2], cl
movzx eax, byte [r8 + 1]
mov byte [r11 + 1], al
sub rbx, 1
jne 0x1801b49a0
jmp 0x1801b4a3d
cmp al, 0x10
jne 0x1801b4a41
mov rax, qword [r10]
lea rdx, [rsi - 1]
mov ebp, r11d
movzx r14d, r11b
shr ebp, 8
lea rcx, [rsi - 1]
add rdx, rax
lea rcx, [rcx + rax*2]
test edi, edi
je 0x1801b4a41
mov rsi, rdi
movzx eax, byte [rdx - 1]
mov rbx, rcx
cmp eax, ebp
jne 0x1801b4a0a
movzx eax, byte [rdx]
cmp eax, r14d
jne 0x1801b4a0a
dec rcx
xor al, al
jmp 0x1801b4a0f
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 rsi, 1
jne 0x1801b49f0
lea r10, [r9 + 8]
movzx eax, byte [r9 + 0x11]
add al, al
mov byte [r9 + 0x10], 4
movzx ecx, al
mov rax, rdi
mov byte [r9 + 0x12], 2
mov byte [r9 + 0x13], cl
cmp cl, 8
jb 0x1801b4a7d
shr rcx, 3
imul rcx, rax
mov qword [r10], 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 [r10], rcx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop rdi
pop rsi
ret
cmp al, 2
jne 0x1801b4c77
test rbx, rbx
je 0x1801b4c77
movzx eax, byte [rcx + 0x11]
lea r10, [rcx + 0x11]
cmp al, 8
jne 0x1801b4b49
movzx r14d, byte [r8 + 2]
movzx ebp, byte [r8 + 4]
movzx ebx, byte [r8 + 6]
lea r8d, [rdi*4]
mov rdx, qword [rcx + 8]
dec r8
dec rdx
add r8, rsi
add rdx, rsi
test edi, edi
je 0x1801b4c3e
mov r11, rdi
cmp byte [rdx - 2], r14b
jne 0x1801b4b04
cmp byte [rdx - 1], bpl
jne 0x1801b4b04
cmp byte [rdx], bl
jne 0x1801b4b04
xor al, al
jmp 0x1801b4b06
mov al, 0xff
mov byte [r8], al
mov rcx, r8
movzx eax, byte [rdx]
mov r10, 0xffffffffffffffff
lea r8, [r10 + rcx]
mov byte [r10 + 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 0x1801b4af0
lea r11, [r9 + 0x10]
lea r10, [r9 + 0x11]
jmp 0x1801b4c3e
cmp al, 0x10
jne 0x1801b4c3e
movzx r15d, word [r8 + 2]
lea edx, [rdi*8]
mov qword [rsp + 0x28], r12
dec rdx
movzx r12d, word [r8 + 4]
movzx ebp, r15w
mov qword [rsp + 0x30], r13
movzx r14d, r12w
movzx r13d, word [r8 + 6]
add rdx, rsi
mov r8, qword [rcx + 8]
movzx ebx, r13w
dec r8
shr bp, 8
add r8, rsi
shr r14w, 8
shr bx, 8
test edi, edi
je 0x1801b4c34
mov rsi, rdi
mov r11, rdx
cmp byte [r8 - 5], bpl
jne 0x1801b4bd2
cmp byte [r8 - 4], r15b
jne 0x1801b4bd2
cmp byte [r8 - 3], r14b
jne 0x1801b4bd2
cmp byte [r8 - 2], r12b
jne 0x1801b4bd2
cmp byte [r8 - 1], bl
jne 0x1801b4bd2
cmp byte [r8], r13b
jne 0x1801b4bd2
dec rdx
xor al, al
jmp 0x1801b4bd7
dec rdx
mov al, 0xff
mov byte [r11], al
mov r10, 0xffffffffffffffff
mov byte [rdx], al
mov rcx, rdx
movzx eax, byte [r8]
mov byte [r10 + rdx], al
lea rdx, [r10 + rdx]
movzx eax, byte [r8 - 1]
mov byte [rdx - 1], al
movzx eax, byte [r8 - 2]
mov byte [rdx - 2], al
movzx eax, byte [r8 - 3]
mov byte [rdx - 3], al
movzx eax, byte [r8 - 4]
mov byte [rdx - 4], al
movzx eax, byte [r8 - 5]
sub r8, 6
mov byte [rdx - 5], al
sub rdx, 6
sub rsi, 1
jne 0x1801b4ba5
lea r11, [r9 + 0x10]
lea r10, [r9 + 0x11]
mov r12, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
movzx eax, byte [r10]
shl al, 2
movzx ecx, al
mov rax, rdi
mov byte [r11], 6
mov byte [r9 + 0x12], 4
mov byte [r9 + 0x13], cl
cmp cl, 8
jb 0x1801b4c67
shr rcx, 3
imul rcx, rax
jmp 0x1801b4c73
imul rcx, rax
add rcx, 7
shr rcx, 3
mov qword [r9 + 8], rcx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop rdi
pop rsi
ret