oddly, i had this in my inventory long after i finished that mission, even though i gave it to them with the malware on it. so i just hacked it now and got the money. But my question is since i allways do this what exactly is this "datamine copy malware" like what is the malware that i get a copy of?
Just had the exact same thing happen, fought the Royce boss so I know I handed it over to him. Quite a bit later in the game I checked my shards menu and saw that I had the Militech shard. Decrypted it and got the 10,000 dollars. Not exactly sure how or why this happened but it's interesting that it happened to both of us.
EDIT: Just found this video which seems to explain why we still have the shard. He says you pick it up off of Royce when you kill him although I watched some clips and it isn't in Royce's inventory. However, we now have three corroborating testimonies of peopole getting it back while doing the Royce bossfight path so either we picked it up somewhere or it gets automatically added to our inventory.
After doing a bit of digging I think I've solved how it all works, correct me if I got something wrong. So if you decode the chip before doing the Maelstrom mission you don't get the money, period. The (sort of dumb) reason is because the game wants to let you to use the money that's on the chip, now without a virus, to buy the robot from Royce, not to keep the money for yourself. Not sure if it's intended for you to be able to keep the money or not (by decoding it beforehand and not using it to pay Royce) but in the game's current state you can't. If you keep the chip, with the virus still on it, and never hand it over either by killing/incapacitating Royce or paying him out of your own pocket, and then decode it after the mission you should get the money (V will talk to Dex about keeping the money on the phone). If you give the chip to Royce with the virus still on it, he will insert it into the computer shutting down their systems then you will have to fight him as a boss fight. At some point while fighting your way out either you pick up the chip, or the game automatically adds it to your inventory. I think it's the second one because I have no evidence of the first. (I am not sure if you are even technically supposed to get the chip back if you hand it over to Royce virus and all, but in the games current state you do) Hopefully this helps everyone lol.