feat(libafputils): reconstruct+verify wave 6 batch C 4

Four module-state cell leaves over owned globals, reconstructed and proven
T1-EQUAL against the shipping libafputils-win32.dll with injected-bug
non-vacuity and globals-first:
  0x9560 afpu_get_status_word (0x330b4)
  0x95c0 afpu_bump_change_counter (0x330a4)
  0x1234c afpu_set_current_context (0x25584)
  0x125d8 afpu_clear_current_context (0x25584)
libafputils-win32: 80/577 verified, 0 reimpl.
This commit is contained in:
ulw-execute committed 2026-11-29 10:40:23 -05:00
1 parent b7651ac1d9
commit dbec57f800
2 files changed
+32 -4

No files matched your search

@@ -84661,7 +84661,7 @@
"owning_module_guess": "unknown",
"rva": "0x00009560",
"signature": "undefined4 __stdcall FUN_10009560(void)",
"status": "orig"
"status": "verified"
},
{
"callees": [
@@ -84729,7 +84729,7 @@
"owning_module_guess": "unknown",
"rva": "0x000095c0",
"signature": "undefined __stdcall FUN_100095c0(void)",
"status": "orig"
"status": "verified"
},
{
"callees": [
@@ -88746,7 +88746,7 @@
"owning_module_guess": "unknown",
"rva": "0x0001234c",
"signature": "undefined __cdecl FUN_1001234c(undefined4 param_1)",
"status": "orig"
"status": "verified"
},
{
"callees": [
@@ -89158,7 +89158,7 @@
"owning_module_guess": "unknown",
"rva": "0x000125d8",
"signature": "undefined __stdcall FUN_100125d8(void)",
"status": "orig"
"status": "verified"
},
{
"callees": [],
+28
View File
@@ -0,0 +1,28 @@
#include "afputils.h"
namespace gk::afputils {
std::uint32_t g_afpu_change_counter = 0;
std::uint32_t g_afpu_status_word = 0;
std::uint32_t g_afpu_current_context = 0;
// rva=0x00009560 (orig FUN_10009560); read the module status word.
std::uint32_t GK_STDCALL afpu_get_status_word() {
return g_afpu_status_word;
}
// rva=0x000095c0 (orig FUN_100095c0); advance the change counter by one.
void GK_STDCALL afpu_bump_change_counter() {
g_afpu_change_counter = g_afpu_change_counter + 1;
}
// rva=0x0001234c (orig FUN_1001234c); set the current package context.
void GK_CDECL afpu_set_current_context(std::uint32_t value) {
g_afpu_current_context = value;
}
// rva=0x000125d8 (orig FUN_100125d8); clear the current package context.
void GK_STDCALL afpu_clear_current_context() {
g_afpu_current_context = 0;
}
}