Fate / Stay Night加密插件

标签:吉里吉里

嗯,自己写的超简单的程序,自由软件,请随意更改。

使用方法翻翻帖子就知道了…

附源码如下:

xp3enc.cpp:
#include <windows.h>
int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
        return 1;
}
extern "C" void __stdcall XP3ArchiveAttractFilter_v2(
        unsigned __int32 hash,
        unsigned __int64 offset, void * buffer, long bufferlen)
{
        for (int index = 0; index < bufferlen; index++)
                {
                        if (index == 0x13)
                        {
                                ((unsigned char*)buffer)[index] ^= 1;
                        }
                        else if (index == 0x2ea29)
                        {
                                ((unsigned char*)buffer)[index] ^= 3;
                        }
                        ((unsigned char*)buffer)[index] ^= 0x36;
                }

}
xp3enc.def:
EXPORTS
        XP3ArchiveAttractFilter_v2
插件下载

0条评论 你不来一发么↓

    想说点什么呢?