find-CNetworkMessages_vtable-decompiles
Skill67 starsChanged 58 days agoMITView on GitHub
Find and identify CNetworkMessages_AllowAdditionalMessageRegistration and CNetworkMessages_IsAdditionalMessageRegistrationAllowed virtual functions in CS2 binary using IDA Pro MCP. Use this skill when reverse engineering CS2 networksystem.dll or libnetworksystem.so to locate both vfuncs by reusing the known CNetworkMessages_RegisterNetworkFieldChangeCallbackInternal slot and checking the two adjacent CNetworkMessages vtable entries. Trigger: CNetworkMessages_AllowAdditionalMessageRegistration, CNetworkMessages_IsAdditionalMessageRegistrationAllowed
In this repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- cleanup-workspaceSkill
- convert-finder-skill-to-preprocessor-scriptsSkill
- create-agent-skill-fallbackSkill
- create-cpp-testsSkill
- create-preprocessor-scriptsSkill
- create-prSkill
- dump-vtablesSkill
- find-CBaseEntity_GetChangeAccessorPathInfo_1Skill
- find-CCSBotManager_AddBot_BotNavIgnoreSkill
- find-CCSGameRules__sm_mapGcBanInformationSkill
- find-CCSPlayer_MovementServices_CheckJumpButton_WaterPatchSkill
- find-CCSPlayer_MovementServices_FullWalkMove_SpeedClampSkill
- find-CEntitySystem_Init-decompilesSkill
- find-CEntitySystem_m_entityNamesSkill
- find-CNetworkGameServerBase_CheckTimeouts-decompilesSkill
- find-CNetworkGameServerBase_CreateFakeClientSkill
- find-CNetworkGameServerBase_GetChallengeTypeSkill
- find-CNetworkGameServer_GetFreeClientSkill
- find-CNetworkMessages_dtorSkill
- find-CNetworkMessages_GetIsForServerSkill
- find-CNetworkMessages_GetNetworkSerializationContextDataSkill
- find-CServerSideClientBase_GetUserIDStringSkill
- find-CSource2Server_Shutdown-decompilesSkill
- find-CSteam3ServerS1_InitGameServer-decompilesSkill
- find-INetworkServerService_GetServerSerializersCRCSkill
- find-INetworkServerService_IsActiveInGameSkill
- find-INetworkServerService_IsServerRunningSkill
- find-IVEngineServer2_GetClientSteamIDSkill
- find-OnServerVoiceData_IsPlayingDemo_CalleeSkill
- fix-cppheadersSkill
- generate-reference-yamlSkill
- generate-signature-for-functionSkill
- generate-signature-for-globalvarSkill
- generate-signature-for-patchSkill
- generate-signature-for-structoffsetSkill
- generate-signature-for-vfuncoffsetSkill
- get-func-from-yamlSkill
- get-vtable-addressSkill
- get-vtable-from-yamlSkill
- get-vtable-indexSkill
- init-gamebinSkill
- rename-preprocessor-scriptsSkill
- resolve-pr-conflictSkill
- run-validation-until-no-failureSkill
- run-vcall-finderSkill
- trigger-release-buildSkill
- write-func-as-yamlSkill
- write-globalvar-as-yamlSkill
- write-patch-as-yamlSkill
- write-structoffset-as-yamlSkill
- write-vfunc-as-yamlSkill
- write-vtable-as-yamlSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
ALWAYS: Use SKILL /get-func-from-yaml with func_name=CNetworkMessages_RegisterNetworkFieldChangeCallbackInternal.
- Distinctive: line 22
If the skill returns an error, STOP and report to user.
- Very specific: line 101
If both conditions hold, the candidates are CNetworkMessages_AllowAdditionalMessageRegistration and …
- Very specific: line 105
ALWAYS: Use SKILL /generate-signature-for-function with addr=<allow_func_addr> to generate a robust and unique func_sig for …
- Very specific: line 109
Use the returned validated func_sig values in the next steps.
- Very specific: line 113
ALWAYS: Use SKILL /write-vfunc-as-yaml to write the analysis results.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Find CNetworkMessages_AllowAdditionalMessageRegistration and CNetworkMessages_IsAdditionalMessageRegistrationAllowed
Locate CNetworkMessages_AllowAdditionalMessageRegistration and CNetworkMessages_IsAdditionalMessageRegistrationAllowed vfuncs in CS2 networksystem.dll or libnetworksystem.so using IDA Pro MCP tools.
Method
1. Load CNetworkMessages_RegisterNetworkFieldChangeCallbackInternal from YAML
ALWAYS Use SKILL /get-func-from-yaml with func_name=CNetworkMessages_RegisterNetworkFieldChangeCallbackInternal.
If the skill returns an error, STOP and report to user.
Otherwise, extract:
vfunc_indexofCNetworkMessages_RegisterNetworkFieldChangeCallbackInternalvfunc_offsetofCNetworkMessages_RegisterNetworkFieldChangeCallbackInternal
2. Load CNetworkMessages VTable from YAML
ALWAYS Use SKILL /get-vtable-from-yaml with class_name=CNetworkMessages.
If the skill returns an error, STOP and report to user.
Otherwise, extract:
vtable_numvfuncvtable_entries
3. Resolve the Two Adjacent Slots
Compute the candidate slots:
allow_vfunc_index = CNetworkMessages_RegisterNetworkFieldChangeCallbackInternal.vfunc_index + 1allow_vfunc_offset = CNetworkMessages_RegisterNetworkFieldChangeCallbackInternal.vfunc_offset + 8isallowed_vfunc_index = CNetworkMessages_RegisterNetworkFieldChangeCallbackInternal.vfunc_index + 2isallowed_vfunc_offset = CNetworkMessages_RegisterNetworkFieldChangeCallbackInternal.vfunc_offset + 16
Validate that isallowed_vfunc_index < vtable_numvfunc, then read:
allow_func_addr = CNetworkMessages_vtable[allow_vfunc_index]isallowed_func_addr = CNetworkMessages_vtable[isallowed_vfunc_index]
This adjacent-slot rule is required because AllowAdditionalMessageRegistration and IsAdditionalMessageRegistrationAllowed immediately follow RegisterNetworkFieldChangeCallbackInternal in the CNetworkMessages vtable.
4. Decompile Both Candidate Functions
Decompile both candidates:
mcp__ida-pro-mcp__decompile addr="<allow_func_addr>"
mcp__ida-pro-mcp__decompile addr="<isallowed_func_addr>"Confirm allow_func_addr is the simple byte setter pattern:
void __fastcall sub_18009B330(__int64 a1, char a2)
{
*(_BYTE *)(a1 + 1372) = a2;
}Windows assembly example:
mov [rcx+55Ch], dl
retnThen confirm isallowed_func_addr is the matching byte getter using the same member offset:
__int64 __fastcall sub_18009B340(__int64 a1)
{
return *(unsigned __int8 *)(a1 + 1372);
}Windows assembly example:
movzx eax, byte ptr [rcx+55Ch]
retnThe exact member offset may change across game updates. The identification rule is:
allow_func_addrwrites one byte tothis + <member_offset>(setter pattern)isallowed_func_addris the next vtable entry (allow_vfunc_index + 1)- The candidate reads and returns one unsigned byte from the same
this + <member_offset>
If both conditions hold, the candidates are CNetworkMessages_AllowAdditionalMessageRegistration and CNetworkMessages_IsAdditionalMessageRegistrationAllowed.
5. Generate Function Signatures
ALWAYS Use SKILL /generate-signature-for-function with addr=<allow_func_addr> to generate a robust and unique func_sig for CNetworkMessages_AllowAdditionalMessageRegistration.
ALWAYS Use SKILL /generate-signature-for-function with addr=<isallowed_func_addr> to generate a robust and unique func_sig for CNetworkMessages_IsAdditionalMessageRegistrationAllowed.
Use the returned validated func_sig values in the next steps.
6. Write IDA Analysis Output as YAML for AllowAdditionalMessageRegistration
ALWAYS Use SKILL /write-vfunc-as-yaml to write the analysis results.
Required parameters:
func_name:CNetworkMessages_AllowAdditionalMessageRegistrationfunc_addr:<allow_func_addr>func_sig: The validated signature from step 5vfunc_sig:None
VTable parameters:
vtable_name:CNetworkMessagesvfunc_offset:<allow_vfunc_offset>in hexvfunc_index:<allow_vfunc_index>
7. Write IDA Analysis Output as YAML for IsAdditionalMessageRegistrationAllowed
ALWAYS Use SKILL /write-vfunc-as-yaml to write the analysis results.
Required parameters:
func_name:CNetworkMessages_IsAdditionalMessageRegistrationAllowedfunc_addr:<isallowed_func_addr>func_sig: The validated signature from step 5vfunc_sig:None
VTable parameters:
vtable_name:CNetworkMessagesvfunc_offset:<isallowed_vfunc_offset>in hexvfunc_index:<isallowed_vfunc_index>
Function Characteristics
CNetworkMessages_AllowAdditionalMessageRegistration
- Purpose: Sets whether additional network message registration is allowed on the
CNetworkMessagesinstance - Binary:
networksystem.dll/libnetworksystem.so - Parameters:
(this, bool bAllow) - Return value:
void
CNetworkMessages_IsAdditionalMessageRegistrationAllowed
- Purpose: Returns whether additional network message registration is currently allowed
- Binary:
networksystem.dll/libnetworksystem.so - Parameters:
(this)only - Return value: An unsigned byte / boolean flag loaded from the same member written by
CNetworkMessages_AllowAdditionalMessageRegistration
Discovery Strategy
- Reuse the existing
CNetworkMessages_RegisterNetworkFieldChangeCallbackInternalYAML to obtain the authoritative slot index - Reuse the existing
CNetworkMessages_vtableYAML to resolve the two adjacent vtable entries - Confirm the semantic pair:
- setter writes
this + <member_offset> - adjacent getter returns
this + <member_offset>
- setter writes
- Generate stable
func_sigvalues from the resolved function bodies
This is robust because:
- The vtable adjacency (
RegisterNetworkFieldChangeCallbackInternalfollowed byAllowAdditionalMessageRegistrationthenIsAdditionalMessageRegistrationAllowed) is stable and explicit - The setter/getter pair must touch the same byte member
- The final YAMLs store both the resolved function signatures and the precise vtable metadata
Output YAML Format
The output YAML filenames depend on the platform:
networksystem.dll->CNetworkMessages_AllowAdditionalMessageRegistration.windows.yaml,CNetworkMessages_IsAdditionalMessageRegistrationAllowed.windows.yamllibnetworksystem.so->CNetworkMessages_AllowAdditionalMessageRegistration.linux.yaml,CNetworkMessages_IsAdditionalMessageRegistrationAllowed.linux.yaml
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

