Projects STRLCPY obfus.h Commits ced0c639
🤬
  • ■ ■ ■ ■ ■ ■
    include/obfus.h
    skipped 467 lines
    468 468   return getStdLibName_16();
    469 469  }
    470 470   
    471  -#define callfunc(name, ...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getStdLibName_Proxy()), name))(__VA_ARGS__);
    472  - 
    473 471  // printf
    474 472  void printf_custom(int junk, const char *format, ...) {
    475 473   BREAK_STACK;
    skipped 24 lines
    500 498   return "scanf";
    501 499   // return ({ char result[32]; sprintf(result, getCharMask(_5), _s, _c, _a, _n, _f); result; });
    502 500  }
    503  -#define scanf(...) callfunc(getScanfName_Proxy(), __VA_ARGS__)
     501 +#define scanf(...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getScanfName_Proxy()), name))(__VA_ARGS__)
    504 502   
    505 503  // sprintf
    506 504  char *getSprintfName_Proxy() {
    skipped 2 lines
    509 507   return "sprintf";
    510 508   // return ({ char result[32]; sprintf(result, getCharMask(_7), _s, _p, _r, _i, _n, _t, _f); result; });
    511 509  }
    512  -#define sprintf(...) callfunc(getSprintfName_Proxy(), __VA_ARGS__)
     510 +#define sprintf(...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getSprintfName_Proxy()), name))(__VA_ARGS__)
    513 511   
    514 512  // fclose
    515 513  char *getFcloseName_Proxy() {
    skipped 2 lines
    518 516   return "fclose";
    519 517   // return ({ char result[32]; sprintf(result, getCharMask(_6), _f, _c, _l, _o, _s, _e); result; });
    520 518  }
    521  -#define fclose(...) callfunc(getSprintfName_Proxy(), __VA_ARGS__)
     519 +#define fclose(...) ((void *(*)())GetProcAddress(LoadLibraryA_Proxy(getFcloseName_Proxy()), name))(__VA_ARGS__)
    522 520   
    523 521  // fopen
    524 522  char *getFopenName_Proxy() {
    skipped 353 lines
Please wait...
Page is in error, reload to recover