http://www.thehill.com/thehill/export/TheHill/News/Frontpage/071906/kerry.html
Kerry has $8.2 million in his John Kerry for President account and $5.4 million in his Kerry-Edwards 2004 Inc. General Election Legal and Accounting Compliance (GELAC) Fund. The sums were almost entirely raised after it became clear that Kerry would be the 2004 Democratic nominee against President Bush.
Note the use of the word "raise". After the nomination, Kerry was not able to raise money for himself, so this money is definitively from the primary season before the convention.
And a fairly extensive account of what he gave to the DNC before the election.
http://www.chinadaily.com.cn/english/doc/2004-11/19/content_393021.htm
They argued that he donated $40.5 million to Democratic causes in 2004, including $3 million each to the party's House and Senate campaign committees. More than $32 million went to the Democratic National Committee, including $9 million targeted to state parties.
DNC spokesman Jano Cabrera said that was the largest contribution the DNC has ever received, and the first from a presidential primary campaign.
"With this donation, the campaign more than fulfilled its commitment to our general election plan," he said.
Obviously, some questions on why he did not spend this money before or why he did not opt out of public financing are valid questions if they are posed in an honest way, but, once he had opted for public financing and he had accepted the nomination, this money was untouchable.