Foundations of Memory Forensics