BareBox: efﬁcient malware analysis on bare-metal