Analysis of a PlugX malware variant used for targeted attacks