- Introduced a new documentation file `crusader-exe-function-identification-map.md` detailing the inventory of functions in the Ghidra `CRUSADER.EXE` database, including unresolved naming candidates and processed functions. - Updated the `Crusader_Decomp.code-workspace` to reflect changes in project paths, swapping the locations of `GhidraMCP` and `crusader_map_viewer`. - Added a new binary file `db.74.gbf` to the user database.
16 KiB
CRUSADER.EXE Function Identification Map
Scope
This is an inventory of functions in the live Ghidra CRUSADER.EXE database whose names still match Ghidra's exact auto-name form FUN_<selector>_<offset>. The initial inventory was queried through the live Ghidra MCP session on 2026-10-09 and contained 1,047 functions across 107 code blocks. After the identification batches below, the remaining backlog contains 1,034 functions.
These are unresolved naming candidates, not a claim that every function has no existing behavioral evidence. Some may already have leads in subsystem notes or neighboring analysis; check those sources before redoing work or promoting a name. This list intentionally excludes nullfn_*, generic-but-authored names such as Process_..., and known no-op/thunk labels. Those can still merit review, but they are not exact Ghidra FUN_ auto-names.
How To Read The Map
Code N is the memory-block/NE-segment number shown by the current Ghidra database. The selector column is the segment portion of the live Ghidra segment:offset address. For example, Code30 / selector 10e8, offset 38bc is symbol FUN_10e8_38bc at 10e8:38bc. The offsets below are sorted and are the complete entry-point suffix list for each row.
Use the segment number to cross-reference crusader_segment_coverage_ledger.csv. Rows cover all 143 code blocks; - means there are no exact FUN_ matches in that block. The map has matches in 107 blocks. Data and external blocks are out of scope.
Identification Backlog
| Ghidra code block | Selector | Count | Entry offsets (FUN_<selector>_<offset>) |
|---|---|---|---|
| Code1 | 1000 |
137 | 0164, 018a, 01b3, 01f7, 0238, 0240, 2bf2, 3138, 3163, 3183, 31ed, 32d0, 32e3, 332f, 338b, 3395, 339a, 339d, 34a1, 34c2, 34d3, 3555, 359e, 35fb, 3654, 36c0, 3764, 3775, 3cbe, 4007, 4021, 4065, 457a, 45b9, 45c2, 4a55, 4a7a, 4af4, 4b28, 4b51, 4b66, 4b7f, 4b9d, 4ccf, 4cf0, 4d68, 4db1, 4e07, 4e5d, 4e6f, 4f0c, 4f33, 4f6b, 4f9f, 5069, 50a5, 50fa, 511c, 52e0, 5349, 5368, 541a, 5481, 5605, 578a, 58c8, 5d9f, 5f0a, 5f48, 5fc0, 5fd8, 60d2, 6160, 629a, 62b7, 63c0, 63e1, 63fc, 640e, 65e7, 6603, 6798, 67ac, 69af, 6a9d, 6bba, 6c13, 6c73, 6e93, 6ed3, 6ef5, 6f16, 6f3e, 6f6c, 6fcf, 6fff, 7088, 70ac, 70dd, 7121, 718f, 71b6, 71c1, 72a5, 72c9, 73f3, 75f7, 77e5, 78c4, 7a51, 7a8e, 7ac6, 7c04, 7c49, 7c80, 7ca6, 7d14, 7dcb, 7df0, 7e01, 7e30, 7e77, 7ef9, 7f34, 7f8d, 7fc7, 8023, 8091, 80d9, 8108, 81a5, 81c6, 8322, 8351, 8356, 83a0, 83ec |
| Code2 | 1008 |
5 | 0032, 0098, 0167, 01eb, 028c |
| Code3 | 1010 |
4 | 0032, 0061, 007d, 02de |
| Code4 | 1018 |
0 | - |
| Code5 | 1020 |
0 | - |
| Code6 | 1028 |
4 | 0216, 02dc, 040a, 072b |
| Code7 | 1030 |
2 | 02a5, 02b2 |
| Code8 | 1038 |
1 | 1131 |
| Code9 | 1040 |
3 | 0079, 00a6, 039e |
| Code10 | 1048 |
2 | 01dc, 025b |
| Code11 | 1050 |
0 | - |
| Code12 | 1058 |
0 | - |
| Code13 | 1060 |
13 | 02a1, 0474, 0705, 091a, 0943, 0ecf, 0fc0, 10ba, 1244, 12ea, 18d2, 1c70, 1f43 |
| Code14 | 1068 |
4 | 026a, 02e2, 0452, 04f1 |
| Code15 | 1070 |
13 | 0187, 046c, 0706, 0787, 0880, 0946, 0dad, 12d2, 14c0, 1ae4, 1bc9, 1bfe, 1c33 |
| Code16 | 1078 |
13 | 037e, 03a0, 03c2, 03e4, 0406, 0428, 04c3, 04e5, 0507, 0548, 0568, 0588, 0617 |
| Code17 | 1080 |
0 | - |
| Code18 | 1088 |
4 | 0094, 0315, 0486, 0784 |
| Code19 | 1090 |
1 | 0afe |
| Code20 | 1098 |
6 | 0151, 0325, 0339, 077d, 07db, 0845 |
| Code21 | 10a0 |
1 | 3042 |
| Code22 | 10a8 |
9 | 0386, 04c9, 0abf, 0b32, 13dd, 1612, 19a2, 27a6, 2969 |
| Code23 | 10b0 |
0 | - |
| Code24 | 10b8 |
2 | 00e8, 06a2 |
| Code25 | 10c0 |
10 | 0077, 06aa, 0a08, 0a46, 0cca, 0da7, 0def, 0e4c, 0eb3, 1338 |
| Code26 | 10c8 |
0 | - |
| Code27 | 10d0 |
0 | - |
| Code28 | 10d8 |
0 | - |
| Code29 | 10e0 |
0 | - |
| Code30 | 10e8 |
47 | 4141, 41e3, 4234, 4285, 42d6, 4327, 4378, 43c9, 441a, 446b, 44bc, 450d, 455e, 45af, 4600, 4651, 46a2, 46f3, 4744, 4795, 47e6, 4837, 4888, 48d9, 492a, 497b, 49cc, 4a1d, 4a6e, 4abf, 4b10, 4b61, 4bb2, 4c03, 4c54, 4ca5, 4cf6, 4d47, 4d98, 4de9, 4e3a, 4e8b, 4edc, 4f2d, 4f7e, 4fcf, 5020 |
| Code31 | 10f0 |
2 | 0000, 02a7 |
| Code32 | 10f8 |
0 | - |
| Code33 | 1100 |
0 | - |
| Code34 | 1108 |
0 | - |
| Code35 | 1110 |
0 | - |
| Code36 | 1118 |
1 | 0497 |
| Code37 | 1120 |
0 | - |
| Code38 | 1128 |
4 | 1090, 109a, 1b09, 22b4 |
| Code39 | 1130 |
4 | 01a5, 2d48, 2db6, 2fa6 |
| Code40 | 1138 |
3 | 0007, 066d, 1dc0 |
| Code41 | 1140 |
4 | 0000, 0031, 018e, 01c8 |
| Code42 | 1148 |
2 | 0000, 05e8 |
| Code43 | 1150 |
2 | 2f4b, 3321 |
| Code44 | 1158 |
1 | 0000 |
| Code45 | 1160 |
3 | 00aa, 00e2, 01d2 |
| Code46 | 1168 |
6 | 0091, 0103, 0348, 066a, 06bf, 0732 |
| Code47 | 1170 |
1 | 099a |
| Code48 | 1178 |
0 | - |
| Code49 | 1180 |
7 | 049e, 06dd, 0c29, 152b, 1cb1, 1ce5, 1df9 |
| Code50 | 1188 |
3 | 0414, 094a, 0968 |
| Code51 | 1190 |
27 | 01b4, 02a8, 03fa, 045a, 053d, 059f, 05ca, 069c, 08a0, 0936, 0bbe, 0de4, 0e2a, 0e48, 0e71, 0fe2, 1153, 1398, 1919, 19b4, 19ec, 1a25, 1a80, 1ab8, 1b5a, 1b7f, 1c14 |
| Code52 | 1198 |
10 | 0000, 0dcb, 0e4b, 0efc, 13d5, 1890, 192e, 19e5, 1a39, 1d28 |
| Code53 | 11a0 |
6 | 0d16, 0eef, 1009, 1047, 106c, 10a3 |
| Code54 | 11a8 |
0 | - |
| Code55 | 11b0 |
9 | 0000, 0006, 000c, 0192, 08aa, 091b, 0932, 098f, 09d9 |
| Code56 | 11b8 |
2 | 025c, 026d |
| Code57 | 11c0 |
6 | 0141, 05aa, 05c3, 05ea, 0643, 072d |
| Code58 | 11c8 |
1 | 03a5 |
| Code59 | 11d0 |
27 | 0255, 04cd, 1a0b, 2dbc, 2fe0, 3045, 307d, 30bb, 30e5, 31cf, 3232, 3248, 3264, 3325, 342c, 3447, 3a3c, 3d59, 3d6b, 3eb4, 3f22, 3f59, 3f95, 3fd4, 3fe8, 41e8, 4259 |
| Code60 | 11d8 |
0 | - |
| Code61 | 11e0 |
10 | 0379, 046b, 06e0, 0973, 0a43, 0b13, 0be3, 118e, 11b1, 18c7 |
| Code62 | 11e8 |
3 | 054f, 07b3, 081c |
| Code63 | 11f0 |
6 | 0205, 024e, 0283, 032f, 04ce, 0506 |
| Code64 | 11f8 |
0 | - |
| Code65 | 1200 |
10 | 0000, 0038, 007a, 00bd, 00e5, 013f, 017a, 019a, 02e4, 032b |
| Code66 | 1208 |
2 | 0000, 000b |
| Code67 | 1210 |
1 | 07d0 |
| Code68 | 1218 |
10 | 0000, 0021, 0530, 059b, 064a, 06fd, 07a6, 07af, 08ab, 0953 |
| Code69 | 1220 |
5 | 0000, 01bb, 01e2, 022f, 0263 |
| Code70 | 1228 |
0 | - |
| Code71 | 1230 |
10 | 00e6, 019a, 0240, 02a7, 0309, 0384, 044c, 048e, 04c8, 0509 |
| Code72 | 1238 |
11 | 056a, 05c2, 06eb, 0756, 07cd, 080d, 097a, 09f0, 0baa, 0c02, 0c68 |
| Code73 | 1240 |
11 | 0227, 044a, 049e, 0529, 0548, 0578, 05cb, 0691, 0756, 08df, 0952 |
| Code74 | 1248 |
3 | 00c2, 01e9, 0218 |
| Code75 | 1250 |
5 | 067b, 0ac9, 0b22, 0ce5, 0d45 |
| Code76 | 1258 |
4 | 00c7, 01eb, 02b9, 04c2 |
| Code77 | 1260 |
0 | - |
| Code78 | 1268 |
9 | 008a, 00c7, 01b9, 0262, 0446, 0476, 057c, 059b, 05ba |
| Code79 | 1270 |
6 | 002b, 00bc, 014d, 0171, 028e, 0357 |
| Code80 | 1278 |
9 | 017b, 020a, 0238, 02f6, 083a, 0aa4, 0b81, 0d71, 0f14 |
| Code81 | 1280 |
18 | 0000, 0061, 0065, 0069, 006d, 0071, 0075, 0079, 0080, 0084, 008b, 0092, 0099, 009d, 00a1, 00a5, 00a9, 0291 |
| Code82 | 1288 |
9 | 00b9, 00df, 00fd, 0136, 0761, 0d87, 0e37, 18e4, 1a70 |
| Code83 | 1290 |
13 | 0000, 0033, 005f, 007d, 0096, 00df, 0163, 019c, 01b7, 0211, 0228, 0242, 02ae |
| Code84 | 1298 |
17 | 0000, 008c, 00a6, 0207, 039f, 056f, 0676, 075d, 081c, 084b, 0a65, 0b2d, 0bf7, 0e40, 0eb1, 0f79, 11f3 |
| Code85 | 12a0 |
7 | 0000, 0114, 015f, 01f6, 026f, 02b4, 0361 |
| Code86 | 12a8 |
3 | 003c, 1596, 2eb3 |
| Code87 | 12b0 |
16 | 0000, 003d, 0066, 00c1, 011c, 01b8, 0254, 0286, 02b8, 02e8, 0318, 039d, 03d1, 0441, 048c, 04d7 |
| Code88 | 12b8 |
15 | 0000, 002a, 0071, 015c, 0183, 01f9, 027d, 02aa, 02d7, 0344, 03b4, 0406, 0492, 04ab, 04f0 |
| Code89 | 12c0 |
10 | 0000, 0029, 006e, 00c2, 00f2, 012d, 01bd, 0283, 02f3, 033e |
| Code90 | 12c8 |
0 | - |
| Code91 | 12d0 |
5 | 02eb, 0391, 0442, 06ca, 06e7 |
| Code92 | 12d8 |
8 | 00f5, 01cb, 024e, 02d3, 0346, 04d0, 050d, 0560 |
| Code93 | 12e0 |
0 | - |
| Code94 | 12e8 |
0 | - |
| Code95 | 12f0 |
8 | 0298, 0495, 0a3e, 0bc1, 0bd7, 0bee, 0c29, 0c64 |
| Code96 | 12f8 |
8 | 0000, 004b, 01a5, 036b, 038a, 044a, 0463, 055f |
| Code97 | 1300 |
16 | 0000, 0138, 0264, 02e8, 08ad, 0920, 0941, 0942, 0b5c, 0c55, 0c6c, 0c75, 0c7e, 0d04, 0d2d, 0d44 |
| Code98 | 1308 |
10 | 0000, 001d, 0151, 0254, 0371, 04cd, 04fd, 05a2, 05dc, 0650 |
| Code99 | 1310 |
6 | 0000, 002e, 02c2, 02fe, 0317, 0330 |
| Code100 | 1318 |
3 | 01f9, 025a, 063d |
| Code101 | 1320 |
20 | 0146, 0624, 0935, 09f7, 0cbd, 0dfc, 0e0e, 0ebc, 0f8b, 1018, 11bf, 12cc, 130f, 14bf, 1525, 16b6, 1705, 1734, 175d, 1782 |
| Code102 | 1328 |
5 | 006b, 00d7, 0267, 0652, 06ab |
| Code103 | 1330 |
14 | 0000, 00ea, 031d, 03bc, 0517, 065a, 0b8a, 12d7, 1363, 137c, 1502, 163c, 1659, 1693 |
| Code104 | 1338 |
5 | 0109, 01cf, 02c5, 02ed, 0342 |
| Code105 | 1340 |
14 | 010f, 011c, 0129, 02e3, 0420, 0540, 0668, 0685, 0706, 075f, 079c, 084d, 096a, 09bc |
| Code106 | 1348 |
29 | 019b, 02c6, 03da, 0823, 090b, 09bb, 0b0d, 0b39, 0bdc, 0c92, 0d07, 0d81, 0e2e, 0e7f, 0f0f, 0f70, 1025, 1212, 1288, 1377, 1561, 15d4, 164b, 1660, 169a, 16ad, 16e7, 1721, 175b |
| Code107 | 1350 |
4 | 02b1, 02c8, 02df, 03cd |
| Code108 | 1358 |
15 | 037f, 03a5, 0a46, 0a92, 0b92, 0cbd, 0ce9, 0d06, 0e1f, 0e93, 0f41, 0fc9, 0fd6, 1108, 1120 |
| Code109 | 1360 |
21 | 017a, 01c7, 0218, 0269, 05d4, 078d, 084d, 0c35, 0c6a, 0c7d, 0c90, 107b, 10d8, 118e, 1297, 12b2, 12cd, 135d, 1395, 13e6, 1412 |
| Code110 | 1368 |
4 | 0000, 0352, 039c, 048a |
| Code111 | 1370 |
14 | 0093, 00cd, 00e9, 0105, 023b, 0275, 02af, 0342, 037c, 0398, 03b4, 03ee, 0428, 044f |
| Code112 | 1378 |
26 | 0177, 02ee, 0465, 05dc, 06e1, 0790, 0a00, 0b04, 0bd3, 0d4c, 1309, 13da, 13fd, 141a, 143a, 1474, 1490, 14ac, 14e6, 1520, 155a, 1594, 15ce, 1608, 1618, 1644 |
| Code113 | 1380 |
9 | 00cc, 01e1, 01fd, 0219, 02e5, 03fa, 0416, 0432, 046c |
| Code114 | 1388 |
12 | 016e, 01c9, 0248, 0400, 048a, 051b, 0566, 0685, 078e, 07ab, 0c12, 0ca2 |
| Code115 | 1390 |
11 | 02c2, 05ce, 05e1, 0639, 064c, 07d3, 080a, 085e, 08c0, 0934, 0953 |
| Code116 | 1398 |
4 | 02d1, 0487, 0887, 0a2a |
| Code117 | 13a0 |
2 | 304b, 305c |
| Code118 | 13a8 |
9 | 0088, 0117, 01ee, 0361, 048a, 04b3, 0524, 0587, 0837 |
| Code119 | 13b0 |
0 | - |
| Code120 | 13b8 |
8 | 01ce, 04f7, 0580, 05e8, 06b4, 0758, 07c7, 0983 |
| Code121 | 13c0 |
3 | 006d, 00c4, 08f5 |
| Code122 | 13c8 |
9 | 28e1, 2c90, 2d19, 2e16, 2eca, 305c, 3096, 30d0, 310f |
| Code123 | 13d0 |
0 | - |
| Code124 | 13d8 |
5 | 008d, 01a0, 031a, 037d, 03b7 |
| Code125 | 13e0 |
0 | - |
| Code126 | 13e8 |
20 | 007d, 0af8, 0f56, 0f77, 1086, 10a5, 140c, 2b74, 2dad, 307f, 3253, 32f2, 334e, 338d, 3796, 37b4, 388f, 3ec3, 3f49, 3f83 |
| Code127 | 13f0 |
0 | - |
| Code128 | 13f8 |
2 | 055e, 0575 |
| Code129 | 1400 |
5 | 0123, 0149, 0a14, 0c7e, 0cd9 |
| Code130 | 1408 |
0 | - |
| Code131 | 1410 |
0 | - |
| Code132 | 1418 |
1 | 0172 |
| Code133 | 1420 |
8 | 011b, 0134, 0181, 05db, 0cb3, 1ffd, 2010, 209f |
| Code134 | 1428 |
16 | 00bf, 0251, 03a3, 041d, 043a, 05ac, 0651, 07f2, 0860, 087b, 0c31, 0cf6, 0d7a, 0dd8, 0e2f, 0e86 |
| Code135 | 1430 |
0 | - |
| Code136 | 1438 |
1 | 03fb |
| Code137 | 1440 |
2 | 07be, 0ea3 |
| Code138 | 1448 |
4 | 0000, 0031, 1ec9, 3221 |
| Code139 | 1450 |
2 | 00ec, 074b |
| Code140 | 1458 |
4 | 04b0, 09d4, 0b1c, 0bc1 |
| Code141 | 1460 |
1 | 0000 |
| Code142 | 1468 |
14 | 04f9, 0995, 0e51, 12fe, 1d4d, 1da1, 354a, 37c4, 3a3d, 3c23, 3d36, 3d7a, 4206, 4217 |
| Code143 | 1470 |
12 | 0000, 005e, 00cc, 00fb, 01c6, 01ef, 0239, 0398, 04a0, 04f8, 05cc, 0692 |
Processed Functions
Batch 1: Code30 (10e8)
10e8:3e68(FUN_10e8_3e68->Process_DestroyEmbeddedDispatchEntries): destroys theProcessobject's embeddedEntityDispatchEntryfields at+0x0c(slot 0) and+0x10(slot 2); ifparam_2bit 0 is set, callsProcess_AssertNotTerminating. Decompilation and the exact function body support this structural name. Ghidra reports no callers or xrefs, so the concrete owner/class role remains unresolved.10e8:38bc(FUN_10e8_38bc->ByteRecord_StoreAtOffset8AndReturnTrue): storesvalat byte offset+8fromptrand returns1. The nearbyNPC_GetDifficultyLevelat10e8:38cdreads the globalg_difficultyLevel, so the two functions are not treated as a getter/setter pair. No callers or xrefs resolve here; the record type and field meaning remain unknown.
Batch 2: Code30 (10e8)
10e8:3e47(FUN_10e8_3e47->AvatarItemState_Initialize): callsmalloc_0x17_bytes_if_neededwith the address ofg_avatarItemNo. The helper initializes a 0x17-byte block, setting bytes 0 and 1 to1, 0and bytes0x0band0x0cto3, 0; because the wrapper passes a fixed, non-null global address, the helper's allocation branch is not taken. References to the global support its avatar-item association, but Ghidra has no direct caller/xref to the wrapper.10e8:3eb9,10e8:3f0a, and10e8:3f5bdecompile identically toProcess_DestroyEmbeddedDispatchEntriesat10e8:3e68. No callers/xrefs resolve for these copies, so they remain unnamed until table/owner context distinguishes their roles.
Batch 3: Code30 (10e8)
10e8:38d5(FUN_10e8_38d5->Savegame_Load_InvokeCallbackAndRestoreRng): called bySavegame_LoadProbablyat1050:043aafter the preceding load readers. It invokes the callback from(*(param_3 + 8) + 0x0c), then restores the RNG seed fromDAT_1478_7e26throughRandom_SetSeed.10e8:3905(FUN_10e8_3905->Savegame_Save_CaptureRngAndInvokeCallback): called bySavegame_QuickSaveat1050:023cafter item-cache and NPC serialization. It captures the current seed withGet_RandomSeed, invokes the callback from(*(param_3 + 8) + 0x10)with fixed arguments including&g_avatarItemNo, and returnsNPC_GetDifficultyLevel().- The save/load callback targets and serialized record schema remain unresolved; the names describe the verified caller role and local operations only.
Batch 4: Code30 destructor copies (10e8)
10e8:3eb9->Process_DestroyEmbeddedDispatchEntries_10e8_3eb910e8:3f0a->Process_DestroyEmbeddedDispatchEntries_10e8_3f0a10e8:3f5b->Process_DestroyEmbeddedDispatchEntries_10e8_3f5b10e8:3fac->Process_DestroyEmbeddedDispatchEntries_10e8_3fac10e8:3ffd->Process_DestroyEmbeddedDispatchEntries_10e8_3ffd10e8:404e->Process_DestroyEmbeddedDispatchEntries_10e8_404e10e8:409f->Process_DestroyEmbeddedDispatchEntries_10e8_409f10e8:40f0->Process_DestroyEmbeddedDispatchEntries_10e8_40f0
All eight bodies match Process_DestroyEmbeddedDispatchEntries at 10e8:3e68: they destroy the embedded dispatch entries at +0x0c and +0x10 and conditionally assert that the process is not terminating. Each has an address-qualified structural name because no caller was recovered to establish the owning class. The suffixes preserve the distinction between separate function bodies without claiming they are interchangeable.
Suggested Triage
- Start with dense gameplay/data clusters where neighboring names and callers can provide context: Code30 (
10e8, 47 remaining candidates), Code1 (1000, 137; runtime/support-heavy, so triage for game relevance first), Code51 (1190, 27), Code59 (11d0, 27), Code106 (1348, 29), Code112 (1378, 26), and Code109 (1360, 21). - Cross-check each candidate against the segment coverage ledger and subsystem docs before decompiling. Prefer caller/callee role, strings, data references, or verified raw mappings as evidence.
- Rename only after confirming behavior. Keep a concise decompiler comment when a verified raw mapping or external evidence supports the name.
- Refresh this inventory from the live Ghidra database after rename batches; it is a snapshot, not a maintained source of truth.
Next Concrete Steps
- Decompile
10e8:4141and compare it with the established destructor-copy body. - Decompile
10e8:41e3and check for the same dispatch-entry cleanup contract. - Decompile
10e8:4234and check whether it is another structural copy. - Decompile
10e8:4285and check whether it is another structural copy. - Decompile
10e8:42d6and check whether it is another structural copy. - Decompile
10e8:4327and check whether it is another structural copy. - Decompile
10e8:4378and check whether it is another structural copy. - Decompile
10e8:43c9and check whether it is another structural copy.