{
  "ml": {
    "l": -1,
    "v": "6",
    "fs": [
      {
        "l": -1,
        "id": 0,
        "prob": 0.218812957406044
      }
    ],
    "prob": 0.21881296,
    "models": [
      {
        "m": "az",
        "raw": 0.21881296,
        "prob": 0.21881296,
        "class": 0
      },
      {
        "m": "az/scripts",
        "raw": 0.6880057,
        "prob": 0.6880057,
        "class": 0
      },
      {
        "m": "az/python",
        "raw": 0.13118228,
        "prob": 0.13118228,
        "class": 0
      }
    ],
    "version": "v17.17",
    "analyzed_at": "2026-06-08T04:58:17Z"
  },
  "path": "rc4.py",
  "raw": {
    "v": "6",
    "fs": [
      {
        "f": "O(As)H(Db)",
        "x": 4,
        "ff": {
          "i": [
            [
              "",
              "len"
            ],
            [
              "",
              "range"
            ],
            [
              "",
              "range"
            ],
            [
              "",
              "tuple"
            ],
            [
              "",
              "ord"
            ],
            [
              "",
              "PRGA"
            ],
            [
              "",
              "KSA"
            ],
            [
              "",
              "b''.join"
            ],
            [
              "",
              "chr"
            ],
            [
              "",
              "ord"
            ],
            [
              "",
              "next"
            ],
            [
              "",
              "b''.join"
            ],
            [
              "",
              "chr"
            ],
            [
              "",
              "ord"
            ],
            [
              "",
              "next"
            ],
            [
              "",
              "ord"
            ],
            [
              "",
              "convert_key"
            ],
            [
              "",
              "RC4"
            ],
            [
              "",
              "sys.stdout.write"
            ],
            [
              "",
              "ord"
            ],
            [
              "",
              "next"
            ],
            [
              "",
              "print"
            ],
            [
              "",
              "sys"
            ]
          ],
          "m": {
            "ast": {
              "op.add": 5.0,
              "op.mod": 6.0,
              "op.xor": 3.0,
              "max_depth": 14.0,
              "bind_count": 16.0,
              "call_count": 22.0,
              "node_count": 552.0,
              "member_count": 3.0,
              "op_density.add": 0.01,
              "op_density.mod": 0.01,
              "op_density.xor": 0.01,
              "identifier_count": 39.0,
              "member_depth_max": 3.0,
              "infinite_loop_count": 1.0,
              "string_literal_count": 8.0,
              "array_literal_max_length": 1.0,
              "string_concat_chain_max_length": 3.0
            },
            "file": {
              "size": 2663.0,
              "entropy": 5.16,
              "size_bytes": 2663.0
            },
            "text": {
              "digit_ratio": 0.04,
              "space_count": 584.0,
              "total_lines": 93.0,
              "char_entropy": 5.16,
              "unique_chars": 77.0,
              "string_density": 0.09,
              "avg_line_length": 27.63,
              "max_line_length": 78.0,
              "empty_line_ratio": 0.27,
              "last_line_length": 11.0,
              "whitespace_ratio": 0.25,
              "most_common_ratio": 0.05,
              "identifier_density": 1.31,
              "line_length_stddev": 25.89,
              "normalized_string_count": 0.83,
              "suspicious_string_ratio": 0.13,
              "most_common_char_is_null": 0.0,
              "suspicious_comment_ratio": 0.18,
              "max_inline_whitespace_run": 2.0,
              "most_common_char_codepoint": 101.0,
              "suspicious_identifier_ratio": 0.18,
              "normalized_unique_identifiers": 5.96
            },
            "binds": {
              "count": 16.0
            },
            "calls": {
              "count": 22.0
            },
            "binary": {
              "overall_entropy": 5.16
            },
            "source": {
              "class_count": 1.0,
              "function_count": 6.0
            },
            "imports": {
              "count": 1.0,
              "stdlib_count": 1.0,
              "stdlib_ratio": 1.0,
              "unique_modules": 1.0
            },
            "members": {
              "count": 3.0
            },
            "strings": {
              "total": 8.0,
              "avg_length": 146.13,
              "max_length": 1141.0,
              "avg_entropy": 2.59,
              "empty_count": 2.0,
              "sql_strings": 1.0,
              "total_bytes": 1169.0,
              "entropy_stddev": 1.15,
              "very_long_strings": 1.0
            },
            "comments": {
              "chars": 280.0,
              "lines": 11.0,
              "total": 11.0,
              "to_code_ratio": 0.13,
              "url_in_comments": 1.0,
              "base64_in_comments": 1.0,
              "high_entropy_comments": 1.0
            },
            "functions": {
              "count": 7.0,
              "avg_params": 1.5,
              "max_params": 2.0,
              "length_stddev": 3.92,
              "avg_name_length": 6.67,
              "avg_length_lines": 5.0,
              "max_length_lines": 11.0,
              "min_length_lines": 2.0,
              "single_char_params": 2.0,
              "avg_param_name_length": 3.11,
              "density_per_100_lines": 6.45,
              "code_in_functions_ratio": 0.32
            },
            "identifiers": {
              "count": 39.0,
              "total": 122.0,
              "avg_length": 5.49,
              "max_length": 16.0,
              "min_length": 1.0,
              "avg_entropy": 1.86,
              "reuse_ratio": 0.32,
              "unique_count": 39.0,
              "length_stddev": 3.84,
              "has_digit_ratio": 0.03,
              "sequential_names": 7.0,
              "single_char_count": 7.0,
              "single_char_ratio": 0.18,
              "high_entropy_count": 2.0,
              "high_entropy_ratio": 0.05,
              "all_lowercase_ratio": 0.87,
              "all_uppercase_ratio": 0.1,
              "numeric_suffix_count": 1.0,
              "double_underscore_count": 3.0,
              "underscore_prefix_count": 3.0
            }
          },
          "s": [
            [
              23,
              "u8",
              "\n    Copyright (C) 2012 Bo Zhu http://about.bozhu.me\n\n    Permission is hereby granted, free of charge, to any person obtaining "
            ],
            [
              26,
              "u8",
              "\n    Copyright (C) 2012 Bo Zhu http://about.bozhu.me\n\n    Permission is hereby granted, free of charge, to any person obtaining "
            ],
            [
              1372,
              "10",
              "256"
            ],
            [
              1386,
              "10",
              "0"
            ],
            [
              1407,
              "10",
              "256"
            ],
            [
              1459,
              "10",
              "256"
            ],
            [
              1540,
              "10",
              "0"
            ],
            [
              1550,
              "10",
              "0"
            ],
            [
              1585,
              "10",
              "1"
            ],
            [
              1590,
              "10",
              "256"
            ],
            [
              1619,
              "10",
              "256"
            ],
            [
              1694,
              "10",
              "256"
            ],
            [
              1753,
              "u8",
              "prga"
            ],
            [
              1754,
              "u8",
              "prga"
            ],
            [
              1913,
              "u8",
              "b"
            ],
            [
              1913,
              "u8",
              "b"
            ],
            [
              2010,
              "u8",
              "b"
            ],
            [
              2010,
              "u8",
              "b"
            ],
            [
              2079,
              "u8",
              "__main__"
            ],
            [
              2080,
              "u8",
              "__main__"
            ],
            [
              2209,
              "u8",
              "Key"
            ],
            [
              2210,
              "u8",
              "Key"
            ],
            [
              2231,
              "u8",
              "Plaintext"
            ],
            [
              2232,
              "u8",
              "Plaintext"
            ],
            [
              2614,
              "u8",
              "%02X"
            ],
            [
              2615,
              "u8",
              "%02X"
            ],
            [
              42,
              "xor",
              "(LYADCWA/O"
            ],
            [
              676,
              "xor",
              "KE-;1R6.+tja"
            ],
            [
              703,
              "xor",
              "I$*S=!GMMwtt"
            ],
            [
              727,
              "xor",
              "2E65T3+8Mktn"
            ],
            [
              753,
              "xor",
              "KEYS=?5-$ey"
            ],
            [
              791,
              "xor",
              "K16S : A:aor"
            ],
            [
              809,
              "xor",
              "K*?S977\"%ast"
            ],
            [
              827,
              "xor",
              "2IsSTRE'$tse"
            ],
            [
              864,
              "xor",
              "8 Y2:6E/\"ntn"
            ],
            [
              906,
              "xor",
              "KEYS : A,uih"
            ],
            [
              985,
              "xor",
              "KEYS8;$#$ltt"
            ],
            [
              999,
              "xor",
              "K216 : 3Mis"
            ],
            [
              1033,
              "xor",
              "K16! R*3Moih"
            ],
            [
              1062,
              "xor",
              "KEY5\u0026=(MMohtr"
            ],
            [
              1133,
              "xor",
              "KEYS07$-$nzsr\nz"
            ],
            [
              1670,
              "xor",
              "KE2SIR6:EsfI"
            ],
            [
              2150,
              "xor",
              "_osSTREBMCTP:\u0026F\\"
            ],
            [
              2241,
              "xor",
              "LosSTREBMCTP:\u0026F\\"
            ],
            [
              2323,
              "xor",
              "LosSTREBMCTP:\u0026F\\"
            ],
            [
              2615,
              "xor",
              "NUK+VR@AEOODz "
            ]
          ],
          "v": {
            "file.stem": "rc4",
            "file.basename": "rc4.py",
            "source.shebang": "/usr/bin/env python",
            "source.language": "python",
            "source.imports[0]": "KSA",
            "source.imports[1]": "PRGA",
            "source.imports[2]": "RC4",
            "source.imports[3]": "b''.join",
            "source.imports[4]": "chr",
            "source.imports[5]": "convert_key",
            "source.imports[6]": "len",
            "source.imports[7]": "next",
            "source.imports[8]": "ord",
            "source.imports[9]": "print",
            "source.strings[0]": "\n    Copyright (C) 2012 Bo Zhu http://about.bozhu.me\n\n    Permission is hereby granted, free of charge, to any person obtaining a\n    copy of this software and associated documentation files (the \"Software\"),\n    to deal in the Software without restriction, including without limitation\n    the rights to use, copy, modify, merge, publish, distribute, sublicense,\n    and/or sell copies of the Software, and to permit persons to whom the\n    Software is furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n    DEALINGS IN THE SOFTWARE.\n",
            "source.strings[1]": "(LYADCWA/O",
            "source.strings[2]": "2E65T3+8Mktn",
            "source.strings[3]": "2IsSTRE'$tse",
            "source.strings[4]": "8 Y2:6E/\"ntn",
            "source.strings[5]": "I$*S=!GMMwtt",
            "source.strings[6]": "K*?S977\"%ast",
            "source.strings[7]": "K16! R*3Moih",
            "source.strings[8]": "K16S : A:aor",
            "source.strings[9]": "K216 : 3Mis",
            "source.has_imports": true,
            "source.imports[10]": "range",
            "source.imports[11]": "sys",
            "source.imports[12]": "sys.stdout.write",
            "source.imports[13]": "tuple",
            "source.strings[10]": "KE-;1R6.+tja",
            "source.strings[11]": "KE2SIR6:EsfI",
            "source.strings[12]": "KEY5\u0026=(MMohtr",
            "source.strings[13]": "KEYS : A,uih",
            "source.strings[14]": "KEYS07$-$nzsr\nz",
            "source.strings[15]": "KEYS8;$#$ltt",
            "source.strings[16]": "KEYS=?5-$ey",
            "source.strings[17]": "LosSTREBMCTP:\u0026F\\",
            "source.strings[18]": "NUK+VR@AEOODz ",
            "source.strings[19]": "Plaintext",
            "source.strings[20]": "__main__",
            "source.strings[21]": "_osSTREBMCTP:\u0026F\\",
            "source.functions[0]": "KSA",
            "source.functions[1]": "PRGA",
            "source.functions[2]": "__init__",
            "source.functions[3]": "convert_key",
            "source.functions[4]": "decrypt",
            "source.functions[5]": "encrypt"
          },
          "ct": [
            "KSA",
            "PRGA",
            "RC4",
            "chr",
            "convert_key",
            "len",
            "next",
            "ord",
            "print",
            "range",
            "sys.stdout.write",
            "tuple"
          ],
          "id": "python",
          "mc": [
            "self.prga",
            "sys.stdout",
            "sys.stdout.write"
          ]
        },
        "id": 0,
        "sz": 2663,
        "ts": [
          {
            "c": 0.6000000238418579,
            "d": "Bitwise XOR operation",
            "e": [
              "ast.op.xor = 3.00"
            ],
            "i": "micro-behaviors/data/encode/xor::xor-bitwise-op",
            "l": 2
          },
          {
            "a": "T1027",
            "c": 0.8999999761581421,
            "d": "Regex component marker",
            "e": [
              "encrypt(self, data"
            ],
            "i": "objectives/impact/crypto-manipulation/txdata-hiding::encrypted-payload-bytes--rx-1",
            "l": 1,
            "m": "C0027"
          },
          {
            "c": 0.75,
            "d": "Python decrypt helper function",
            "e": [
              "def decrypt("
            ],
            "i": "objectives/anti-static/obfuscation/encoding/xor::python-decrypt-helper-name",
            "l": 1
          },
          {
            "c": 0.30000001192092896,
            "d": "while loop pattern",
            "e": [
              "    while True:"
            ],
            "i": "micro-behaviors/data/control-flow/analysis::while-loop",
            "l": 2
          },
          {
            "c": 0.6000000238418579,
            "d": "Copyright notice",
            "e": [
              "Copyright"
            ],
            "i": "metadata/package/license::copyright-word",
            "l": 2
          },
          {
            "c": 1.0,
            "d": "RC4 characteristics in Python",
            "e": [
              "for i in range(256):\n        j = (j + S[i] + key[i % keylength]) % 256\n        S[i], S[j] = S[j], S[i]  # swap\n\n    return S\n\n\nd"
            ],
            "i": "micro-behaviors/data/encode/rc4::python-rc4-loop",
            "l": 3,
            "m": "C0027"
          },
          {
            "c": 0.800000011920929,
            "d": "Python import-from statement",
            "e": [
              "from __future__ import print_function"
            ],
            "i": "micro-behaviors/data/text/source::python-import-from-statement",
            "l": 1
          },
          {
            "c": 0.4000000059604645,
            "d": ".write() call (standard output)",
            "e": [
              "out.write("
            ],
            "i": "micro-behaviors/fs/file/write/direct::dot-write-2",
            "l": 1
          },
          {
            "c": 0.8999999761581421,
            "d": "Generic env-based shebang line",
            "e": [
              "#!/usr/bin/env python"
            ],
            "i": "metadata/lang/shebang::env-interpreter",
            "l": 2
          },
          {
            "c": 0.7799999713897705,
            "d": "Python write() call",
            "e": [
              "sys.stdout.write"
            ],
            "i": "micro-behaviors/fs/file/write/direct::py-write-call",
            "l": 2,
            "el": [
              "a25"
            ]
          },
          {
            "c": 0.800000011920929,
            "d": "Sequential source identifier names",
            "e": [
              "identifiers.sequential_names = 7.00"
            ],
            "i": "metadata/file/text/profile::sequential-identifiers",
            "l": 2
          },
          {
            "c": 1.0,
            "d": "Python artifact file extension (py/pyi/pyc)",
            "e": [
              "rc4.py"
            ],
            "i": "metadata/file/extension::python-artifact-extension",
            "l": 1
          },
          {
            "c": 1.0,
            "d": "Python shebang line (unversioned)",
            "e": [
              "#!/usr/bin/env python\n"
            ],
            "i": "metadata/lang/shebang::python",
            "l": 2
          },
          {
            "c": 0.30000001192092896,
            "d": "for loop (content)",
            "e": [
              " for i in "
            ],
            "i": "micro-behaviors/data/control-flow/analysis::for-loop-content",
            "l": 2
          },
          {
            "c": 1.0,
            "d": "Python file extension",
            "e": [
              "rc4.py"
            ],
            "i": "metadata/file/extension::py",
            "l": 2
          },
          {
            "a": "T1027",
            "c": 0.8999999761581421,
            "d": "Encoded URL documentation context",
            "e": [
              "wikipedia.org/wiki/"
            ],
            "i": "micro-behaviors/communications/url/encoded::encoded-url-doc-context",
            "l": 1,
            "m": "B0032"
          },
          {
            "c": 0.8799999952316284,
            "d": "Source or test deletion target",
            "e": [
              "test"
            ],
            "i": "micro-behaviors/data/text/keywords/lexicon::target-source-test",
            "l": 1
          },
          {
            "c": 0.8999999761581421,
            "d": "File has 30 or more lines",
            "e": [
              "text.total_lines = 93.00"
            ],
            "i": "metadata/file/text/metrics::file-has-30-plus-lines",
            "l": 1
          },
          {
            "c": 0.30000001192092896,
            "d": "secret keyword",
            "e": [
              "secret"
            ],
            "i": "micro-behaviors/data/text/keywords/lexicon::secret",
            "l": 1
          },
          {
            "c": 1.0,
            "d": "Python source file extension (.py only)",
            "e": [
              "rc4.py"
            ],
            "i": "metadata/file/extension::python-source-extension",
            "l": 1
          },
          {
            "c": 0.6499999761581421,
            "d": "Python file under 120 lines",
            "e": [
              "text.total_lines = 93.00"
            ],
            "i": "metadata/file/text/metrics::python-under-120-lines",
            "l": 1
          },
          {
            "c": 0.8399999737739563,
            "d": "ANSI terminal erase operation",
            "e": [
              "[j"
            ],
            "i": "micro-behaviors/ui/terminal::ansi-erase-op",
            "l": 1
          },
          {
            "c": 1.0,
            "d": "Python infinite while True loop",
            "e": [
              "while True:"
            ],
            "i": "micro-behaviors/data/control-flow/loop::python-while-true",
            "l": 2
          },
          {
            "a": "T1027",
            "c": 0.800000011920929,
            "d": "String built via chr(ord()) arithmetic",
            "e": [
              ".join(chr(ord("
            ],
            "i": "objectives/anti-static/obfuscation/eval/scripting::python-chr-ord-shift",
            "l": 3,
            "m": "E1027"
          },
          {
            "c": 0.4000000059604645,
            "d": "encrypt keyword/reference",
            "e": [
              "encrypt"
            ],
            "i": "micro-behaviors/crypto/library/keyword::encrypt-keyword",
            "l": 3
          }
        ],
        "sha": "6193e5beed08cfdf50d35fc62ba64c992402b8ea6e2252f32a467c64f2054693",
        "path": "rc4.py",
        "type": "python"
      }
    ],
    "tv": "8e9ac"
  }
}