Holding priority, cast Dualcaster Mage by paying its mana cost.
When Dualcaster Mage enters, it triggers, copying Undying Malice, with the copy targeting Dualcaster Mage.
Resolve the copy of Undying Malice.
Holding priority, activate Yahenni by sacrificing Dualcaster Mage.
When Dualcaster Mage dies, it triggers, returning it from your graveyard to the battlefield.
Repeat from step 3.
Resolve all Yahenni abilities from step 5.
This clever loop begins by casting Undying Malice to set up a recursive safety net, instantly interrupted by casting Dualcaster Mage to copy that very spell onto itself. Because Yahenni, Undying Partisan stands ready to sacrifice the Mage at a moment's notice, every single death triggers the return effect while simultaneously growing Yahenni with +1/+1 counters. The resulting engine endlessly recycles the Mage to repeat the copy process, generating an infinite storm of sacrifices and battlefield entries without ever running out of fuel.