-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
105 lines (95 loc) · 2.52 KB
/
index.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html>
<head>
<title>disassemblr.js</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.23/themes/base/jquery-ui.css">
<style>
body {
margin: 0;
padding: 0;
}
#sidePane {
float: left;
width: 200px;
}
#contentPane {
float: right;
width: -webkit-calc(100% - 200px);
width: calc(100% - 200px);
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="js/vendor/icanhaz.js"></script>
<script src="js/disassembler/disassemblr.js"></script>
<script src="js/script.js"></script>
</head>
<body>
<input type="file" id="disassembleFile"><a href="AsmTest.exe">Demo File</a><br>
<div id="sidePane">
Function names:
</div>
<div id="contentPane">
<ul>
<li><a href="#fileInfos">File Info</a></li>
<li><a href="#sectionTable">Section Table</a></li>
<li><a href="#assembly">Assembly</a></li>
</ul>
<div id="fileInfos">
<script id="fileInfoTemplate" type="text/html">
<h2>File-PE-Header</h2>
<dl>
<dt>Sections</dt>
<dd>{{FileHeader.sectionCount}}</dd>
<dt>Build-Date</dt>
<dd>{{FileHeader.creationDate}}</dd>
<dt>Symbols</dt>
<dd>{{FileHeader.symbolCount}}</dd>
<dt>Symbol-Offset</dt>
<dd>{{FileHeader.symbolOffset}}</dd>
<dt>Flags</dt>
<dd>{{FileHeader.flags}}</dd>
</dl>
<h2>Opt-PE-Header</h2>
<dl>
<dt>Image Type</dt>
<dd>{{OptHeader.imageType}}</dd>
<dt>Linker Version</dt>
<dd>{{OptHeader.linkerMajor}}.{{ OptHeader.linkerMinor}}</dd>
<dt>Entry Point</dt>
<dd>{{OptHeader.entryPoint}}</dd>
<dt>Min OS Version</dt>
<dd>{{OptHeader.osMajor}}.{{ OptHeader.osMinor}}</dd>
<dt>Subsystem</dt>
<dd>{{OptHeader.subsystem}}</dd>
<dt>RVAs</dt>
<dd>{{OptHeader.rvaCount}}</dd>
</dl>
</script>
</div>
<div id="sectionTable">
<script id="sectionTableTemplate" type="text/html">
<table width="100%">
<thead>
<tr>
<th>Name</th>
<th>Startaddress</th>
<th>Flags</th>
</tr>
</thead>
<tbody>
{{#entries}}
<tr>
<td>{{name}}</td>
<td>{{rawDataOffset}}</td>
<td>{{flags}}</td>
</tr>
{{/entries}}
</tbody>
</table>
</script>
</div>
<div id="assembly" style="white-space: pre"></div>
</div>
</body>
</html>