bad_words = ['db    ? ;', 'db    0']

with open('Malware_example.txt') as oldfile, open('output.txt', 'w') as newfile:
    for line in oldfile:
        if not any(bad_word in line for bad_word in bad_words):
            newfile.write(line)
