Really? The malware went from your computer to someone else's and your defense is that it was not "distributed" but just magically moved from A to B?
If you argued that it was clearly labeled as malware for educational purposes, that seems fine. It was distributed, but then distribution is allowed. But this is very clearly not the case here.