Partition functions in the canonical Ooguri-Strominger-Vafa ensemble for counting single centered dyonic black holes in N=4 toroidally compactified string theory typically exhibit divergences arising from the indefinite nature of the charge lattice. We convert these partition functions into indefinite theta functions à la Zwegers and obtain regulated partition functions to count the single centered attractor backgrounds.