We construct families of $CAT(0)$ groups containing finitely presented whose divergence functions are the form $r^\alpha$ for a dense set exponents $\alpha \in [2,\infty)$ and $r^q\log(r)$ integers $q \geq 2$. The same construction also yields examples contracting elements which not in certain subgroups.