diff --git a/include/comp/obf.hpp b/include/comp/obf.hpp new file mode 100644 index 0000000..e69de29 diff --git a/include/comp/transform/add_op.hpp b/include/comp/transform/add_op.hpp new file mode 100644 index 0000000..e69de29 diff --git a/include/comp/transform/and_op.hpp b/include/comp/transform/and_op.hpp new file mode 100644 index 0000000..e69de29 diff --git a/include/comp/transform/operation.hpp b/include/comp/transform/operation.hpp new file mode 100644 index 0000000..e69de29 diff --git a/include/comp/transform/or_op.hpp b/include/comp/transform/or_op.hpp new file mode 100644 index 0000000..e69de29 diff --git a/include/comp/transform/rol_op.hpp b/include/comp/transform/rol_op.hpp new file mode 100644 index 0000000..e69de29 diff --git a/include/comp/transform/ror_op.hpp b/include/comp/transform/ror_op.hpp new file mode 100644 index 0000000..e69de29 diff --git a/include/comp/transform/sub_op.hpp b/include/comp/transform/sub_op.hpp new file mode 100644 index 0000000..e69de29 diff --git a/include/comp/transform/xor_op.hpp b/include/comp/transform/xor_op.hpp new file mode 100644 index 0000000..e69de29 diff --git a/src/tests/demolib/main.cpp b/src/tests/demolib/main.cpp index 29f60f8..99698c2 100644 --- a/src/tests/demolib/main.cpp +++ b/src/tests/demolib/main.cpp @@ -3,7 +3,15 @@ extern "C" int MessageBoxA(void* hWnd, char* lpCaption, void* uType); +struct test_t { + char buff[0x2000]; +}; + +test_t t = {}; + extern "C" void EntryPoint() { + t.buff[0] = 1; + t.buff[1] = 2; MessageBoxA(nullptr, "Hello World", "Hello World", nullptr); MessageBoxA(nullptr, "Hello World 1", "Hello World 1", nullptr); } \ No newline at end of file diff --git a/src/theo/decomp/decomp.cpp b/src/theo/decomp/decomp.cpp index 28ec36f..ea5a060 100644 --- a/src/theo/decomp/decomp.cpp +++ b/src/theo/decomp/decomp.cpp @@ -92,9 +92,10 @@ std::optional decomp_t::decompose() { sym_type_t::section); spdlog::info( - "generating symbol for section: {} sym name: {} hash: {:X}", + "generating symbol for section: {} sym name: {} hash: {:X} " + "section size: {}", scn->name.to_string(img->get_strings()), new_scn_sym.name(), - new_scn_sym.hash()); + new_scn_sym.hash(), scn->size_raw_data); m_syms->add_symbol(new_scn_sym); }