Combine the almonds, chocolate, cacao, and spices in a food processor. Pulse until the mixture resembles fine breadcrumbs. Add the dates and pulse for about 30 seconds, or until the mixture is slightly sticky but still somewhat crumbly. Add the pistachios and vanilla extract, then pulse again until the mixture holds together when pressed between your fingers.