Function at 0x140379920
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 [0x14058a7f8]
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 0x140379ba4
mov r13, r8
mov ecx, 0x6eb270cb
add ecx, dword [0x14058a7f4]
lea rdx, [fcn.140379920]
add edx, edx
add edx, 0x14e0
mov r8d, edx
not r8d
and r8d, edx
cmp r8d, ecx
jne 0x140379a30
mov ecx, dword [0x1405ac498]
mov edx, ecx
not edx
imul edx, ecx
test dl, 1
je 0x140379a3d
nop dword [rax]
mov ecx, dword [0x1405ac49c]
cmp ecx, 0x29
jge 0x140379a30
jmp 0x140379a1b
mov rdi, rax
shl rdi, 4
cmp rax, 0x100
jb 0x140379a88
movabs rcx, 0xe22a90c27cf4e623
add rcx, qword [0x14058a7f8]
cmp rax, rcx
jae 0x140379ba4
lea rcx, [rdi + 0x27]
mov edx, 0xe9086cc0
mov r8d, 0xabca60f2
call fcn.1400a8fb0
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140379aa7
test rax, rax
je 0x140379aa5
mov rcx, rdi
mov edx, 0xe9086cc0
mov r8d, 0xabca60f2
call fcn.1400a8fb0
mov rbx, rax
jmp 0x140379aa7
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 0x140379b68
mov eax, dword [0x1405ac498]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
jne 0x140379d2e
jmp 0x140379cf4
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.140446180
mov eax, dword [0x1405ac49c]
cmp eax, 0x57
jl 0x140379b78
cmp dword [0x14058a7f4], 0x914d8f35
jne 0x140379af0
mov rdx, qword [rsi]
mov r8, r12
sub r8, rdx
mov rcx, rbx
call fcn.140446180
mov eax, dword [0x1405ac498]
mov ecx, 0xd9559f67
sub ecx, eax
imul ecx, eax
test cl, 1
jne 0x140379af0
jmp 0x140379ba9
call fcn.1400867d0
mov r12, qword [rsi]
test r12, r12
mov r14, qword [rbp - 0x10]
je 0x140379c78
mov r15, qword [rsi + 0x10]
sub r15, r12
cmp r15, 0x1000
jb 0x140379c2a
mov rax, qword [r12 - 8]
sub r12, rax
add r12, 0xfffffffffffffff8
movabs rcx, 0xd22a90c27cf4e645
add rcx, qword [0x14058a7f8]
cmp r12, rcx
jae 0x140379c37
mov rcx, r15
xor rcx, 0x27
mov dl, 1
nop word cs:[rax + rax]
mov r8d, dword [0x1405ac498]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
jne 0x140379c19
test dl, dl
jne 0x140379c1f
test dl, dl
je 0x140379c00
jmp 0x140379c15
and r15d, 0x27
lea r15, [rcx + r15*2]
mov r12, rax
mov eax, dword [0x1405ac49c]
cmp eax, 0x46
jg 0x140379c60
jmp 0x140379c3c
call fcn.1403fe3cc
mov rcx, r12
mov rdx, r15
call fcn.1400a82c0
mov eax, dword [0x1405ac49c]
cmp eax, 0x43
jl 0x140379c78
nop word cs:[rax + rax]
mov rcx, r12
mov rdx, r15
call fcn.1400a82c0
mov eax, dword [0x1405ac49c]
cmp eax, 0x23
jge 0x140379c60
jmp 0x140379c3c
xor eax, eax
test al, al
jne 0x140379cc4
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 [0x1405ac498]
lea eax, [rcx - 1]
imul eax, ecx
mov ecx, dword [0x14058a7f4]
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 0x140379cdf
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 0x140379c7e
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.140446180
mov r8, qword [rsi + 8]
sub r8, r15
mov rcx, r12
mov rdx, r15
call fcn.140446180
mov eax, dword [0x1405ac49c]
cmp eax, 0x4f
jl 0x140379ba9
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.140446180
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 [0x14058a7f8]
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.140446180
test r13b, r13b
je 0x140379d50
jmp 0x140379cf4