This paper presents a machine learning-based methodology for building symbolic finite state automata (SFA) models of infected systems to analyze interactions between malware and their environments. It discusses the challenges of modern malware, including its metamorphic and anti-emulation techniques, and proposes using abstract symbolic finite state automata to represent both the syntactic structure and semantics of malware behaviors. The authors outline several applications of this infection model for enhancing malware detection capabilities.