diff --git a/src/widgets/Dashboard.cpp b/src/widgets/Dashboard.cpp
index ae5509a8..9bdf3a9e 100644
--- a/src/widgets/Dashboard.cpp
+++ b/src/widgets/Dashboard.cpp
@@ -74,11 +74,22 @@ void Dashboard::updateContents()
setBool(this->ui->strippedEdit, item2, "stripped");
setBool(this->ui->relocsEdit, item2, "relocs");
- // Add file hashes and libraries
+ // Add file hashes, analysis info and libraries
QJsonObject hashes = Core()->cmdj("itj").object();
setPlainText(ui->md5Edit, hashes["md5"].toString());
setPlainText(ui->sha1Edit, hashes["sha1"].toString());
+ QJsonObject analinfo = Core()->cmdj("aaij").object();
+ setPlainText(ui->functionsLineEdit, QString::number(analinfo["fcns"].toInt()));
+ setPlainText(ui->xRefsLineEdit, QString::number(analinfo["xrefs"].toInt()));
+ setPlainText(ui->callsLineEdit, QString::number(analinfo["calls"].toInt()));
+ setPlainText(ui->stringsLineEdit, QString::number(analinfo["strings"].toInt()));
+ setPlainText(ui->symbolsLineEdit, QString::number(analinfo["symbols"].toInt()));
+ setPlainText(ui->importsLineEdit, QString::number(analinfo["imports"].toInt()));
+ setPlainText(ui->coverageLineEdit, QString::number(analinfo["covrage"].toInt()) + " bytes");
+ setPlainText(ui->codeSizeLineEdit, QString::number(analinfo["codesz"].toInt()) + " bytes");
+ setPlainText(ui->percentageLineEdit, QString::number(analinfo["percent"].toInt()) + "%");
+
QStringList libs = Core()->cmdList("il");
if (!libs.isEmpty()) {
libs.removeFirst();
diff --git a/src/widgets/Dashboard.ui b/src/widgets/Dashboard.ui
index 3cb98598..38ddebb9 100644
--- a/src/widgets/Dashboard.ui
+++ b/src/widgets/Dashboard.ui
@@ -56,7 +56,7 @@
0
0
1055
- 982
+ 980
@@ -973,99 +973,334 @@
0
-
-
-
- QFormLayout::ExpandingFieldsGrow
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
- 3
-
-
-
-
+
+
-
+
+
+ QFormLayout::ExpandingFieldsGrow
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+ 3
+
+
-
+
+
+
+ 75
+ true
+
+
+
+ MD5:
+
+
+
+ -
+
+
+
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ SHA1:
+
+
+
+ -
+
+
+
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 75
+ true
+
+
+
+ Entropy:
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+
+
+ -
+
+ 17
75
true
- MD5:
+ Analysis info
- -
-
-
-
+
-
+
+
+ QFormLayout::ExpandingFieldsGrow
-
- false
+
+ 3
-
- true
-
-
-
- -
-
-
-
- 75
- true
-
-
-
- SHA1:
-
-
-
- -
-
-
-
-
-
- false
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 75
- true
-
-
-
- Entropy:
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
-
-
+
-
+
+
+
+ 75
+ true
+
+
+
+ Functions:
+
+
+
+ -
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ X-Refs:
+
+
+
+ -
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Calls:
+
+
+
+ -
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Strings:
+
+
+
+ -
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Symbols:
+
+
+
+ -
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Imports:
+
+
+
+ -
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Analysis coverage:
+
+
+
+ -
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Code size:
+
+
+
+ -
+
+
+ false
+
+
+ true
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Coverage percent:
+
+
+
+ -
+
+
+ false
+
+
+ true
+
+
+
+