|
@echo off
rem 清理原有文件
del bootmgr_*
rem 开始工作
hacktool decomp -o 0x68a0 bootmgr bootmgr_.exe
hacktool subfile -s 0 -e 0x68a0 bootmgr bootmgr_.head
hacktool subfile -s 0x68b0 -e +0x2000 bootmgr bootmgr_t.bin
rem 允许任意文件以{ntldr}方式运行 ImgPcatIsLegacyLoaderImage
hacktool patch bootmgr_.exe -v 0x004366A1 c:33c040c3
rem 禁止完整性检查 BmFwVerifySelfIntegrity
hacktool patch bootmgr_.exe -v 0x00407AB8 c:33c0c3
rem 修改boot目录名,这里以改成blue为例
hacktool patch bootmgr_.exe -o 0x8ba64 su:\Blue
hacktool patch bootmgr_.exe -o 0x8bab4 su:\Blue\bcd
hacktool patch bootmgr_.exe -o 0x8f7c0 su:\Blue
hacktool patch bootmgr_.exe -o 0x90610 su:\Blue\Fonts
rem 修正checksum
hacktool fixchk bootmgr_.exe
rem 压缩
hacktool comp -f XH -h bootmgr_.exe bootmgr_c.dat
hacktool subfile -o 0x10 bootmgr_t.bin bootmgr_c.dat
rem 合并文件
copy /b bootmgr_.head + bootmgr_c.dat bootmgr.blue |
|