Skip to content

ReHitman_VFTable Generator

Daniel Hunter edited this page Mar 19, 2020 · 1 revision

VFGEN

Source code of vftable generator:

#include <iostream>
#include <string>
#include <iomanip>

int main()
{
    static constexpr const auto Begin = 0x0076A174;
    static constexpr const auto End = 0x0076A348;

    for (int i = Begin, off = 0; i <= End; i+=4, off++)
    {
        std::cout << "virtual void Function_" << std::setw(4) << std::dec << std::setfill('0') << off << "(); //#" << std::setw(4) << off << " +" << std::hex << std::setw(4) << off*4 << " .rdata:" << std::setw(8) << i << '\n';
    }
    
    return 0;
}

Just replace Begin & End addresses to your own and the script will generate a list of functions.