There is no set formula for creating a cult movie, but you can positively say the movie "Donnie Darko" fits the definition. Originally appearing at Sundance in 2001 it was released later that year and took in only half a million at the gate. However it found new life on DVD, grossing $10 million on disc as well as achieving that primary cult signifier by becoming ensconced in the midnight movie schedule in some of the bigger cities.
New Market Films is planning to bring "Darko" back to the bigger screens with a platformed rerelease. Starting next month at the Seattle Film Festival it will roll out from there. To get a feel for the movie (if not an idea) check out the film's immersive web site--only if you have the time and patience.