Hello how to change the real destination address with my own?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
The function is like this : int __cdecl _vsnprintf(char *Dest, size_t Count, const char *Format, va_list Args) { int v4; // edi@1 char *v6; // esi@1 char v7; // sf@2 FILE v8; // [sp+8h] [bp-20h]@1 v6 = Dest; v8._cnt = Count; v8._flag = 66; v8._base = Dest; v8._ptr = Dest; v4 = sub_10078E3D(&v8, Format, Args); if ( v6 ) { v7 = v8._cnt-- < 1; if ( v7 ) _flsbuf(0, &v8); else *v8._ptr = 0; } return v4; } I want to hook it like this i change the return address to mynes because i dont wanna change any bytes thnx for the helper