github akirahayabusa/ngb-pc-native-port-release v2.2.23
Ninja Gaiden Black Hurricane PC 2.2.23

latest releases: v2.3.1.1, v2.3.1, v2.3.0.2...
23 days ago

《忍者龙剑传 黑之章》(含飓风版中文汉化 vb-zh-x2.1)与《忍者龙剑传》(2004)的非官方 Windows 原生移植。2.2.23。

2.2.23:减少杀毒软件误报

有玩家反映 2.2.22 在 VirusTotal 上被报毒(issue #6)。核对结果:

  • 是误报。 VirusTotal 上的哈希与 2.2.22 发布包完全一致,文件没被换过。压缩包 3/68、游戏程序 5/71、启动器 2/62、blackrt.dll 0/70,报毒的都是机器学习或通用启发式规则(Elastic、Malwarebytes、VBA32 等),没有一家报出具体的病毒家族;Windows Defender、卡巴斯基、ESET、BitDefender 等都显示干净。
  • 为什么会被怀疑:游戏程序只是一个占住 Xbox 内存地址的小程序(代码只有几十字节,另有一大块空内存),运行时由 blackrt.dll 把原版游戏代码放进这段内存并打补丁;以前它还关着数据执行保护(DEP)、没有 manifest、也没有数字签名。这些合在一起,在机器学习模型看来很像加壳程序。

改动

  • 游戏程序开启数据执行保护(DEP):原版代码只在 blackrt.dll 自己标为可执行的内存里运行(XBE 映射区、连续内存、跳板页),其余内存不可执行。代码里逐处核对过:XBE 整段、后加载的代码段、模拟显存的连续内存都已明确标为可执行。
  • 游戏程序带一份 manifest,只声明"以普通权限运行"(链接器默认的内容),不改变程序的任何行为。
  • 固定加载地址和那块大内存是模拟 Xbox 内存必需的,不能改;数字签名还在了解途径。所以误报不保证完全消失,但程序看起来更像普通程序了。
  • README 新增"杀毒软件报毒"说明:为什么是误报、怎么用 SHA-256 核对、被拦截时怎么办。

测试

  • DEP 版逐一实跑:第 1 章跑图、标题待机演示、黑之章美版原版、2004 光盘版与更新版、附带的街机版 Tomoe / Trilogy,都跑到计时结束,没有崩溃。
  • 直接运行 SFC 程序 NinjaFCU.xbe 会崩,2.2.22 在同一地址同样会崩,是早已记录的已知问题(从主菜单进入不会走这条路),与本版无关。
  • 第 1 章跑分(集显 Iris Xe,旧版、新版各两轮):渲染线程每帧中位数 2.2.22 为 5.25 / 5.07 毫秒,2.2.23 为 5.16 / 4.95 毫秒,没有性能损失。
  • 发布包实跑黑之章与 2004 各 60 秒,正常。Windows Defender 扫描三个程序:无威胁。

发布包

  • ngb-hurricane-pc-2.2.23-win32.zip
  • 大小:3,057,602 字节
  • SHA-256:4ae062275756b214225beea010b953f12e9e24c666bb08ed4a203ca97a581a52
  • 符号包 ngb-hurricane-pc-2.2.23-win32-symbols.zip:23,565,287 字节
  • SHA-256:920b518293607e183d6b23cde6ddbebc0d47fae105d67fd660af14ae41a2e1d2

作者:b站 哈雅布撒(QQ:2682557218)


English

An unofficial native Windows port of Ninja Gaiden Black (including the Hurricane Chinese translation vb-zh-x2.1) and Ninja Gaiden (2004). 2.2.23.

2.2.23: fewer anti-virus false positives

A player reported that 2.2.22 is flagged on VirusTotal (issue #6). What was checked:

  • It is a false positive. The hash on VirusTotal is exactly that of the 2.2.22 release zip, so the file was not swapped. Zip 3/68, game program 5/71, launcher 2/62, blackrt.dll 0/70; all detections are machine-learning or generic heuristics (Elastic, Malwarebytes, VBA32 and so on), none naming a malware family. Windows Defender, Kaspersky, ESET, BitDefender and the rest report it clean.
  • Why it looks suspicious: the game program is only a small stub holding the Xbox's memory range (a few dozen bytes of code plus a large empty block); at run time blackrt.dll puts the original game code there and patches it. It also had Data Execution Prevention (DEP) off, no manifest and no code signature. Together that looks a lot like a packed program to machine-learning models.

Changes

  • The game program now runs with Data Execution Prevention (DEP) on: the original code only runs from memory blackrt.dll marks executable itself (the XBE range, contiguous memory, thunk pages); all other memory is not executable. Checked in the code place by place: the whole XBE, sections loaded later and the contiguous memory standing in for video memory are all explicitly executable.
  • The game program carries a manifest that only asks for normal rights (the linker's default content); it does not change anything the program does.
  • The fixed load address and the large memory block are needed to emulate the Xbox's memory and cannot change; code signing is still being looked into. So false positives are not guaranteed to disappear, but the program now looks more like an ordinary one.
  • The README has a new "Anti-virus warnings" section: why it is a false positive, how to check the SHA-256, what to do if it is blocked.

Tests

  • The DEP build was run in each of: chapter 1, the title's attract demo, the original US Ninja Gaiden Black, 2004 disc and update versions, and the bundled arcade Tomoe / Trilogy; all ran until the timer ended, no crash.
  • Running the SFC program NinjaFCU.xbe directly crashes, and 2.2.22 crashes at the same address: the known issue already listed (entering from the main menu never takes this path), unrelated to this version.
  • Chapter 1 benchmark (Iris Xe integrated graphics, two runs each): render thread median per frame 5.25 / 5.07 ms for 2.2.22, 5.16 / 4.95 ms for 2.2.23, no performance cost.
  • The release package ran Ninja Gaiden Black and 2004 for 60 seconds each, normal. Windows Defender scan of the three programs: no threats.

Package

  • ngb-hurricane-pc-2.2.23-win32.zip
  • Size: 3,057,602 bytes
  • SHA-256: 4ae062275756b214225beea010b953f12e9e24c666bb08ed4a203ca97a581a52
  • Symbols ngb-hurricane-pc-2.2.23-win32-symbols.zip: 23,565,287 bytes
  • SHA-256: 920b518293607e183d6b23cde6ddbebc0d47fae105d67fd660af14ae41a2e1d2

Author: 哈雅布撒 on Bilibili (QQ: 2682557218)

Don't miss a new ngb-pc-native-port-release release

NewReleases is sending notifications on new releases.