Function at 0x140008470
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x90]
mov rdx, r8
mov r8, rbx
mov r9, rdi
call fcn.14001dce0
mov rdx, qword [rsp + 0xe0]
mov r8, qword [rsp + 0x98]
cmp r8, rdx
sete r9b
cmp qword [rsp + 0x90], 0
mov rcx, qword [rsp + 0xd8]
je 0x1400087a5
mov rbp, qword [rsp + 0xb8]
mov r11, rdi
cmp rbp, rdx
je 0x1400088e7
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0xf0]
lea r9, [rax - 1]
mov qword [rsp + 0x48], r9
mov r9, qword [rsp + 0xb0]
mov qword [rsp + 0x68], r9
mov r12, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xc8]
mov r10, qword [rsp + 0xa8]
mov r11, rax
mov r9, r10
mov qword [rsp + 0x88], r10
sub r11, r10
mov qword [rsp + 0x78], r11
lea r9, [r8 - 1]
mov qword [rsp + 0x70], r9
cmp r9, rax
setb byte [rsp + 0x37]
mov r9, rbp
sub r9, r8
mov qword [rsp + 0x60], r9
lea r13, [rcx + rbp]
lea rdi, [rcx + r8]
lea rsi, [r12 + r8]
lea r9, [r12 + r8]
dec r9
mov qword [rsp + 0x80], r9
lea r9, [r8 + rbp]
dec r9
mov qword [rsp + 0x50], r9
mov r11, rbp
mov r9, qword [rsp + 0x48]
add r9, rbp
cmp r9, rdx
jae 0x1400088ab
mov r10, qword [rsp + 0x88]
add r10, r11
mov qword [rsp + 0x58], r10
lea rbp, [r11 + rax]
cmp rbx, 0xffffffffffffffff
je 0x140008690
mov r15, r11
jmp 0x1400085d6
xor ebx, ebx
mov r15, rbp
mov r9, qword [rsp + 0x48]
add r9, r15
cmp r9, rdx
jae 0x1400088ab
cmp r11, r15
jne 0x1400088ab
movzx r9d, byte [rcx + r9]
mov r10, qword [rsp + 0x68]
bt r10, r9
jae 0x1400085c0
cmp r8, rbx
mov r9, rbx
cmova r9, r8
mov r10, r9
nop dword [rax]
cmp r10, rax
jae 0x140008630
lea r14, [r11 + r10]
cmp r14, rdx
jae 0x140008923
lea r15, [r10 + 1]
movzx r14d, byte [r12 + r10]
cmp r14b, byte [r13 + r10]
mov r10, r15
je 0x140008600
add r15, qword [rsp + 0x60]
xor ebx, ebx
jmp 0x1400085c5
mov r10, r8
nop word cs:[rax + rax]
cmp rbx, r10
jae 0x140008680
dec r10
cmp r10, rax
jae 0x140008793
lea r9, [r10 + r11]
cmp r9, rdx
jae 0x140008911
movzx r14d, byte [r12 + r10]
cmp r14b, byte [rcx + r9]
je 0x140008640
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x58]
jmp 0x1400085c5
xor ebx, ebx
jmp 0x140008767
mov r10, r11
jmp 0x1400086b1
mov r10, qword [rsp + 0x58]
nop word [rax + rax]
mov r9, qword [rsp + 0x48]
add r9, r10
cmp r9, rdx
jae 0x1400088ab
cmp r11, r10
jne 0x1400088ab
movzx r9d, byte [rcx + r9]
mov r10, qword [rsp + 0x68]
bt r10, r9
mov r10, rbp
jae 0x1400086a0
xor r9d, r9d
mov rbx, r11
nop word cs:[rax + rax]
lea r10, [r8 + r9]
cmp r10, rax
jae 0x140008710
lea r10, [r8 + rbx]
cmp r10, rdx
jae 0x140008920
movzx r14d, byte [rsi + r9]
lea r10, [rbx + 1]
inc r9
cmp r14b, byte [rdi + rbx]
mov rbx, r10
je 0x1400086e0
jmp 0x1400086a0
test byte [rsp + 0x37], 1
je 0x140008782
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x80]
mov rbx, r8
nop word [rax + rax]
sub rbx, 1
jb 0x140008760
cmp r9, rdx
jae 0x140008911
movzx r15d, byte [r10]
dec r10
lea r14, [r9 - 1]
cmp r15b, byte [rcx + r9]
mov r9, r14
je 0x140008730
jmp 0x140008695
mov rbx, 0xffffffffffffffff
add qword [rsp + 0x60], rax
add r13, rax
add qword [rsp + 0x50], rax
cmp rbp, rdx
jne 0x14000857a
jmp 0x140008907
mov rbx, 0xffffffffffffffff
test r8, r8
je 0x140008767
mov r10, qword [rsp + 0x70]
lea r8, [0x1400299d8]
mov rcx, r10
mov rdx, rax
call fcn.140026ff0
cmp byte [rsp + 0xaa], 0
mov r11, rdi
jne 0x1400088e7
movzx eax, byte [rsp + 0xa8]
test r9b, 1
je 0x140008820
test r8, r8
je 0x1400088c7
cmp r8, rdx
jae 0x1400088d6
cmp byte [rcx + r8], 0xc0
jl 0x14000893c
mov r11, rdi
test al, al
je 0x1400088e7
nop dword [rax]
xor al, 1
jne 0x1400087f0
jmp 0x1400088e4
movzx r10d, byte [rcx + r8]
test r10b, r10b
js 0x140008842
movzx r9d, r10b
mov r10d, eax
xor r10b, 1
test al, al
mov eax, r10d
je 0x1400088b7
test r8, r8
je 0x140008800
cmp r8, rdx
jae 0x14000893c
movzx r10d, byte [rcx + r8]
cmp r10b, 0xbf
jle 0x14000893c
test r10b, r10b
jns 0x14000880a
mov r9d, r10d
and r9b, 0x1f
movzx r9d, r9b
movzx esi, byte [rcx + r8 + 1]
and esi, 0x3f
cmp r10b, 0xe0
jb 0x140008893
movzx r11d, byte [rcx + r8 + 2]
shl esi, 6
and r11d, 0x3f
or r11d, esi
cmp r10b, 0xf0
jb 0x14000889f
movzx r10d, byte [rcx + r8 + 3]
and r9d, 7
shl r9d, 0x12
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
or r9d, r10d
jmp 0x14000880e
shl r9d, 6
or r9d, esi
jmp 0x14000880e
shl r9d, 0xc
or r9d, r11d
jmp 0x14000880e
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
jmp 0x1400088e7
cmp r9d, 0x110000
cmove r8, rdi
mov r11, r8
jmp 0x1400088e7
mov r11, rdi
test al, al
je 0x1400088e7
nop
xor al, 1
jne 0x1400088d0
jmp 0x1400088e4
mov r11, rdi
test al, al
je 0x1400088e7
nop dword [rax]
xor al, 1
jne 0x1400088e0
mov r11, rdi
sub rdi, r11
add rbx, r11
mov rax, rbx
mov rdx, rdi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x40]
mov r11, rdi
jmp 0x1400088b0
lea r8, [0x1400299f0]
mov rcx, r9
call fcn.140026ff0
mov r9, r8
add r9, r11
cmp rdx, r9
cmova r9, rdx
lea r8, [0x140029a08]
mov rcx, r9
call fcn.140026ff0
lea rax, [0x140029a20]
mov qword [rsp + 0x20], rax
mov r9, rdx
call fcn.140027350
int3