import re
import sys
import zipfile

apk = sys.argv[1] if len(sys.argv) > 1 else r"C:\Users\Administrator\AppData\Local\Temp\tng_base.apk"
with zipfile.ZipFile(apk) as z:
    data = b"".join(z.read(n) for n in z.namelist() if n.endswith(".dex"))

for cls in ["xwwqazamx/bl", "xwwqazamx/W", "xwwqazamx/a", "JNICLibrary", "hzchengdun"]:
    pattern = cls.encode("utf-8") + rb"[^\x00]{0,120}"
    hits = sorted(set(
        m.group().decode("utf-8", "ignore") for m in re.finditer(pattern, data)
    ))
    print(f"\n=== {cls} ({len(hits)} strings) ===")
    for h in hits[:40]:
        print(h)
