- Set up base GUI project structure using wxWidgets. - Implement main window with custom styles and fixed dimensions. - Add input fields for EXE, PDB, and output paths. - Include obfuscation options with styled checkboxes. - Add procedure list with add/remove functionality. - Implement progress bar and "Run Obfuscator" button. - Bind events for file selection, procedure management, and obfuscation run.
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
#include <wx/wx.h>
|
|
#include <wx/filedlg.h>
|
|
#include <wx/gauge.h>
|
|
#include <wx/textdlg.h>
|
|
#include <wx/statline.h>
|
|
|
|
class RyujinApp : public wxApp {
|
|
|
|
private:
|
|
wxTextCtrl* m_input = nullptr;
|
|
wxTextCtrl* m_pdb = nullptr;
|
|
wxTextCtrl* m_output = nullptr;
|
|
wxCheckBox* m_virtualize = nullptr;
|
|
wxCheckBox* m_junk = nullptr;
|
|
wxCheckBox* m_encrypt = nullptr;
|
|
wxCheckBox* m_randomSection = nullptr;
|
|
wxCheckBox* m_obfuscateIat = nullptr;
|
|
wxCheckBox* m_ignoreOriginalCodeRemove = nullptr;
|
|
wxListBox* m_procList = nullptr;
|
|
wxGauge* m_progress = nullptr;
|
|
|
|
auto DrawnPathRow(wxWindow* parent, wxBoxSizer* sizer, const wxString& label, int buttonId) -> wxTextCtrl*;
|
|
auto DrawnStyledCheckbox(wxWindow* parent, const wxString& label) -> wxCheckBox*;
|
|
auto DrawnRyujinButton(wxWindow* parent, const wxString& label, int id) -> wxButton*;
|
|
auto BindFileDialogs(wxFrame* frame) -> void;
|
|
auto BindListEvents(wxFrame* frame) -> void;
|
|
auto BindRunEvent(wxFrame* frame) -> void;
|
|
|
|
public:
|
|
bool OnInit() override;
|
|
|
|
};
|
|
|
|
wxIMPLEMENT_APP(RyujinApp);
|