@n00b: Nah don't bother with multiple pattern finders, use my code or take the ideas you like and discard it

I just did it for fun and benefit of the open source community. You might also wanna look into Yara, it basically does all your scanner does, but with a script language plus you can load those signature files in x64dbg. Worth checking out I'd say.