Function at 0x180113970
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 0x180113c95
test rbx, rbx
je 0x1801139a3
movzx r11d, word [r8 + 8]
jmp 0x1801139a6
xor r11d, r11d
movzx eax, byte [rcx + 0x11]
cmp al, 8
jae 0x180113b5c
mov ecx, eax
sub ecx, 1
je 0x180113ade
sub ecx, 1
je 0x180113a50
cmp ecx, 2
jne 0x180113b47
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 0x180113b47
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 0x180113a10
jmp 0x180113b47
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 0x180113b47
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 0x180113a90
jmp 0x180113b47
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 0x180113b47
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 0x180113b10
lea r10, [r9 + 8]
mov byte [r9 + 0x11], 8
mov qword [r10], rbp
mov al, 8
mov byte [r9 + 0x13], 8
jmp 0x180113b60
lea r10, [rcx + 8]
test rbx, rbx
je 0x180113e68
cmp al, 8
jne 0x180113bc9
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 0x180113c41
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 0x180113ba0
jmp 0x180113c3d
cmp al, 0x10
jne 0x180113c41
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 0x180113c41
mov rdi, rbp
movzx eax, byte [rdx - 1]
mov rbx, rcx
cmp eax, esi
jne 0x180113c0a
movzx eax, byte [rdx]
cmp eax, r14d
jne 0x180113c0a
dec rcx
xor al, al
jmp 0x180113c0f
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 0x180113bf0
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 0x180113c79
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 0x180113e68
test rbx, rbx
je 0x180113e68
movzx eax, byte [rcx + 0x11]
lea r8, [rcx + 0x11]
cmp al, 8
jne 0x180113d36
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 0x180113e20
nop
cmp byte [rcx - 2], r14b
jne 0x180113cf4
cmp byte [rcx - 1], sil
jne 0x180113cf4
cmp byte [rcx], bl
jne 0x180113cf4
xor al, al
jmp 0x180113cf6
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 0x180113ce0
lea r10, [r9 + 0x10]
lea r8, [r9 + 0x11]
jmp 0x180113e20
cmp al, 0x10
jne 0x180113e20
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 0x180113e16
nop
mov r11, rcx
cmp byte [rdx - 5], sil
jne 0x180113dbc
cmp byte [rdx - 4], r15b
jne 0x180113dbc
cmp byte [rdx - 3], r14b
jne 0x180113dbc
cmp byte [rdx - 2], r12b
jne 0x180113dbc
cmp byte [rdx - 1], bl
jne 0x180113dbc
cmp byte [rdx], r13b
jne 0x180113dbc
dec rcx
xor al, al
jmp 0x180113dc1
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 0x180113d90
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 0x180113e58
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