Function at 0x140001290
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 rax, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x90]
mov rdx, rdi
mov r8, rsi
mov r9, rax
call fcn.14003ded0
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 0x1400015c5
mov rbp, qword [rsp + 0xb8]
mov r11, rsi
cmp rbp, rdx
je 0x14000166a
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rsi
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 0x140001660
mov r10, qword [rsp + 0x88]
add r10, r11
mov qword [rsp + 0x58], r10
lea rbp, [r11 + rax]
cmp rbx, 0xffffffffffffffff
je 0x1400014b0
mov r15, r11
jmp 0x1400013f6
xor ebx, ebx
mov r15, rbp
mov r9, qword [rsp + 0x48]
add r9, r15
cmp r9, rdx
jae 0x140001660
cmp r11, r15
jne 0x140001660
movzx r9d, byte [rcx + r9]
mov r10, qword [rsp + 0x68]
bt r10, r9
jae 0x1400013e0
cmp r8, rbx
mov r9, rbx
cmova r9, r8
mov r10, r9
nop dword [rax]
cmp r10, rax
jae 0x140001450
lea r14, [r11 + r10]
cmp r14, rdx
jae 0x1400016db
lea r15, [r10 + 1]
movzx r14d, byte [r12 + r10]
cmp r14b, byte [r13 + r10]
mov r10, r15
je 0x140001420
add r15, qword [rsp + 0x60]
xor ebx, ebx
jmp 0x1400013e5
mov r10, r8
nop word cs:[rax + rax]
cmp rbx, r10
jae 0x1400014a0
dec r10
cmp r10, rax
jae 0x1400015b3
lea r9, [r10 + r11]
cmp r9, rdx
jae 0x1400016c9
movzx r14d, byte [r12 + r10]
cmp r14b, byte [rcx + r9]
je 0x140001460
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x58]
jmp 0x1400013e5
xor ebx, ebx
jmp 0x140001587
mov r10, r11
jmp 0x1400014d1
mov r10, qword [rsp + 0x58]
nop word [rax + rax]
mov r9, qword [rsp + 0x48]
add r9, r10
cmp r9, rdx
jae 0x140001660
cmp r11, r10
jne 0x140001660
movzx r9d, byte [rcx + r9]
mov r10, qword [rsp + 0x68]
bt r10, r9
mov r10, rbp
jae 0x1400014c0
xor r9d, r9d
mov rbx, r11
nop word cs:[rax + rax]
lea r10, [r8 + r9]
cmp r10, rax
jae 0x140001530
lea r10, [r8 + rbx]
cmp r10, rdx
jae 0x1400016d8
movzx r14d, byte [rsi + r9]
lea r10, [rbx + 1]
inc r9
cmp r14b, byte [rdi + rbx]
mov rbx, r10
je 0x140001500
jmp 0x1400014c0
test byte [rsp + 0x37], 1
je 0x1400015a2
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x80]
mov rbx, r8
nop word [rax + rax]
sub rbx, 1
jb 0x140001580
cmp r9, rdx
jae 0x1400016c9
movzx r15d, byte [r10]
dec r10
lea r14, [r9 - 1]
cmp r15b, byte [rcx + r9]
mov r9, r14
je 0x140001550
jmp 0x1400014b5
mov rbx, 0xffffffffffffffff
add qword [rsp + 0x60], rax
add r13, rax
add qword [rsp + 0x50], rax
cmp rbp, rdx
jne 0x1400013a2
jmp 0x1400016a6
mov rbx, 0xffffffffffffffff
test r8, r8
je 0x140001587
mov r10, qword [rsp + 0x70]
lea r8, [0x140047610]
mov rcx, r10
mov rdx, rax
call fcn.1400466e0
cmp byte [rsp + 0xaa], 0
mov r11, rsi
jne 0x14000166a
movzx eax, byte [rsp + 0xa8]
test r9b, 1
je 0x140001638
test r8, r8
je 0x14000168f
cmp r8, rdx
jae 0x1400016b0
cmp byte [rcx + r8], 0xc0
jl 0x1400016f4
mov r11, rsi
test al, al
je 0x14000166a
nop dword [rax + rax]
xor al, 1
jne 0x140001610
jmp 0x1400016c4
movzx r9d, byte [rcx + r8]
test r9b, r9b
js 0x14000165a
mov r9d, eax
xor r9b, 1
test al, al
mov eax, r9d
je 0x14000168a
test r8, r8
je 0x140001620
cmp r8, rdx
jae 0x1400016f4
movzx r9d, byte [rcx + r8]
cmp r9b, 0xbf
jle 0x1400016f4
test r9b, r9b
jns 0x14000162a
cmp r9b, 0xe0
jmp 0x14000162a
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
sub rsi, r11
add rdi, r11
mov rax, rdi
mov rdx, rsi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r11, r8
jmp 0x14000166a
mov r11, rsi
test al, al
je 0x14000166a
nop word cs:[rax + rax]
xor al, 1
jne 0x1400016a0
jmp 0x1400016c4
mov rsi, qword [rsp + 0x40]
mov r11, rsi
jmp 0x140001665
mov r11, rsi
test al, al
je 0x14000166a
nop word [rax + rax]
xor al, 1
jne 0x1400016c0
mov r11, rsi
jmp 0x14000166a
lea r8, [0x140047628]
mov rcx, r9
call fcn.1400466e0
mov r9, r8
add r9, r11
cmp rdx, r9
cmova r9, rdx
lea r8, [0x140047640]
mov rcx, r9
call fcn.1400466e0
lea rax, [0x140047658]
mov qword [rsp + 0x20], rax
mov r9, rdx
call fcn.140046b20
int3