Function at 0x14036f6b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov r15, rdx
mov rsi, rcx
mov rax, qword [rcx]
movabs rcx, 0x470e5874e5d08f02
xor rdx, rcx
and rcx, r15
lea rcx, [rdx + rcx*2]
sub rcx, rax
movabs r12, 0xb8f1a78b1a2f70fe
add r12, rcx
mov r9, qword [0x140587a18]
lea ecx, [r9 + 0x29]
sar r12, cl
mov rdx, qword [rsi + 0x10]
sub rdx, rax
sar rdx, cl
mov r14, qword [rsi + 8]
sub r14, rax
lea ecx, [r9 + 0x26]
mov r10, rdx
shr r10, cl
sar r14, 4
inc r14
movabs rax, 0x8d0165caffcf8ccd
xor rax, r9
movabs rcx, 0xd0165caffcf8ccd
and rcx, r9
lea rax, [rax + rcx*2]
sub rax, r10
movabs rcx, 0x55292af77d255957
add rcx, rax
add r10, rdx
cmp r10, r14
cmovbe r10, r14
cmp rdx, rcx
movabs rax, 0xfffffffffffffff
cmovbe rax, r10
mov rcx, rax
shr rcx, 0x3c
jne 0x14036f934
mov r13, r8
mov ecx, 0x6eb270cb
add ecx, dword [0x140587a14]
lea rdx, [fcn.14036f6b0]
add edx, edx
add edx, 0x14e0
mov r8d, edx
not r8d
and r8d, edx
cmp r8d, ecx
jne 0x14036f7c0
mov ecx, dword [0x1405a99d8]
mov edx, ecx
not edx
imul edx, ecx
test dl, 1
je 0x14036f7cd
nop dword [rax]
mov ecx, dword [0x1405a99dc]
cmp ecx, 0x29
jge 0x14036f7c0
jmp 0x14036f7ab
mov rdi, rax
shl rdi, 4
cmp rax, 0x100
jb 0x14036f818
movabs rcx, 0xe22a90c27cf4e623
add rcx, qword [0x140587a18]
cmp rax, rcx
jae 0x14036f934
lea rcx, [rdi + 0x27]
mov edx, 0xe9086cc0
mov r8d, 0xabca60f2
call fcn.1401081c0
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14036f837
test rax, rax
je 0x14036f835
mov rcx, rdi
mov edx, 0xe9086cc0
mov r8d, 0xabca60f2
call fcn.1401081c0
mov rbx, rax
jmp 0x14036f837
xor ebx, ebx
mov qword [rbp - 0x10], r14
shl r12, 4
lea rax, [rbx + r12]
mov qword [rbp - 8], rax
movups xmm0, xmmword [r13]
movups xmmword [rbx + r12], xmm0
mov r12, qword [rsi + 8]
cmp r12, r15
je 0x14036f8f8
mov eax, dword [0x1405a99d8]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
jne 0x14036fabe
jmp 0x14036fa84
mov rdx, qword [rsi]
mov rax, r12
mov ecx, edx
shl rax, cl
mov r9, rax
shl r9, cl
sub rax, r9
imul rax, r9
sub rax, r9
imul rax, r9
mov r8, rax
neg r8
mov ecx, eax
sub ecx, r9d
mov r9d, ecx
neg r9d
sub ecx, r8d
imul ecx, r9d
mov r9, rax
shl r9, cl
dec rax
mov rcx, r9
not rcx
mov r10, r8
and r10, rcx
and rcx, rax
and rax, r9
or r10, rax
xor r9, r8
or rcx, r9
not rcx
lea r8, [r10 + rcx*2]
neg r8
mov rcx, rbx
call fcn.140440940
mov eax, dword [0x1405a99dc]
cmp eax, 0x57
jl 0x14036f908
cmp dword [0x140587a14], 0x914d8f35
jne 0x14036f880
mov rdx, qword [rsi]
mov r8, r12
sub r8, rdx
mov rcx, rbx
call fcn.140440940
mov eax, dword [0x1405a99d8]
mov ecx, 0xd9559f67
sub ecx, eax
imul ecx, eax
test cl, 1
jne 0x14036f880
jmp 0x14036f939
call fcn.140089af0
mov r12, qword [rsi]
test r12, r12
mov r14, qword [rbp - 0x10]
je 0x14036fa08
mov r15, qword [rsi + 0x10]
sub r15, r12
cmp r15, 0x1000
jb 0x14036f9ba
mov rax, qword [r12 - 8]
sub r12, rax
add r12, 0xfffffffffffffff8
movabs rcx, 0xd22a90c27cf4e645
add rcx, qword [0x140587a18]
cmp r12, rcx
jae 0x14036f9c7
mov rcx, r15
xor rcx, 0x27
mov dl, 1
nop word cs:[rax + rax]
mov r8d, dword [0x1405a99d8]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
jne 0x14036f9a9
test dl, dl
jne 0x14036f9af
test dl, dl
je 0x14036f990
jmp 0x14036f9a5
and r15d, 0x27
lea r15, [rcx + r15*2]
mov r12, rax
mov eax, dword [0x1405a99dc]
cmp eax, 0x46
jg 0x14036f9f0
jmp 0x14036f9cc
call fcn.1403f89dc
mov rcx, r12
mov rdx, r15
call fcn.1400ad790
mov eax, dword [0x1405a99dc]
cmp eax, 0x43
jl 0x14036fa08
nop word cs:[rax + rax]
mov rcx, r12
mov rdx, r15
call fcn.1400ad790
mov eax, dword [0x1405a99dc]
cmp eax, 0x23
jge 0x14036f9f0
jmp 0x14036f9cc
xor eax, eax
test al, al
jne 0x14036fa54
mov qword [rsi], rbx
mov rax, r14
shl rax, 4
add rax, rbx
mov qword [rsi + 8], rax
lea rax, [rbx + rdi]
mov qword [rsi + 0x10], rax
mov ecx, dword [0x1405a99d8]
lea eax, [rcx - 1]
imul eax, ecx
mov ecx, dword [0x140587a14]
mov edx, ecx
xor edx, 0x114d8f32
and edx, ecx
xor ecx, 0x6eb270cd
lea ecx, [rcx + rdx*2]
xor edx, edx
div ecx
test edx, edx
je 0x14036fa6f
mov qword [rsi], rbx
mov rax, r14
shl rax, 4
add rax, rbx
mov qword [rsi + 8], rax
lea rax, [rbx + rdi]
mov qword [rsi + 0x10], rax
jmp 0x14036fa0e
mov rax, qword [rbp - 8]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp - 8]
lea r12, [rax + 0x10]
mov rdx, qword [rsi]
mov r8, r15
sub r8, rdx
mov rcx, rbx
call fcn.140440940
mov r8, qword [rsi + 8]
sub r8, r15
mov rcx, r12
mov rdx, r15
call fcn.140440940
mov eax, dword [0x1405a99dc]
cmp eax, 0x4f
jl 0x14036f939
mov rax, qword [rbp - 8]
lea r12, [rax + 0x10]
movabs r14, 0xd22a90c27cf4e625
mov r13b, 1
nop word cs:[rax + rax]
mov rdx, qword [rsi]
mov r8, r15
sub r8, rdx
mov rcx, rbx
call fcn.140440940
mov rax, qword [rsi + 8]
mov rcx, rax
sub rcx, r15
imul rcx, r15
sub rax, rcx
imul rax, rcx
mov rdx, rax
neg rdx
xor rcx, rdx
mov r8, rcx
not r8
and r8, rdx
lea rcx, [rcx + r8*2]
mov r8, rax
sub r8, rcx
mov rcx, r8
neg rcx
shl rax, cl
add rax, r8
imul rax, rcx
add r8, rax
imul r8, rcx
mov rdx, qword [0x140587a18]
sub rax, rdx
mov rcx, r14
sub rcx, rax
imul rcx, r8
sub r8, rax
add r8, r14
shl r8, cl
mov rax, r8
sub rax, rcx
add r8, rdx
add r8, rax
add r8, r14
mov rcx, r12
mov rdx, r15
call fcn.140440940
test r13b, r13b
je 0x14036fae0
jmp 0x14036fa84