<section id="static_analysis">
    <!--<div class="section-title">
        <h3>Static Analysis</h3>
    </div>-->
    {% if analysis.static %}
        {% if analysis.static.pe_versioninfo %}
        <div>
            <h4>Version Infos</h4>
            <div id="pe_versioninfo">
                <table class="table table-striped table-bordered">
                    <colgroup>
                        <col width="150" />
                        <col width="*" />
                    </colgroup>
                    {% for info in analysis.static.pe_versioninfo %}
                    <tr>
                        <th>{{info.name}}</th>
                        <td><span class="mono">{{info.value}}</span></td>
                    </tr>
                    {% endfor %}
                </table>
            </div>
        </div>
        <hr />
        {% endif %}

        {% if analysis.static.pe_sections %}
        <div>
            <h4>Sections</h4>
            <div id="pe_sections">
                <table class="table table-striped table-bordered">
                    <tr>
                        <th>Name</th>
                        <th>Virtual Address</th>
                        <th>Virtual Size</th>
                        <th>Size of Raw Data</th>
                        <th>Entropy</th>
                    </tr>
                    {% for section in analysis.static.pe_sections %}
                    <tr>
                        <td>{{section.name}}</td>
                        <td>{{section.virtual_address}}</td>
                        <td>{{section.virtual_size}}</td>
                        <td>{{section.size_of_data}}</td>
                        <td>{{section.entropy}}</td>
                    </tr>
                    {% endfor %}
                </table>
            </div>
        </div>
        <hr />
        {% endif %}

        {% if analysis.static.pe_resources %}
        <div>
            <h4>Resources</h4>
            <div id="pe_resources">
                <table class="table table-striped table-bordered">
                    <tr>
                        <th>Name</th>
                        <th>Offset</th>
                        <th>Size</th>
                        <th>Language</th>
                        <th>Sub-language</th>
                        <th>File type</th>
                    </tr>
                    {% for section in analysis.static.pe_resources %}
                    <tr>
                        <td>{{section.name}}</td>
                        <td>{{section.offset}}</td>
                        <td>{{section.size}}</td>
                        <td>{{section.language}}</td>
                        <td>{{section.sublanguage}}</td>
                        <td>{{section.filetype}}</td>
                    </tr>
                    {% endfor %}
                </table>
            </div>
        </div>
        <hr />
        {% endif %}

        {% if analysis.static.pe_imports %}
        <div>
            <h4>Imports</h4>
            <div id="pe_imports">
                {% for library in analysis.static.pe_imports %}
                    <div class="well">
                        <div><strong>Library {{library.dll}}</strong>:</div>
                        {% for function in library.imports %}
                            <div>&bull; <span class="mono">{{function.address}} <a href="http://social.msdn.microsoft.com/Search/en-US/windows/desktop?query={{function.name}}">{{function.name}}</a></span></div>
                        {% endfor %}
                    </div>
                {% endfor %}
            </div>
        </div>
        <hr />
        {% endif %}

        {% if analysis.static.pe_exports %}
        <div>
            <h4>Exports</h4>
            <div id="pe_exports">
                <table class="table table-striped table-bordered">
                    <tr>
                        <th>Ordinal</th>
                        <th>Address</th>
                        <th>Name</th>
                    </tr>
                    {% for export in analysis.static.pe_exports %}
                    <tr>
                        <td>{{export.ordinal}}</td>
                        <td>{{export.address}}</td>
                        <td>{{export.name}}</td>
                    </tr>
                    {% endfor %}
                </table>
            </div>
        </div>
        {% endif %}
    {% else %}
        Nothing to display.
    {% endif %}
</section>
