{{
from helpers import naturalsize
}}

[color1]General infos[/color1]
  Encrypted: {{if "EncryptionHeader" in analysis.struct:}} yes {{ :else: }} [dim]no[/dim] {{:end}}

[color1]Comments[/color1]
{{for s in analysis.struct:}}
{{if "HeadType" in s and s["HeadType"] == 3 and s["Name"] == "CMT": }}
Comment at offset #[fa]{{ "{:x}".format(s.DataArea.offset)}}[/fa]:
-------------------------------------------------[dim]
{{ write(s["DataArea"].decode("utf8"))}}[/dim]
-------------------------------------------------
{{ :end }} 
{{ :end }}

[color1]Files[/color1]
{{for s in analysis.struct:}}
{{if "HeadType" in s and s["HeadType"] == 2: }}
  [color3]{{ s["Name"] }}[/color3] ({{write(naturalsize(s["UnpackedSize"], binary=True))}}, {{ write(s["UnpackedSize"] * 100 // len(s))}}%)
{{ :end }}
{{ :end }}
