botch up

[botch up] {v. phr.} To ruin, spoil, or mess something up.

"I botched up my chemistry exam," Tim said, with a resigned sigh.