Function at 0x1403cd5b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, qword [rcx + 0x18]
mov rax, r15
inc rax
je 0x1403cd729
mov rdi, rdx
mov r12, rcx
mov rsi, qword [rcx + 8]
lea r14, [rsi + 1]
mov rdx, r14
shr rdx, 3
mov rcx, r14
and rcx, 0xfffffffffffffff8
sub rcx, rdx
cmp rsi, 8
cmovb rcx, rsi
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x30], r12
jbe 0x1403cd62d
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x1403cd65b
xor eax, eax
cmp rcx, 4
setae al
lea r12, [rax*4 + 4]
jmp 0x1403cd6b5
mov rbx, qword [r12]
mov rcx, r14
shr rcx, 4
xor eax, eax
test r14b, 0xf
setne al
add rax, rcx
je 0x1403cd9b1
cmp rax, 1
jne 0x1403cd943
xor edx, edx
jmp 0x1403cd997
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp rcx, rax
jae 0x1403cd729
shl rcx, 3
mov r12d, 1
cmp rcx, 0xe
jb 0x1403cd6b5
movabs rdx, 0x2492492492492493
mov rax, rcx
mul rdx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 2
dec rcx
bsr rcx, rcx
not ecx
mov r12, 0xffffffffffffffff
shr r12, cl
inc r12
mov ecx, 0x18
mov rax, r12
mul rcx
jo 0x1403cd729
mov r13, rax
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [r12 + 0x10]
mov rbx, r13
add rbx, rbp
jb 0x1403cd729
movabs rax, 0x7ffffffffffffff0
cmp rbx, rax
ja 0x1403cd729
test rbx, rbx
je 0x1403cd72b
movzx eax, byte [0x1404d41e8]
mov rcx, qword [0x1404d4148]
test rcx, rcx
jne 0x1403cd716
call qword [0x1403d75c0]
test rax, rax
je 0x1403cd729
mov rcx, rax
mov qword [0x1404d4148], rax
xor edx, edx
mov r8, rbx
call qword [0x1403d7588]
mov rbx, rax
test rax, rax
jne 0x1403cd730
ud2
mov ebx, 0x10
mov qword [rsp + 0x40], r14
lea r14, [r12 - 1]
mov rax, r12
shr rax, 3
mov rcx, r12
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r12, 9
cmovb rcx, r14
mov qword [rsp + 0x48], rcx
add rbx, r13
mov rcx, rbx
mov dl, 0xff
mov r8, rbp
call fcn.1403c4432
test r15, r15
je 0x1403cd8dd
mov rax, qword [rsp + 0x30]
mov r9, qword [rax]
movdqa xmm0, xmmword [r9]
mov rax, r15
pmovmskb r15d, xmm0
not r15d
mov rcx, qword [rdi]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x50], rcx
xor ebp, ebp
mov qword [rsp + 0x38], rax
mov rdi, rax
mov r12, r9
mov qword [rsp + 0x28], r9
jmp 0x1403cd813
lea ecx, [r15 - 1]
and ecx, r15d
dec rdi
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r14
mov byte [rbx + rdx], al
mov byte [r8 + rbx + 0x10], al
shl r13, 3
lea rax, [r13*2]
add rax, r13
mov r8, r9
sub r8, rax
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, rbx
sub rdx, rax
neg rax
movdqu xmm0, xmmword [r8 - 0x18]
movdqu xmmword [rbx + rax - 0x18], xmm0
mov rax, qword [r8 - 8]
mov qword [rdx - 8], rax
mov r15d, ecx
test rdi, rdi
je 0x1403cd8d1
test r15w, r15w
jne 0x1403cd840
nop dword [rax]
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb r15d, xmm0
add rbp, 0x10
cmp r15d, 0xffff
je 0x1403cd820
not r15d
tzcnt r13d, r15d
add r13, rbp
mov rax, r13
neg rax
lea rax, [rax + rax*2]
mov r8, qword [r9 + rax*8 - 0x18]
mov r9, qword [r9 + rax*8 - 0x10]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
call fcn.140108ad0
mov rcx, rax
and rcx, r14
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1403cd8a7
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r14
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1403cd890
mov r9, qword [rsp + 0x28]
tzcnt edx, edx
add rdx, rcx
and rdx, r14
cmp byte [rbx + rdx], 0
js 0x1403cd7b0
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1403cd7b0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
jmp 0x1403cd8e7
mov rax, qword [rsp + 0x30]
mov r9, qword [rax]
xor ecx, ecx
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov qword [rax], rbx
mov qword [rax + 8], r14
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
test rsi, rsi
je 0x1403ce073
mov ecx, 0x18
mov rax, qword [rsp + 0x40]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x1403ce073
sub r9, rax
mov rcx, qword [0x1404d4148]
xor edx, edx
mov r8, r9
call qword [0x1403d75f8]
jmp 0x1403ce073
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x1403d7e20]
nop dword [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8]
por xmm1, xmm0
movdqa xmmword [rbx + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x1403cd960
test al, 1
je 0x1403cd9b1
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x1403d7e20]
movdqa xmmword [rbx + rdx], xmm0
cmp r14, 0x10
jae 0x1403cd9d3
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call fcn.1403c4420
cmp rsi, 0xffffffffffffffff
jne 0x1403cd9dd
xor eax, eax
jmp 0x1403ce06b
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x48], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x38], rax
xor edi, edi
mov qword [rsp + 0x60], rbx
jmp 0x1403cda67
sub rax, r15
mov qword [r12 + 0x10], rax
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret