mirror of
https://github.com/mandiant/speakeasy.git
synced 2026-10-12 02:18:47 +00:00
wvsprintfA and wvsprintfW are WINAPI functions with three parameters, but the hook declared them as cdecl with variable arguments. On x86 the caller's 12 bytes of arguments stayed on the stack, so ESP was wrong after every call. The handler also wrote an ANSI string to the buffer of wvsprintfW. The signature database records no names for the first two parameters, so the overrides name them.