Function at 0x14005ad80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rbx, qword [rcx + 0x18]
mov rax, rbx
inc rax
je 0x14005b7b5
mov r15, rdx
mov r8, rcx
mov rsi, qword [rcx + 8]
lea r10, [rsi + 1]
mov rcx, r10
shr rcx, 3
mov r9, r10
and r9, 0xfffffffffffffff8
sub r9, rcx
cmp rsi, 8
cmovb r9, rsi
mov rcx, r9
shr rcx, 1
cmp rax, rcx
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x38], rbx
jbe 0x14005ae0a
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
mov qword [rsp + 0x28], r10
jae 0x14005ae3c
xor eax, eax
cmp r9, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x14005ae8c
mov qword [rsp + 0x60], r9
mov rdi, qword [r8]
mov rcx, r10
shr rcx, 4
xor eax, eax
test r10b, 0xf
setne al
add rax, rcx
je 0x14005b141
cmp rax, 1
jne 0x14005b0cd
xor edx, edx
jmp 0x14005b127
mov rax, r9
shr rax, 0x3d
jne 0x14005b7b5
shl r9, 3
mov r14d, 1
cmp r9, 0xe
jb 0x14005ae8c
movabs rcx, 0x2492492492492493
mov rax, r9
mul rcx
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 2
dec r9
bsr rcx, r9
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
inc r14
mov ecx, 0x88
mov rax, r14
mul rcx
jo 0x14005b7b5
mov r12, rax
add r12, 0xf
and r12, 0xfffffffffffffff0
lea r13, [r14 + 0x10]
mov rbp, r12
add rbp, r13
jb 0x14005b7b5
movabs rax, 0x7ffffffffffffff1
cmp rbp, rax
jae 0x14005b7b5
test rbp, rbp
je 0x14005af15
movzx eax, byte [0x140085280]
mov rcx, qword [0x1400851f8]
test rcx, rcx
jne 0x14005aef8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14005af0b
mov rcx, rax
mov qword [0x1400851f8], rax
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14005af1a
mov rcx, rbp
call fcn.14001fd10
ud2
mov edi, 0x10
lea rbp, [r14 - 1]
mov rax, r14
shr rax, 3
mov rbx, r14
and rbx, 0xfffffffffffffff8
sub rbx, rax
cmp r14, 9
cmovb rbx, rbp
add rdi, r12
mov rcx, rdi
mov dl, 0xff
mov r8, r13
call sub.VCRUNTIME140.dll_memset
sub rbx, qword [rsp + 0x38]
mov rcx, rbx
cmp rsi, 0xffffffffffffffff
je 0x14005b07e
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x20]
mov rbx, qword [rax]
lea r13, [rbx - 0x88]
mov r12, qword [r15]
mov r15, qword [r15 + 8]
xor r14d, r14d
jmp 0x14005afd3
shr rax, 0x39
lea rcx, [r8 - 0x10]
and rcx, rbp
mov byte [rdi + r8], al
mov byte [rcx + rdi + 0x10], al
mov rax, r14
not rax
mov rcx, rax
shl rcx, 7
lea rdx, [rcx + rax*8]
add rdx, rbx
not r8
mov rax, r8
shl rax, 7
lea rcx, [rax + r8*8]
add rcx, rdi
mov r8d, 0x88
call sub.VCRUNTIME140.dll_memcpy
lea rax, [r14 + 1]
cmp r14, rsi
mov r14, rax
je 0x14005b05f
cmp byte [rbx + r14], 0
js 0x14005afc3
mov rax, r14
neg rax
lea rcx, [r14*8]
shl rax, 7
sub rax, rcx
mov r8, qword [r13 + rax]
mov r9, qword [r13 + rax + 0x10]
mov rcx, r12
mov rdx, r15
call fcn.140051370
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14005b037
mov r8d, 0x10
nop dword [rax]
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14005b020
tzcnt r8d, edx
add r8, rcx
and r8, rbp
cmp byte [rdi + r8], 0
js 0x14005af80
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt r8d, ecx
jmp 0x14005af80
mov rax, qword [rsp + 0x20]
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
test rsi, rsi
jne 0x14005b091
jmp 0x14005b797
mov rax, qword [rsp + 0x20]
mov rbx, qword [rax]
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rcx
mov ecx, 0x88
mov rax, qword [rsp + 0x28]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x14005b797
sub rbx, rax
mov rcx, qword [0x1400851f8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14005b797
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x14005f790]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r8]
por xmm1, xmm0
movdqa xmmword [rdi + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rdi + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x14005b0f0
test al, 1
je 0x14005b141
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi + rdx]
por xmm0, xmmword [0x14005f790]
movdqa xmmword [rdi + rdx], xmm0
cmp r10, 0x10
jae 0x14005b163
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, r10
call sub.VCRUNTIME140.dll_memmove
invalid
dec dword [rax - 0x7d]
invalid
push qword [rbp + 0x11]
xor ecx, ecx
jmp 0x14005b78b
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + r10], xmm0
invalid
lea rax, [rdi - 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x58], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x50], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x48], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x40], rax
mov rbx, rdi
xor r14d, r14d
mov qword [rsp + 0x28], rsi
jmp 0x14005b20a
call fcn.14001fcd0
ud2