resolve_method_rva
Resolve a method's fully qualified name to its RVA in GameAssembly.dll, handling both stripped and non-stripped binaries by returning the RVA or a IL2CPP mangled name for byte search.
Instructions
Resolve a method FQN to its GameAssembly.dll RVA.
Walks the global-metadata.dat typeDef/method tables to find the
method, then parses GameAssembly.dll to look for the
s_Il2CppCodeRegistrations global. If the binary is non-stripped
and contains the registration symbols, the pointer table's RVA is
reported. If the binary is stripped (the default for shipped Unity
games), the function returns rva_status="binary_stripped" plus
the IL2CPP mangled name to use with re-rizin.search_bytes.
Requires pip install lief (an optional dep — install via
pip install re-il2cpp[rva]).
Args:
metadata_path: path to global-metadata.dat
gameassembly_path: path to GameAssembly.dll
method_fqn: "Namespace.ClassName.MethodName"
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"metadata_path": "<metadata_path>",
"gameassembly_path": "<gameassembly_path>",
"method_fqn": "<method_fqn>"
},
"name": "resolve_method_rva"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata_path | Yes | ||
| gameassembly_path | Yes | ||
| method_fqn | Yes |