"""Emitter scan that handles BOTH `str rX,[sp]` and `stm sp,{rX,...}` opcode stores. The earlier version only matched `str [sp]` and therefore MISSED every stub that uses STM -- which is how several HDCP disp_* stubs write frame[0]. Any previous "no module emits X" conclusion produced by the old scanner is unsound. """ import struct, os, sys from capstone import * md=Cs(CS_ARCH_ARM,CS_MODE_THUMB) MODS=(('sos','handover/elf/sos2.elf'),('sys_drv','handover/elf/sys_drv2.elf'), ('asd','handover/elf/asd2.elf'),('hdcp','handover/elf/hdcp2.elf'), ('dtm','handover/elf/dtm2.elf'),('ras','handover/elf/ras2.elf')) def load(p): raw=open(p,'rb').read(); ph=struct.unpack('