Malware Detection and Next-Action Prediction using Learning-Based Methods