"Agents of S.H.I.E.L.D." carried a nearly $5,000 advantage over their "Agent Carter" competitors for much of the Dubsmah Wars for Charity. But in the closing hours of the lip sync battle, #TeamCarter took a commanding lead over #TeamSHIELD.

Hayley Atwell and James D'Arcy's team earned a total of $79,673 to benefit Stomp Out Bullying! while Chloe Bennet, Clark Gregg and their "S.H.I.E.L.D." co-stars raked in $75,182 for St. Jude Children's Research Hospital.

"The REAL winners tonight are @StJude and @STOMPOutBullyng it's been a bizarre and hilarious experience! Thank you for your amazing support x," Atwell tweeted.

The Dubsmash Wars began innocently at San Diego Comic Con in July. The Marvel TV casts exchanged videos lip-syncing songs like "It Takes Two," "B---h Better Have My Money" and "Love Shack."

#TeamCarter kicked off the three-round Dubsmash Wars for Charity on CrowdRise with Beyonce's "Single Ladies" featuring Miss Piggy. Bennet and Gregg recruited their co-stars Adrianne Palicki and Patton Oswald for their first round video of Miley Cyrus' "Wrecking Ball."

Atwell and D'Arcy made things personal in round two when they sang The Kinks' "Lola" sitting in Gregg's character Phil Coulson's most-prized possession - his red 1962 Corvette named Lola with Marvel Comics' head honcho Stan Lee.

#TeamSHIELD didn't take the bait, instead calling on superheroes not owned by Marvel Studios (i.e. Batman and Deadpool) to sing War's "Why Can't We Be Friends." They also invited "Supergirl" star Melissa Benoist for the video to bury the hatchet on the superhero rivalry.

In the final round, each team brought together the entire cast and crew for both their ABC shows to sing "Everything Is Awesome" (#TeamCarter) and "I've Got the Power (#TeamSHIELD).

Fans voted for their favorite team by donating $1 to the videos they liked most. Each $1 donation gave participants the chance to win a grand prize trip to Hollywood to meet Atwell, D'Arcy, Bennet and Gregg.