Program: 94062
Project: 94062
Buggy source:
static void initPremium(final XC_LoadPackage.LoadPackageParam lpparam){
  final ClassLoader cl=lpparam.classLoader;
  final boolean blockPresence=Preferences.getBool(Prefs.HIDE_TYPING_AND_PRESENCE) && Preferences.getLicence() >= 1;
  final boolean stealthViewing=Preferences.getBool(Prefs.STEALTH_VIEWING) && Preferences.getLicence() >= 2;
  final boolean stealthSaving=Preferences.getBool(Prefs.STEALTH_CHAT_SAVING) && Preferences.getLicence() >= 2;
  if (blockPresence || stealthViewing || stealthSaving) {
    findAndHookMethod("String_Node_Str",cl,"String_Node_Str",findClass("String_Node_Str",cl),findClass("String_Node_Str",cl),findClass("String_Node_Str",cl),new XC_MethodHook(){
      @Override protected void beforeHookedMethod(      MethodHookParam param) throws Throwable {
        super.beforeHookedMethod(param);
        Object packet=param.args[1];
        String type=(String)getObjectField(packet,"String_Node_Str");
switch (type) {
case "String_Node_Str":
          if (blockPresence) {
            Logger.log("String_Node_Str",LogType.PREMIUM);
            initPresenceBlocking(lpparam.classLoader,packet);
          }
        break;
case "String_Node_Str":
      boolean isReplayed=(boolean)getObjectField(packet,"String_Node_Str");
    if (stealthViewing && !isReplayed) {
      Logger.log("String_Node_Str",LogType.PREMIUM);
      setObjectField(packet,"String_Node_Str",false);
    }
  break;
case "String_Node_Str":
if (stealthViewing) {
  Logger.log("String_Node_Str",LogType.PREMIUM);
  param.setResult(null);
}
break;
case "String_Node_Str":
if (stealthSaving) {
Logger.log("String_Node_Str",LogType.PREMIUM);
setObjectField(packet,"String_Node_Str","String_Node_Str");
}
break;
}
}
}
);
}
}

Fixed version (ground truth):
static void initPremium(final XC_LoadPackage.LoadPackageParam lpparam){
  final ClassLoader cl=lpparam.classLoader;
  final boolean blockPresence=Preferences.getBool(Prefs.HIDE_TYPING_AND_PRESENCE) && Preferences.getLicence() >= 1;
  final boolean stealthViewing=Preferences.getBool(Prefs.STEALTH_VIEWING) && Preferences.getLicence() >= 2;
  final boolean stealthSaving=Preferences.getBool(Prefs.STEALTH_CHAT_SAVING) && Preferences.getLicence() >= 2;
  if (blockPresence || stealthViewing || stealthSaving) {
    findAndHookMethod("String_Node_Str",cl,"String_Node_Str",findClass("String_Node_Str",cl),findClass("String_Node_Str",cl),findClass("String_Node_Str",cl),new XC_MethodHook(){
      @Override protected void beforeHookedMethod(      MethodHookParam param) throws Throwable {
        super.beforeHookedMethod(param);
        Object packet=param.args[1];
        Logger.log("String_Node_Str" + packet.toString(),LogType.PREMIUM);
        performPacketBlocking(lpparam,param,packet,blockPresence,stealthViewing,stealthSaving);
      }
    }
);
    findAndHookMethod("String_Node_Str",cl,"String_Node_Str",findClass("String_Node_Str",cl),new XC_MethodHook(){
      @Override protected void beforeHookedMethod(      MethodHookParam param) throws Throwable {
        super.beforeHookedMethod(param);
        Object packet=param.args[0];
        Logger.log("String_Node_Str" + packet.toString(),LogType.PREMIUM);
        performPacketBlocking(lpparam,param,packet,blockPresence,stealthViewing,stealthSaving);
      }
    }
);
    String strNetworkManager="String_Node_Str";
    final Class snapUpdateClass=findClass("String_Node_Str",cl);
    final Class chatTypingClass=findClass("String_Node_Str",cl);
    findAndHookMethod(strNetworkManager,cl,"String_Node_Str",findClass("String_Node_Str",cl),findClass(strNetworkManager + "String_Node_Str",cl),Executor.class,new XC_MethodHook(){
      @Override protected void beforeHookedMethod(      MethodHookParam param) throws Throwable {
        super.beforeHookedMethod(param);
        Object packet=param.args[0];
        if ((snapUpdateClass.isInstance(packet) && stealthViewing) || (chatTypingClass.isInstance(packet) && blockPresence))         param.setResult(true);
      }
    }
);
  }
}