IDAPython script to generate a YARA script to match the current function. byte sigs for each basic block. relocs ok. https://gist.github.com/williballenthin/3abc9577bede0aeef25526b201732246

@williballenthin