aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruser <user@clank>2026-09-29 22:44:10 +0200
committeruser <user@clank>2026-09-29 22:44:10 +0200
commit136eb8fa14185b08b07ecbdcb23f204e166ebbf8 (patch)
tree0d9afe30cae4ec99431b35ba8bb505ae759ff30b
parentRETRACT the ninth pass: its positive control passed on garbage from a linear ... (diff)
downloadamd-psp-re-136eb8fa14185b08b07ecbdcb23f204e166ebbf8.tar.gz
amd-psp-re-136eb8fa14185b08b07ecbdcb23f204e166ebbf8.tar.xz
amd-psp-re-136eb8fa14185b08b07ecbdcb23f204e166ebbf8.zip
tenth pass: field-flow v2 on IDA boundaries with verified writers; TAs and ASD clean
Rebuilds the retracted v1 without its cause. Function boundaries come from IDA and are cached, so every instruction decoded starts at a real function entry rather than from a resynchronising sweep; every writer is re-verified to disassemble inside its own function to a genuine store of the [base,#imm] form, with reject counts printed so the filtering is visible; stores through sp and fp are excluded as stack slots rather than fields; and a source register assigned an immediate now counts as bounded, which v1 missed and which had it reporting a constant-zero store as an unbounded writer. The positive control now passes for the right reason: HDCP's site is reported with two writers that were hand-verified to disassemble to strb.w sb,[r5,#0x38], the very field whose value the bug loads as its length, with the same base register. The negative control still holds. Results: zero sites across all twelve TAs and zero in ASD, with SYS_DRV at 42 still dominated by offset-keyed conflation. States the blind spot in that zero. v2 tracks struct-field stores, while the XGMI finding keeps its length in a stack slot written by a callee through a pointer, so no store of the tracked form writes it and v2 cannot see it, which is why xgmi reports zero here though v1 reported that site. The zero therefore means no copy length comes from a struct field with an unbounded writer, not that no unbounded length exists, and callee-written in/out length slots remain outside its scope despite being the class that produced the one real finding in this hunt.
-rw-r--r--fw/AUDIT-TA-MEMSAFETY-HUNT.md52
-rw-r--r--fw/audits/fnbounds.json1
-rw-r--r--fw/ta_fieldflow2.py276
3 files changed, 329 insertions, 0 deletions
diff --git a/fw/AUDIT-TA-MEMSAFETY-HUNT.md b/fw/AUDIT-TA-MEMSAFETY-HUNT.md
index 8842fa2..fee0d99 100644
--- a/fw/AUDIT-TA-MEMSAFETY-HUNT.md
+++ b/fw/AUDIT-TA-MEMSAFETY-HUNT.md
@@ -589,3 +589,55 @@ a sweep-based tool reports must be re-disassembled from a known-good boundary an
be the instruction class claimed, before it counts — as a writer, a copy site, or anything
else. A control that passes *because* of garbage is worse than no control, because it converts
an unreliable tool into a confident one.
+
+================================================================================
+# Tenth pass: field-flow v2 — boundary-based, writers verified, control passing honestly
+
+`fw/ta_fieldflow2.py` rebuilds the retracted v1 without its cause:
+
+* **function boundaries from IDA** (`fw/audits/fnbounds.json`, pulled once: hdcp 102,
+ sys_drv 1140, asd 1551 functions; TA prefixes use the existing `fw/libdumps`), so every
+ instruction decoded starts at a real function entry — no resynchronising sweep;
+* **every writer re-verified**: the address must disassemble inside its own function to a
+ genuine `str rS,[base,#imm]`. The reject counts are printed (sys_drv: 1846 `str`-form
+ rejects, asd: 1194), so the filtering is visible rather than silent;
+* stores through `sp`/`fp` excluded (stack slots are not struct fields);
+* a source register **assigned an immediate** now counts as bounded — v1 missed this and
+ reported `movs r2,#0 ; str.w r2,[r1,#0x88]` as an "unbounded writer".
+
+**The positive control now passes for the right reason.** HDCP `0x402cde` is reported with
+writers at `0x402b0a` and `0x402c22`, and both were hand-verified to disassemble to
+`strb.w sb, [r5, #0x38]` — the very field the bug's length is loaded from
+(`ldrb.w r8, [r5, #0x38]`, same base register). The negative control (`sub_E0D6B4`) still
+holds.
+
+## Results
+
+| module | sites |
+|---|---|
+| all twelve TAs (gcp, opm, xgmi, merit, fp, auc, powerplay, wspe, rap, oc, csu, tmz) | **0** |
+| ASD | **0** |
+| SYS_DRV | 42 — offset-keyed conflation still dominant (`+0x4`: 42 writers, `+0x44`: 30) |
+
+## The blind spot in that zero, stated explicitly
+
+v2 tracks **struct-field** stores. The XGMI finding
+(`FINDING-XGMI-CALLEE-LENGTH-STACK-COPY.md`) keeps its length in a **stack slot** (`[sp,#8]`)
+written by a *callee* through a pointer, so no `str …,[base,#imm]` in the module writes it and
+v2 cannot see it — which is why xgmi now reports 0 while v1 reported that site. The zero
+therefore means "no copy length comes from a struct field with an unbounded writer", **not**
+"no unbounded length exists". Callee-written in/out length slots are outside its scope, and
+that class already produced the one real finding in this hunt.
+
+## Objective status after ten passes
+
+**Still no new exercisable memory-corruption primitive.** What is now genuinely established,
+with a control that passes for a verified reason:
+
+* no copy in any of the twelve TAs, nor in ASD, takes its length from a struct field that any
+ verified store writes unbounded;
+* the known-real bug class that remains open is callee-written length slots — one instance
+ found (XGMI, latent behind an unimplemented SYS_DRV opcode), and v2 is blind to it by
+ construction;
+* SYS_DRV's 42 sites need field identity (pointer typing) rather than raw offsets before
+ triage is worthwhile.
diff --git a/fw/audits/fnbounds.json b/fw/audits/fnbounds.json
new file mode 100644
index 0000000..8dcb236
--- /dev/null
+++ b/fw/audits/fnbounds.json
@@ -0,0 +1 @@
+{"hdcp": [[4198400, 88], [4198488, 4], [4198624, 100], [4198724, 68], [4198792, 78], [4199264, 56], [4199320, 2], [4199324, 16], [4199344, 2], [4199348, 444], [4199800, 4], [4199804, 60], [4199864, 50], [4199914, 66], [4199980, 58], [4200038, 50], [4200088, 46], [4200134, 50], [4200184, 36], [4200220, 38], [4200258, 42], [4200300, 52], [4200352, 46], [4200398, 52], [4200450, 42], [4200492, 90], [4200584, 298], [4200884, 30], [4200916, 84], [4201000, 70], [4201072, 64], [4201136, 550], [4201692, 104], [4201800, 372], [4202172, 152], [4202348, 90], [4202440, 70], [4202512, 88], [4202600, 114], [4202720, 190], [4202912, 476], [4203392, 90], [4203484, 464], [4203948, 558], [4204512, 208], [4204720, 94], [4204816, 226], [4205042, 90], [4205132, 60], [4205192, 1032], [4206444, 694], [4207316, 88], [4207688, 146], [4207840, 32], [4208016, 146], [4208164, 226], [4208392, 64], [4208456, 90], [4208546, 66], [4208612, 360], [4208976, 64], [4209040, 452], [4209496, 62], [4209560, 786], [4210640, 34], [4211296, 26], [4211324, 36], [4211360, 148], [4211544, 34], [4211578, 44], [4211622, 44], [4211666, 32], [4211698, 32], [4211730, 32], [4211762, 32], [4211794, 36], [4211830, 36], [4211866, 36], [4211902, 32], [4211934, 38], [4211972, 36], [4212008, 38], [4212046, 38], [4212084, 44], [4212128, 32], [4212160, 36], [4212196, 32], [4212228, 34], [4212262, 32], [4212294, 32], [4212326, 34], [4212360, 34], [4212394, 46], [4212440, 34], [4212474, 32], [4212506, 32], [4212538, 38], [4212576, 38], [4212614, 32], [4212646, 32], [4212678, 46], [4212724, 32]], "sys_drv": [[14680320, 1836], [14684160, 56], [14684216, 752], [14685032, 38], [14685072, 34], [14685112, 48], [14685164, 44], [14685208, 34], [14685242, 18], [14685260, 18], [14685278, 82], [14685360, 96], [14685472, 182], [14685660, 72], [14685740, 84], [14685828, 388], [14686220, 88], [14686308, 58], [14686368, 4], [14686504, 4], [14686508, 100], [14686608, 16], [14686624, 68], [14686692, 78], [14686772, 104], [14686880, 380], [14687260, 178], [14687440, 10], [14687450, 32], [14687488, 10], [14687498, 16], [14687514, 20], [14687550, 8], [14687558, 20], [14687594, 8], [14687602, 64], [14687668, 44], [14687712, 10], [14687728, 4], [14687736, 72], [14687832, 96], [14687928, 48], [14687980, 36], [14688052, 8], [14688060, 4], [14688064, 40], [14688108, 40], [14688152, 84], [14688248, 330], [14688600, 12], [14688612, 74], [14688700, 72], [14688784, 488], [14689340, 54], [14689404, 68], [14689480, 80], [14689572, 158], [14689744, 220], [14689980, 316], [14690316, 292], [14690636, 218], [14690872, 96], [14690968, 58], [14691026, 20], [14691048, 422], [14691488, 42], [14691532, 40], [14691576, 206], [14691782, 36], [14691818, 56], [14691874, 58], [14691932, 14], [14691946, 826], [14692772, 12], [14692784, 12], [14692796, 174], [14692970, 270], [14693240, 154], [14693394, 152], [14693546, 80], [14693626, 68], [14693694, 304], [14693998, 172], [14694170, 216], [14694386, 632], [14695020, 56], [14695080, 148], [14695240, 50], [14695304, 66], [14695384, 58], [14695460, 52], [14695524, 44], [14695568, 30], [14695604, 44], [14695648, 58], [14695712, 74], [14695788, 84], [14695876, 40], [14695920, 80], [14696004, 48], [14696056, 152], [14696208, 16], [14696224, 68], [14696296, 16], [14696312, 70], [14696388, 54], [14696448, 72], [14696524, 66], [14696596, 60], [14696656, 30], [14696692, 60], [14696752, 86], [14696838, 26], [14696864, 52], [14696916, 130], [14697068, 28], [14697096, 76], [14697172, 26], [14697200, 254], [14697468, 38], [14697508, 122], [14697644, 206], [14697868, 92], [14697972, 44], [14698016, 22], [14698044, 298], [14698360, 414], [14698796, 238], [14699048, 148], [14699256, 96], [14699368, 356], [14699740, 262], [14700028, 242], [14700284, 18], [14700302, 14], [14700316, 28], [14700344, 74], [14700424, 56], [14700484, 32], [14700520, 26], [14700552, 44], [14700604, 156], [14700768, 10], [14700784, 74], [14700864, 264], [14701156, 24], [14701180, 6], [14701188, 20], [14701212, 18], [14701232, 386], [14701680, 26], [14701708, 150], [14701864, 32], [14701900, 116], [14702032, 938], [14703048, 18], [14703072, 62], [14703140, 74], [14703224, 36], [14703260, 84], [14703344, 56], [14703408, 20], [14703428, 74], [14703516, 66], [14703588, 76], [14703672, 32], [14703708, 86], [14703804, 156], [14703972, 28], [14704000, 70], [14704076, 2], [14704080, 36], [14704120, 18], [14704144, 12], [14704156, 76], [14704236, 166], [14704420, 92], [14704524, 98], [14704636, 44], [14704680, 14], [14704696, 206], [14704912, 72], [14704992, 32], [14705032, 74], [14705120, 28], [14705148, 30], [14705180, 64], [14705248, 138], [14705400, 106], [14705512, 4], [14705516, 58], [14705580, 186], [14705772, 126], [14705908, 78], [14705992, 66], [14706064, 58], [14706128, 4], [14706132, 104], [14706244, 4], [14706248, 218], [14706480, 180], [14706680, 164], [14706864, 74], [14706944, 4], [14706948, 166], [14707120, 254], [14707392, 76], [14707476, 342], [14707836, 450], [14708304, 220], [14708536, 518], [14709076, 60], [14709140, 110], [14709256, 70], [14709328, 122], [14709460, 150], [14709624, 234], [14709892, 142], [14710052, 82], [14710148, 228], [14710400, 196], [14710612, 60], [14710680, 74], [14710764, 10], [14710784, 206], [14711056, 90], [14711152, 134], [14711296, 116], [14711424, 248], [14711680, 176], [14711936, 220], [14712220, 50], [14712272, 4], [14712280, 128], [14712420, 156], [14712592, 80], [14712688, 80], [14712784, 56], [14712844, 56], [14712904, 84], [14712996, 2], [14713000, 168], [14713172, 176], [14713360, 58], [14713424, 88], [14713516, 276], [14713812, 284], [14714124, 38], [14714168, 60], [14714228, 122], [14714356, 122], [14714484, 132], [14714620, 180], [14714804, 24], [14714832, 14], [14714852, 104], [14714964, 48], [14715012, 86], [14715104, 50], [14715164, 98], [14715268, 510], [14715804, 778], [14716604, 926], [14717556, 16], [14717572, 76], [14717648, 48], [14717696, 10], [14717706, 52], [14717758, 36], [14717794, 52], [14717846, 66], [14717912, 86], [14718000, 138], [14718152, 130], [14718296, 190], [14718500, 184], [14718696, 200], [14718908, 46], [14718964, 30], [14719004, 12], [14719020, 86], [14719128, 2], [14719132, 72], [14719208, 96], [14719332, 68], [14719404, 32], [14719440, 14], [14719460, 372], [14719840, 60], [14719908, 46], [14719964, 24], [14719988, 30], [14720018, 24], [14720042, 56], [14720100, 78], [14720184, 52], [14720244, 116], [14720368, 156], [14720528, 32], [14720564, 26], [14720592, 26], [14720624, 1008], [14721672, 40], [14721712, 82], [14721800, 38], [14721838, 36], [14721874, 50], [14721924, 50], [14721974, 44], [14722018, 68], [14722088, 4], [14722096, 84], [14722196, 152], [14722352, 76], [14722428, 186], [14722628, 26], [14722656, 142], [14722808, 78], [14722892, 250], [14723156, 10], [14723168, 468], [14723652, 130], [14723792, 110], [14723908, 44], [14723956, 96], [14724064, 112], [14724196, 96], [14724304, 50], [14724360, 24], [14724388, 14], [14724404, 200], [14724616, 104], [14724732, 20], [14724752, 142], [14724912, 200], [14725160, 6], [14725172, 36], [14725216, 6], [14725228, 36], [14725264, 74], [14725352, 12], [14725364, 70], [14725448, 58], [14725516, 10], [14725532, 174], [14725720, 64], [14725792, 98], [14725896, 100], [14726016, 122], [14726152, 78], [14726272, 10], [14726288, 6], [14726300, 42], [14726344, 6], [14726356, 132], [14726492, 12], [14726508, 6], [14726520, 170], [14726700, 324], [14727036, 16], [14727052, 48], [14727104, 36], [14727148, 42], [14727192, 170], [14727372, 14], [14727392, 6], [14727404, 30], [14727440, 14], [14727456, 136], [14727604, 52], [14727668, 44], [14727716, 12], [14727732, 50], [14727788, 8], [14727800, 6], [14727812, 66], [14727888, 36], [14727924, 42], [14727972, 110], [14728096, 42], [14728144, 42], [14728192, 46], [14728244, 46], [14728296, 110], [14728416, 46], [14728468, 50], [14728528, 32], [14728564, 44], [14728612, 82], [14728700, 112], [14728824, 22], [14728852, 4], [14728860, 134], [14729000, 72], [14729076, 212], [14729292, 20], [14729316, 464], [14729808, 56], [14729864, 30], [14729904, 82], [14729988, 158], [14730168, 192], [14730364, 44], [14730412, 574], [14731020, 152], [14731176, 152], [14731336, 52], [14731388, 82], [14731476, 60], [14731540, 96], [14731656, 20], [14731676, 12], [14731692, 54], [14731756, 22], [14731784, 2], [14731788, 28], [14731820, 908], [14732856, 40], [14732904, 28], [14732936, 112], [14733056, 146], [14733224, 28], [14733260, 226], [14733516, 28], [14733548, 40], [14733600, 236], [14733856, 154], [14734032, 50], [14734104, 42], [14734160, 42], [14734220, 12], [14734236, 62], [14734300, 44], [14734356, 208], [14734588, 16], [14734612, 222], [14734860, 92], [14734964, 54], [14735028, 28], [14735056, 30], [14735088, 190], [14735292, 200], [14735504, 192], [14735728, 136], [14735872, 2], [14735874, 4], [14735880, 4], [14735888, 158], [14736064, 58], [14736140, 22], [14736168, 22], [14736190, 6], [14736196, 20], [14736220, 12], [14736232, 40], [14736276, 20], [14736304, 22], [14736332, 50], [14736396, 12], [14736408, 80], [14736492, 108], [14736612, 22], [14736644, 392], [14737048, 12], [14737064, 22], [14737096, 34], [14737140, 106], [14737256, 102], [14737380, 74], [14737456, 124], [14737592, 24], [14737616, 40], [14737656, 108], [14737772, 100], [14737872, 142], [14738020, 82], [14738102, 66], [14738168, 20], [14738188, 34], [14738224, 128], [14738356, 44], [14738400, 72], [14738472, 12], [14738488, 10], [14738500, 84], [14738604, 62], [14738672, 72], [14738744, 248], [14739020, 20], [14739040, 128], [14739176, 98], [14739276, 100], [14739384, 274], [14739680, 90], [14739776, 770], [14740596, 20], [14740616, 40], [14740656, 12], [14740672, 158], [14740830, 26], [14740856, 136], [14740992, 380], [14741380, 4], [14741384, 42], [14741432, 166], [14741612, 98], [14741720, 114], [14741844, 28], [14741880, 30], [14741910, 30], [14741940, 214], [14742160, 26], [14742192, 54], [14742256, 66], [14742332, 4], [14742340, 28], [14742372, 68], [14742452, 294], [14742768, 278], [14743072, 32], [14743104, 210], [14743328, 88], [14743424, 2], [14743428, 212], [14743652, 40], [14743696, 20], [14743720, 160], [14743888, 146], [14744048, 244], [14744300, 64], [14744372, 306], [14744684, 152], [14744848, 328], [14745192, 72], [14745268, 266], [14745552, 194], [14745776, 118], [14745912, 114], [14746036, 128], [14746164, 612], [14746820, 74], [14746900, 82], [14746992, 42], [14747048, 4372], [14751432, 4], [14751436, 198], [14751648, 204], [14751856, 244], [14752120, 4], [14752128, 74], [14752212, 82], [14752300, 52], [14752360, 4], [14752368, 4], [14752376, 36], [14752416, 4], [14752424, 76], [14752504, 4], [14752512, 188], [14752708, 88], [14752800, 106], [14752912, 10], [14752924, 180], [14753124, 4], [14753132, 92], [14753224, 128], [14753356, 4], [14753364, 4], [14753372, 760], [14754172, 594], [14754792, 4], [14754800, 18], [14754828, 4], [14754836, 158], [14755064, 36], [14755108, 122], [14755240, 4], [14755248, 4], [14755256, 4], [14755264, 70], [14755352, 70], [14755440, 68], [14755512, 4], [14755520, 28], [14755556, 128], [14755696, 18], [14755724, 26], [14755764, 4], [14755772, 8], [14755780, 160], [14755952, 232], [14756200, 18], [14756220, 4], [14756228, 30], [14756264, 4], [14756272, 4], [14756280, 16], [14756296, 46], [14756352, 72], [14756432, 44], [14756488, 72], [14756564, 146], [14756716, 208], [14756924, 4], [14756932, 292], [14757248, 982], [14758256, 116], [14758392, 394], [14758804, 4], [14758812, 4], [14758820, 70], [14758896, 4], [14758904, 4], [14758912, 158], [14759076, 20], [14759096, 36], [14759132, 114], [14759252, 126], [14759388, 76], [14759496, 4], [14759500, 4], [14759508, 4], [14759512, 350], [14759876, 20], [14759896, 150], [14760052, 294], [14760376, 4], [14760384, 52], [14760448, 24], [14760476, 4], [14760484, 4], [14760492, 44], [14760544, 26], [14760576, 4], [14760584, 4], [14760592, 4], [14760600, 4], [14760608, 24], [14760636, 312], [14760968, 4], [14760976, 4], [14760984, 44], [14761032, 752], [14761816, 4], [14761824, 338], [14762192, 4], [14762200, 4], [14762208, 14], [14762224, 30], [14762268, 184], [14762508, 102], [14762628, 18], [14762656, 458], [14763132, 478], [14763672, 4], [14763680, 274], [14763976, 8], [14763988, 244], [14764256, 282], [14764560, 62], [14764640, 142], [14764792, 98], [14764896, 50], [14764952, 236], [14765200, 100], [14765308, 120], [14765452, 364], [14765840, 90], [14765936, 98], [14766040, 150], [14766196, 176], [14766380, 176], [14766568, 72], [14766644, 120], [14766772, 260], [14767048, 204], [14767264, 16], [14767284, 32], [14767324, 76], [14767404, 10], [14767420, 22], [14767452, 2], [14767456, 36], [14767496, 482], [14767988, 6], [14768000, 6], [14768012, 6], [14768024, 78], [14768116, 174], [14768308, 70], [14768388, 42], [14768440, 14], [14768464, 38], [14768508, 280], [14768804, 142], [14768952, 96], [14769080, 30], [14769116, 128], [14769264, 62], [14769332, 104], [14769440, 130], [14769588, 10], [14769598, 50], [14769648, 48], [14769704, 166], [14769884, 8], [14769892, 12], [14769904, 32], [14769944, 102], [14770056, 32], [14770092, 258], [14770368, 12], [14770384, 50], [14770440, 22], [14770472, 46], [14770528, 76], [14770624, 40], [14770668, 30], [14770704, 88], [14770808, 82], [14770908, 34], [14770948, 604], [14771608, 50], [14771664, 64], [14771732, 52], [14771796, 140], [14771956, 22], [14771988, 198], [14772208, 134], [14772344, 54], [14772408, 22], [14772436, 84], [14772536, 38], [14772580, 240], [14772836, 414], [14773360, 384], [14773752, 410], [14774176, 368], [14774564, 370], [14774956, 132], [14775092, 176], [14775272, 2], [14775276, 16], [14775296, 92], [14775388, 158], [14775556, 80], [14775648, 626], [14776316, 86], [14776408, 254], [14776688, 28], [14776720, 70], [14776800, 104], [14776904, 22], [14776932, 18], [14776956, 16], [14776976, 22], [14777004, 86], [14777104, 44], [14777156, 66], [14777224, 64], [14777292, 68], [14777364, 132], [14777516, 40], [14777556, 134], [14777700, 174], [14777880, 56], [14777936, 72], [14778020, 66], [14778100, 256], [14778364, 76], [14778444, 84], [14778532, 82], [14778628, 228], [14778876, 70], [14778956, 60], [14779020, 42], [14779072, 28], [14779104, 122], [14779236, 210], [14779468, 106], [14779584, 136], [14779728, 28], [14779756, 136], [14779900, 198], [14780112, 6], [14780124, 204], [14780348, 22], [14780376, 224], [14780632, 208], [14780868, 80], [14780952, 42], [14780994, 50], [14781044, 168], [14781224, 72], [14781300, 4], [14781308, 186], [14781512, 8], [14781520, 34], [14781568, 64], [14781640, 18], [14781664, 8], [14781676, 402], [14782124, 108], [14782240, 22], [14782268, 26], [14782300, 150], [14782468, 6], [14782480, 116], [14782604, 80], [14782692, 44], [14782744, 58], [14782816, 18], [14782840, 24], [14782868, 12], [14782880, 78], [14782968, 138], [14783132, 82], [14783220, 28], [14783252, 132], [14783388, 26], [14783420, 68], [14783496, 290], [14783808, 106], [14783924, 112], [14784044, 244], [14784312, 206], [14784548, 180], [14784736, 222], [14784984, 348], [14785352, 136], [14785496, 300], [14785812, 198], [14786036, 124], [14786176, 234], [14786432, 260], [14786724, 244], [14786992, 110], [14787116, 56], [14787176, 158], [14787340, 72], [14787420, 148], [14787572, 36], [14787608, 58], [14787676, 226], [14787912, 28], [14787952, 46], [14788004, 214], [14788236, 224], [14788472, 172], [14788656, 98], [14788768, 130], [14788912, 128], [14789052, 80], [14789140, 146], [14789300, 88], [14789392, 174], [14789576, 90], [14789676, 76], [14789760, 126], [14789886, 68], [14789956, 102], [14790064, 82], [14790152, 44], [14790200, 400], [14790616, 270], [14790896, 18], [14790920, 18], [14790940, 118], [14791068, 88], [14791164, 316], [14791496, 244], [14791772, 4], [14791776, 4], [14791780, 4], [14791784, 28], [14791820, 186], [14792024, 286], [14792320, 2], [14792324, 72], [14792420, 36], [14792460, 256], [14792728, 118], [14792856, 16], [14792872, 266], [14793152, 102], [14793260, 2], [14793264, 114], [14793392, 126], [14793532, 352], [14793908, 26], [14793944, 30], [14793980, 88], [14794076, 116], [14794196, 38], [14794244, 8], [14794256, 176], [14794440, 38], [14794488, 62], [14794560, 124], [14794704, 276], [14795000, 172], [14795184, 86], [14795288, 8], [14795296, 170], [14795480, 132], [14795624, 112], [14795748, 166], [14795936, 8], [14795948, 8], [14795960, 144], [14796116, 196], [14796336, 202], [14796568, 196], [14796784, 88], [14796892, 148], [14797052, 4], [14797056, 64], [14797128, 318], [14797464, 52], [14797524, 132], [14797664, 80], [14797748, 62], [14797816, 94], [14797920, 192], [14798116, 188], [14798316, 270], [14798600, 644], [14799300, 194], [14799512, 230], [14799756, 82], [14799844, 40], [14799884, 42], [14799928, 318], [14800268, 184], [14800460, 86], [14800556, 16], [14800572, 574], [14801208, 424], [14801656, 294], [14801968, 790], [14802764, 180], [14802952, 2], [14802954, 4], [14802958, 2], [14802960, 74], [14803044, 270], [14803332, 8], [14803340, 618], [14804020, 72], [14804096, 34], [14804132, 86], [14804228, 86], [14804320, 100], [14804428, 340], [14804900, 76], [14804980, 100], [14805088, 42], [14805132, 72], [14805212, 228], [14805452, 128], [14805588, 230], [14805832, 100], [14805936, 56], [14805992, 36], [14806032, 104], [14806144, 92], [14806244, 10], [14806254, 24], [14806280, 140], [14806428, 98], [14806532, 34], [14806580, 92], [14806688, 228], [14806944, 18], [14806964, 64], [14807040, 118], [14807188, 280], [14807512, 104], [14807632, 76], [14807720, 236], [14807964, 4], [14807972, 190], [14808176, 212], [14808400, 16], [14808416, 14], [14808430, 66], [14808496, 54], [14808568, 38], [14808616, 152], [14808772, 162], [14808960, 164], [14809148, 142], [14809312, 56], [14809376, 8], [14809384, 108], [14809492, 72], [14809568, 276], [14809860, 6], [14809872, 278], [14810168, 88], [14810268, 4], [14810272, 114], [14810392, 242], [14810656, 164], [14810840, 92], [14810936, 234], [14811184, 34], [14811228, 156], [14811400, 168], [14811580, 224], [14811808, 702], [14812528, 540], [14813092, 66], [14813172, 78], [14813260, 294], [14813588, 148], [14813744, 210], [14813976, 228], [14814224, 138], [14814368, 48], [14814428, 146], [14814588, 680], [14815296, 256], [14815568, 4], [14815576, 310], [14815920, 34], [14815964, 80], [14816048, 54], [14816108, 120], [14816240, 122], [14816376, 62], [14816440, 60], [14816508, 154], [14816676, 4], [14816680, 196], [14816892, 72], [14816976, 96], [14817076, 30], [14817112, 270], [14817416, 72], [14817488, 38], [14817532, 32], [14817572, 212], [14817812, 4], [14817820, 4], [14817824, 36], [14817872, 4], [14817876, 4], [14817880, 4], [14817888, 4], [14817892, 4], [14817900, 28], [14817928, 4], [14817936, 24], [14817968, 22], [14818000, 14], [14818016, 40], [14818060, 54], [14818120, 54], [14818180, 54], [14818240, 114], [14818360, 6], [14818372, 22], [14818404, 80], [14818492, 52], [14818548, 32], [14818584, 40], [14818628, 158], [14818796, 56], [14818856, 32], [14818892, 24], [14818924, 30], [14818960, 48], [14819012, 6], [14819024, 52], [14819080, 94], [14819180, 64], [14819248, 140], [14819392, 288], [14819692, 38], [14819732, 28], [14819764, 6], [14819776, 12], [14819792, 4], [14819796, 42], [14819840, 22], [14819872, 14], [14819892, 24], [14819924, 66], [14820000, 134], [14820140, 72], [14820216, 90], [14820324, 212], [14820536, 312], [14820860, 40], [14820900, 68], [14820972, 26], [14821004, 100], [14821112, 20], [14821132, 86], [14821220, 116], [14821340, 80], [14821424, 28], [14821452, 112], [14821564, 2], [14821568, 26], [14821600, 26], [14821626, 18], [14821644, 196], [14821848, 6], [14821860, 76], [14821936, 370], [14822308, 32], [14822344, 14], [14822364, 30], [14822400, 42], [14822448, 50], [14822504, 20], [14822528, 20], [14822552, 14], [14822572, 20], [14822596, 16], [14822612, 22], [14822640, 64], [14822708, 34], [14840064, 16], [14840084, 88], [14840172, 136], [14840308, 140], [14840448, 16], [14840464, 68], [14840532, 78], [14840612, 100], [14840840, 48], [14840888, 158], [14841046, 136], [14841184, 108], [14841296, 34], [14841330, 58], [14841388, 98]], "asd": [[13631744, 3928], [13635672, 4], [13635808, 100], [13635908, 68], [13635976, 78], [13636448, 82], [13636536, 842], [13637912, 100], [13638012, 100], [13638116, 52], [13638168, 60], [13638228, 44], [13638272, 44], [13638316, 44], [13638360, 50], [13638410, 54], [13638464, 46], [13638510, 56], [13638566, 40], [13638608, 56], [13638668, 60], [13638728, 50], [13638778, 58], [13638836, 50], [13638886, 46], [13638932, 50], [13638982, 46], [13639028, 36], [13639064, 38], [13639102, 42], [13639144, 52], [13639196, 42], [13639240, 732], [13640372, 30], [13640404, 244], [13640648, 268], [13640924, 54], [13640984, 212], [13641200, 52], [13641252, 52], [13641304, 6], [13641312, 92], [13641408, 54], [13641472, 40], [13641520, 14], [13641534, 84], [13641620, 34], [13641664, 40], [13641712, 90], [13641828, 44], [13641880, 4], [13641884, 4], [13641888, 58], [13641956, 4], [13641960, 4], [13641964, 4], [13641968, 4], [13641972, 4], [13641976, 4], [13641980, 4], [13641984, 4], [13641988, 4], [13641992, 4], [13641996, 4], [13642000, 4], [13642004, 4], [13642008, 4], [13642012, 4], [13642016, 4], [13642020, 4], [13642024, 4], [13642028, 4], [13642032, 4], [13642036, 4], [13642040, 4], [13642044, 4], [13642048, 4], [13642052, 4], [13642056, 4], [13642060, 4], [13642064, 4], [13642068, 464], [13642536, 4], [13642540, 4], [13642544, 4], [13642548, 4], [13642552, 4], [13642556, 4], [13642560, 4], [13642564, 4], [13642568, 4], [13642572, 4], [13642576, 4], [13642580, 4], [13642584, 4], [13642588, 4], [13642592, 4], [13642596, 4], [13642600, 4], [13642604, 4], [13642608, 4], [13642612, 4], [13642616, 4], [13642620, 4], [13642624, 4], [13642628, 4], [13642632, 4], [13642636, 4], [13642640, 4], [13642644, 4], [13642648, 4], [13642652, 4], [13642656, 4], [13642660, 4], [13642664, 464], [13643132, 4], [13643136, 4], [13643140, 4], [13643144, 4], [13643148, 4], [13643152, 4], [13643156, 4], [13643160, 4], [13643164, 4], [13643168, 4], [13643172, 4], [13643176, 4], [13643180, 4], [13643184, 4], [13643188, 4], [13643192, 4], [13643196, 4], [13643200, 4], [13643204, 4], [13643208, 4], [13643212, 4], [13643216, 4], [13643220, 4], [13643224, 4], [13643228, 4], [13643232, 4], [13643236, 4], [13643240, 4], [13643244, 4], [13643248, 4], [13643252, 4], [13643256, 4], [13643260, 486], [13643752, 4], [13643756, 4], [13643760, 62], [13643822, 74], [13643896, 4], [13643900, 4], [13643904, 58], [13643972, 4], [13643976, 4], [13643980, 4], [13643984, 4], [13643988, 4], [13643992, 4], [13643996, 4], [13644000, 4], [13644004, 4], [13644008, 4], [13644012, 4], [13644016, 4], [13644020, 4], [13644024, 4], [13644028, 4], [13644032, 4], [13644036, 4], [13644040, 4], [13644044, 4], [13644048, 4], [13644052, 4], [13644056, 4], [13644060, 4], [13644064, 4], [13644068, 4], [13644072, 4], [13644076, 4], [13644080, 4], [13644084, 464], [13644552, 4], [13644556, 4], [13644560, 4], [13644564, 4], [13644568, 4], [13644572, 4], [13644576, 4], [13644580, 4], [13644584, 4], [13644588, 4], [13644592, 4], [13644596, 4], [13644600, 4], [13644604, 4], [13644608, 4], [13644612, 4], [13644616, 4], [13644620, 4], [13644624, 4], [13644628, 4], [13644632, 4], [13644636, 4], [13644640, 4], [13644644, 4], [13644648, 4], [13644652, 4], [13644656, 4], [13644660, 4], [13644664, 4], [13644668, 4], [13644672, 4], [13644676, 4], [13644680, 502], [13645188, 4], [13645192, 4], [13645196, 42], [13645238, 50], [13645288, 54], [13645342, 62], [13645404, 4], [13645408, 4], [13645412, 58], [13645480, 4], [13645484, 4], [13645488, 4], [13645492, 4], [13645496, 4], [13645500, 4], [13645504, 4], [13645508, 4], [13645512, 4], [13645516, 4], [13645520, 4], [13645524, 4], [13645528, 4], [13645532, 4], [13645536, 4], [13645540, 4], [13645544, 4], [13645548, 4], [13645552, 4], [13645556, 4], [13645560, 4], [13645564, 4], [13645568, 4], [13645572, 4], [13645576, 4], [13645580, 4], [13645584, 4], [13645588, 4], [13645592, 564], [13646160, 4], [13646164, 4], [13646168, 4], [13646172, 4], [13646176, 4], [13646180, 4], [13646184, 4], [13646188, 4], [13646192, 4], [13646196, 4], [13646200, 4], [13646204, 4], [13646208, 4], [13646212, 4], [13646216, 4], [13646220, 4], [13646224, 4], [13646228, 4], [13646232, 4], [13646236, 4], [13646240, 4], [13646244, 4], [13646248, 4], [13646252, 4], [13646256, 4], [13646260, 4], [13646264, 4], [13646268, 4], [13646272, 4], [13646276, 4], [13646280, 4], [13646284, 4], [13646288, 474], [13646768, 4], [13646772, 4], [13646776, 4], [13646780, 4], [13646784, 4], [13646788, 4], [13646792, 4], [13646796, 4], [13646800, 4], [13646804, 4], [13646808, 4], [13646812, 4], [13646816, 4], [13646820, 4], [13646824, 4], [13646828, 4], [13646832, 4], [13646836, 4], [13646840, 4], [13646844, 4], [13646848, 4], [13646852, 4], [13646856, 4], [13646860, 4], [13646864, 4], [13646868, 4], [13646872, 4], [13646876, 4], [13646880, 4], [13646884, 4], [13646888, 4], [13646892, 4], [13646896, 564], [13647464, 4], [13647468, 4], [13647472, 4], [13647476, 4], [13647480, 4], [13647484, 4], [13647488, 4], [13647492, 4], [13647496, 4], [13647500, 4], [13647504, 4], [13647508, 4], [13647512, 4], [13647516, 4], [13647520, 4], [13647524, 4], [13647528, 4], [13647532, 4], [13647536, 4], [13647540, 4], [13647544, 4], [13647548, 4], [13647552, 4], [13647556, 4], [13647560, 4], [13647564, 4], [13647568, 4], [13647572, 4], [13647576, 4], [13647580, 4], [13647584, 4], [13647588, 4], [13647592, 564], [13648160, 4], [13648164, 4], [13648168, 4], [13648172, 4], [13648176, 4], [13648180, 4], [13648184, 4], [13648188, 4], [13648192, 4], [13648196, 4], [13648200, 4], [13648204, 4], [13648208, 4], [13648212, 4], [13648216, 4], [13648220, 4], [13648224, 4], [13648228, 4], [13648232, 4], [13648236, 4], [13648240, 4], [13648244, 4], [13648248, 4], [13648252, 4], [13648256, 4], [13648260, 4], [13648264, 4], [13648268, 4], [13648272, 4], [13648276, 4], [13648280, 4], [13648284, 4], [13648288, 662], [13648956, 4], [13648960, 4], [13648964, 4], [13648968, 4], [13648972, 4], [13648976, 4], [13648980, 4], [13648984, 4], [13648988, 4], [13648992, 4], [13648996, 4], [13649000, 4], [13649004, 4], [13649008, 4], [13649012, 4], [13649016, 4], [13649020, 4], [13649024, 4], [13649028, 4], [13649032, 4], [13649036, 4], [13649040, 4], [13649044, 4], [13649048, 4], [13649052, 4], [13649056, 4], [13649060, 4], [13649064, 4], [13649068, 4], [13649072, 4], [13649076, 4], [13649080, 4], [13649084, 680], [13649768, 4], [13649772, 4], [13649776, 4], [13649780, 4], [13649784, 4], [13649788, 4], [13649792, 4], [13649796, 4], [13649800, 4], [13649804, 4], [13649808, 4], [13649812, 4], [13649816, 4], [13649820, 4], [13649824, 4], [13649828, 4], [13649832, 4], [13649836, 4], [13649840, 4], [13649844, 4], [13649848, 4], [13649852, 4], [13649856, 4], [13649860, 4], [13649864, 4], [13649868, 4], [13649872, 4], [13649876, 4], [13649880, 4], [13649884, 4], [13649888, 4], [13649892, 4], [13649896, 4], [13649900, 674], [13650580, 4], [13650584, 4], [13650588, 4], [13650592, 4], [13650596, 4], [13650600, 4], [13650604, 4], [13650608, 4], [13650612, 4], [13650616, 4], [13650620, 4], [13650624, 4], [13650628, 4], [13650632, 4], [13650636, 4], [13650640, 4], [13650644, 4], [13650648, 4], [13650652, 4], [13650656, 4], [13650660, 4], [13650664, 4], [13650668, 4], [13650672, 4], [13650676, 4], [13650680, 4], [13650684, 4], [13650688, 4], [13650692, 4], [13650696, 4], [13650700, 4], [13650704, 4], [13650708, 662], [13651376, 18], [13651394, 8], [13651402, 4], [13651406, 4], [13651410, 4], [13651414, 4], [13651418, 4], [13651422, 4], [13651426, 4], [13651430, 4], [13651434, 4], [13651438, 4], [13651442, 4], [13651446, 4], [13651450, 4], [13651454, 4], [13651458, 4], [13651462, 4], [13651466, 4], [13651470, 4], [13651474, 4], [13651478, 4], [13651482, 4], [13651486, 4], [13651490, 4], [13651494, 4], [13651498, 4], [13651502, 4], [13651506, 4], [13651510, 4], [13651514, 4], [13651518, 4], [13651522, 4], [13651528, 662], [13652196, 18], [13652214, 8], [13652222, 4], [13652226, 4], [13652230, 4], [13652234, 4], [13652238, 4], [13652242, 4], [13652246, 4], [13652250, 4], [13652254, 4], [13652258, 4], [13652262, 4], [13652266, 4], [13652270, 4], [13652274, 4], [13652278, 4], [13652282, 4], [13652286, 4], [13652290, 4], [13652294, 4], [13652298, 4], [13652302, 4], [13652306, 4], [13652310, 4], [13652314, 4], [13652318, 4], [13652322, 4], [13652326, 4], [13652330, 4], [13652334, 4], [13652338, 4], [13652342, 4], [13652346, 4], [13652350, 4], [13652356, 662], [13653024, 4], [13653028, 4], [13653032, 4], [13653036, 4], [13653040, 4], [13653044, 4], [13653048, 4], [13653052, 4], [13653056, 4], [13653060, 4], [13653064, 4], [13653068, 4], [13653072, 4], [13653076, 4], [13653080, 4], [13653084, 4], [13653088, 4], [13653092, 4], [13653096, 4], [13653100, 4], [13653104, 4], [13653108, 4], [13653112, 4], [13653116, 4], [13653120, 4], [13653124, 4], [13653128, 4], [13653132, 4], [13653136, 4], [13653140, 4], [13653144, 4], [13653148, 4], [13653152, 4], [13653156, 4], [13653160, 662], [13653828, 4], [13653832, 4], [13653836, 4], [13653840, 4], [13653844, 4], [13653848, 4], [13653852, 4], [13653856, 4], [13653860, 4], [13653864, 4], [13653868, 4], [13653872, 4], [13653876, 4], [13653880, 4], [13653884, 4], [13653888, 4], [13653892, 4], [13653896, 4], [13653900, 4], [13653904, 4], [13653908, 4], [13653912, 4], [13653916, 4], [13653920, 4], [13653924, 4], [13653928, 4], [13653932, 4], [13653936, 4], [13653940, 4], [13653944, 4], [13653948, 4], [13653952, 4], [13653956, 4], [13653960, 4], [13653964, 4], [13653968, 730], [13654708, 4], [13654712, 4], [13654716, 4], [13654720, 4], [13654724, 4], [13654728, 4], [13654732, 4], [13654736, 4], [13654740, 4], [13654744, 4], [13654748, 4], [13654752, 4], [13654756, 4], [13654760, 4], [13654764, 4], [13654768, 4], [13654772, 4], [13654776, 4], [13654780, 4], [13654784, 4], [13654788, 4], [13654792, 4], [13654796, 4], [13654800, 4], [13654804, 4], [13654808, 4], [13654812, 4], [13654816, 4], [13654820, 4], [13654824, 4], [13654828, 4], [13654832, 4], [13654836, 4], [13654840, 4], [13654844, 4], [13654848, 4], [13654852, 754], [13655620, 4], [13655624, 4], [13655628, 4], [13655632, 4], [13655636, 4], [13655640, 4], [13655644, 4], [13655648, 4], [13655652, 4], [13655656, 4], [13655660, 4], [13655664, 4], [13655668, 4], [13655672, 4], [13655676, 4], [13655680, 4], [13655684, 4], [13655688, 4], [13655692, 4], [13655696, 4], [13655700, 4], [13655704, 4], [13655708, 4], [13655712, 4], [13655716, 4], [13655720, 4], [13655724, 4], [13655728, 4], [13655732, 4], [13655736, 4], [13655740, 4], [13655744, 4], [13655748, 4], [13655752, 4], [13655756, 4], [13655760, 4], [13655764, 4], [13655768, 4], [13655772, 4], [13655776, 4], [13655780, 730], [13656524, 4], [13656528, 4], [13656532, 4], [13656536, 4], [13656540, 4], [13656544, 4], [13656548, 4], [13656552, 4], [13656556, 4], [13656560, 4], [13656564, 4], [13656568, 4], [13656572, 4], [13656576, 4], [13656580, 4], [13656584, 4], [13656588, 4], [13656592, 4], [13656596, 4], [13656600, 4], [13656604, 4], [13656608, 4], [13656612, 4], [13656616, 4], [13656620, 4], [13656624, 4], [13656628, 4], [13656632, 4], [13656636, 4], [13656640, 4], [13656644, 4], [13656648, 4], [13656652, 4], [13656656, 4], [13656660, 4], [13656664, 746], [13657424, 4], [13657428, 4], [13657432, 4], [13657436, 4], [13657440, 4], [13657444, 4], [13657448, 4], [13657452, 4], [13657456, 4], [13657460, 4], [13657464, 4], [13657468, 4], [13657472, 4], [13657476, 4], [13657480, 4], [13657484, 4], [13657488, 4], [13657492, 4], [13657496, 4], [13657500, 4], [13657504, 4], [13657508, 4], [13657512, 4], [13657516, 4], [13657520, 4], [13657524, 4], [13657528, 4], [13657532, 4], [13657536, 4], [13657540, 4], [13657544, 4], [13657548, 4], [13657552, 4], [13657556, 4], [13657560, 4], [13657564, 4], [13657568, 4], [13657572, 4], [13657576, 4], [13657580, 4], [13657584, 754], [13658352, 4], [13658356, 4], [13658360, 4], [13658364, 4], [13658368, 4], [13658372, 4], [13658376, 4], [13658380, 4], [13658384, 4], [13658388, 4], [13658392, 4], [13658396, 4], [13658400, 4], [13658404, 4], [13658408, 4], [13658412, 4], [13658416, 4], [13658420, 4], [13658424, 4], [13658428, 4], [13658432, 4], [13658436, 4], [13658440, 4], [13658444, 4], [13658448, 4], [13658452, 4], [13658456, 4], [13658460, 4], [13658464, 4], [13658468, 4], [13658472, 4], [13658476, 4], [13658480, 4], [13658484, 4], [13658488, 4], [13658492, 4], [13658496, 4], [13658500, 4], [13658504, 710], [13659224, 4], [13659228, 4], [13659232, 26], [13659260, 52], [13659312, 50], [13659364, 52], [13659416, 118], [13659540, 100], [13659640, 48], [13659688, 140], [13659852, 144], [13659996, 144], [13660148, 170], [13660324, 168], [13660496, 186], [13660688, 46], [13660736, 70], [13660812, 54], [13660876, 14], [13660892, 14], [13660912, 4], [13660916, 108], [13661028, 54], [13661088, 210], [13661308, 88], [13661400, 42], [13661452, 164], [13661620, 222], [13661852, 222], [13662084, 232], [13662328, 232], [13662568, 284], [13662860, 328], [13663196, 328], [13663532, 4], [13663536, 14], [13663556, 50], [13663608, 148], [13663760, 262], [13664024, 54], [13664080, 60], [13664144, 154], [13664300, 90], [13664400, 158], [13664568, 130], [13664716, 100], [13664816, 4], [13664820, 70], [13664892, 196], [13665096, 196], [13665300, 84], [13665388, 1072], [13666472, 796], [13667280, 1068], [13668360, 582], [13668948, 152], [13669104, 674], [13669784, 322], [13670112, 102], [13670392, 4], [13670396, 178], [13670576, 180], [13670760, 358], [13671128, 160], [13671296, 278], [13671584, 190], [13671776, 196], [13671972, 118], [13672096, 68], [13672164, 10], [13672176, 36], [13672216, 790], [13673016, 802], [13673828, 784], [13674620, 854], [13675484, 848], [13676336, 14], [13676356, 764], [13677128, 784], [13677920, 696], [13678620, 754], [13679380, 754], [13680136, 100], [13680240, 82], [13680324, 96], [13680424, 138], [13680568, 48], [13680616, 48], [13680664, 30], [13680700, 48], [13680748, 48], [13681952, 54], [13682016, 56], [13682080, 56], [13682144, 54], [13682208, 220], [13682436, 90], [13682536, 44], [13682580, 10], [13682596, 74], [13682672, 314], [13682992, 1926], [13684924, 56], [13684980, 32], [13685012, 32], [13685044, 32], [13685076, 26], [13685104, 72], [13685176, 176], [13685356, 32], [13685388, 32], [13685420, 6950], [13693204, 328], [13693532, 80], [13693612, 88], [13693700, 276], [13693976, 164], [13694144, 166], [13694316, 216], [13694536, 90], [13694632, 90], [13694724, 90], [13694820, 220], [13695040, 100], [13695144, 90], [13695236, 86], [13695328, 182], [13695516, 344], [13695868, 106], [13695980, 304], [13696284, 246], [13696532, 148], [13696684, 136], [13696820, 66], [13696892, 176], [13697068, 124], [13697192, 48], [13697240, 48], [13697292, 70], [13697364, 222], [13697588, 78], [13697668, 48], [13697720, 58], [13697780, 58], [13697844, 106], [13697952, 110], [13698068, 134], [13698208, 66], [13698280, 300], [13698588, 248], [13698840, 16], [13698864, 4], [13698868, 14], [13698884, 44], [13698936, 54], [13699000, 4], [13699004, 14], [13699024, 4], [13699028, 14], [13699048, 4], [13699052, 14], [13699072, 50], [13699124, 16], [13699144, 58], [13699212, 58], [13699280, 56], [13699344, 58], [13699416, 24], [13699440, 24], [13699464, 22], [13699488, 24], [13699512, 24], [13699536, 24], [13699560, 24], [13699584, 22], [13699608, 22], [13699632, 22], [13699656, 22], [13699680, 22], [13699704, 62], [13699768, 34], [13699812, 24], [13699836, 24], [13699860, 22], [13699888, 18], [13699912, 346], [13700360, 236], [13700660, 316], [13701224, 54], [13701288, 54], [13701352, 4], [13701356, 88], [13701452, 50], [13701512, 64], [13701576, 110], [13701688, 98], [13701788, 72], [13701860, 98], [13701960, 84], [13702048, 576], [13702628, 110], [13702768, 58], [13702828, 64], [13702892, 66], [13702964, 204], [13703172, 748], [13703936, 228], [13704164, 228], [13704396, 86], [13704484, 10], [13704500, 10], [13704516, 56], [13704580, 58], [13704652, 4], [13704656, 18], [13704676, 58], [13704744, 4], [13704748, 18], [13704768, 56], [13704828, 58], [13704896, 56], [13704956, 58], [13705024, 58], [13705092, 4], [13705096, 18], [13705116, 4], [13705120, 18], [13705140, 4], [13705144, 18], [13705164, 4], [13705168, 18], [13705192, 18], [13705212, 4], [13705216, 18], [13705236, 4], [13705240, 18], [13705260, 4], [13705264, 18], [13705284, 4], [13705288, 18], [13705308, 4], [13705312, 18], [13705332, 4], [13705336, 18], [13705356, 4], [13705360, 18], [13705380, 4], [13705384, 18], [13705408, 4], [13705412, 18], [13705432, 4], [13705436, 18], [13705456, 4], [13705460, 18], [13705484, 4], [13705488, 18], [13705512, 18], [13705532, 20], [13705556, 22], [13705592, 6], [13705598, 12], [13705610, 36], [13705646, 6], [13705652, 38], [13705700, 10], [13705716, 36], [13705752, 78], [13705832, 30], [13705868, 6], [13705874, 36], [13705910, 6], [13705916, 36], [13705952, 6], [13705958, 36], [13705994, 6], [13706000, 36], [13706036, 6], [13706042, 36], [13706078, 6], [13706084, 36], [13706120, 6], [13706126, 36], [13706162, 6], [13706168, 36], [13706204, 6], [13706210, 46], [13706256, 6], [13706262, 36], [13706298, 6], [13706304, 32], [13706336, 6], [13706344, 32], [13706376, 6], [13706384, 32], [13706416, 6], [13706424, 32], [13706456, 6], [13706462, 36], [13706498, 6], [13706504, 32], [13706536, 6], [13706544, 32], [13706580, 58], [13706652, 6], [13706658, 36], [13706696, 56], [13706760, 6], [13706768, 32], [13706800, 6], [13706808, 32], [13706844, 6], [13706850, 36], [13706888, 80], [13706968, 30], [13707004, 8], [13707012, 166], [13707180, 124], [13707304, 68], [13707372, 216], [13707592, 98], [13707732, 54], [13707796, 28], [13707828, 22], [13707864, 54], [13707928, 54], [13707992, 44], [13708040, 44], [13708088, 44], [13708136, 44], [13708184, 44], [13708232, 44], [13708280, 44], [13708328, 34], [13708364, 14], [13708384, 32], [13708428, 30], [13708460, 34], [13708496, 64], [13708560, 58], [13708620, 100], [13708720, 54], [13708920, 18], [13708944, 52], [13708996, 656], [13709656, 28], [13709684, 102], [13709788, 28], [13709816, 78], [13709896, 96], [13709992, 152], [13710144, 374], [13710532, 178], [13710716, 70], [13711712, 14], [13711732, 110], [13711844, 110], [13711956, 110], [13712068, 62], [13712132, 110], [13712244, 130], [13712376, 110], [13712488, 110], [13712604, 66], [13712676, 110], [13712796, 110], [13712916, 110], [13713036, 62], [13713104, 112], [13713224, 136], [13713364, 78], [13713448, 128], [13713580, 110], [13713700, 30], [13713730, 30], [13713760, 30], [13713790, 30], [13713820, 30], [13713850, 30], [13713880, 34], [13713920, 54], [13713984, 112], [13714108, 40], [13714152, 88], [13714248, 58], [13714316, 354], [13714704, 58], [13714772, 34], [13714808, 12], [13714820, 46], [13714868, 76], [13714952, 60], [13715020, 20], [13715040, 136], [13715176, 46], [13715224, 42], [13715268, 124], [13715400, 14], [13715414, 4], [13715420, 74], [13715496, 12], [13715508, 76], [13715584, 198], [13715784, 242], [13716044, 56], [13716104, 26], [13716132, 236], [13716368, 34], [13716408, 26], [13716436, 146], [13716584, 26], [13716612, 74], [13716688, 148], [13716848, 6], [13716860, 6], [13716872, 680], [13717988, 72], [13718060, 62], [13718124, 88], [13718212, 12], [13718224, 86], [13718312, 112], [13718428, 74], [13718504, 42], [13718546, 106], [13718652, 194], [13718860, 120], [13718984, 88], [13719080, 38], [13719120, 78], [13719204, 26], [13719232, 12], [13719244, 4], [13719248, 36], [13719288, 20], [13719316, 60], [13719380, 88], [13719484, 28], [13719516, 204], [13719724, 22], [13719748, 550], [13720312, 200], [13720524, 14], [13720540, 44], [13720588, 14], [13720602, 8], [13720612, 46], [13720660, 30], [13720696, 30], [13720732, 46], [13720784, 30], [13720820, 42], [13720868, 30], [13720904, 30], [13720936, 30], [13720972, 32], [13721004, 32], [13721036, 32], [13721072, 18], [13721090, 18], [13721108, 82], [13721190, 38], [13721228, 84], [13721316, 120], [13721452, 88], [13721540, 18], [13721560, 18], [13721584, 178], [13721764, 90], [13721856, 178], [13722044, 178], [13722256, 48], [13722304, 48], [13722352, 48], [13722416, 66], [13722500, 54], [13722564, 4], [13722568, 202], [13722804, 126], [13722964, 100], [13723068, 126], [13723196, 108], [13723308, 202], [13723528, 162], [13723708, 126], [13723860, 90], [13723976, 106], [13724092, 16], [13724116, 72], [13724188, 66], [13724256, 66], [13724324, 66], [13724396, 22], [13724420, 56], [13724480, 58], [13724548, 56], [13724608, 58], [13724676, 58], [13724740, 58], [13724808, 56], [13724868, 58], [13724936, 56], [13724996, 58], [13725064, 56], [13725124, 58], [13725192, 40], [13725232, 4], [13725236, 4], [13725240, 6], [13725246, 4], [13725252, 90], [13725348, 4], [13725352, 58], [13725420, 4], [13725424, 4], [13725428, 6], [13725434, 30], [13725464, 98], [13725568, 4], [13725572, 78], [13725660, 18], [13725678, 4], [13725682, 6], [13725688, 18], [13725708, 98], [13725812, 4], [13725816, 4], [13725820, 4], [13725824, 6], [13725830, 4], [13725836, 98], [13725940, 4], [13725944, 4], [13725948, 4], [13725952, 6], [13725958, 4], [13725964, 98], [13726068, 4], [13726072, 4], [13726076, 4], [13726080, 4], [13726084, 4], [13726088, 6], [13726094, 4], [13726098, 4], [13726102, 4], [13726106, 4], [13726110, 4], [13726116, 326], [13726456, 4], [13726460, 4], [13726464, 4], [13726468, 4], [13726472, 4], [13726476, 6], [13726482, 4], [13726486, 4], [13726490, 4], [13726494, 4], [13726498, 4], [13726502, 6], [13726508, 4], [13726512, 4], [13726516, 304], [13726824, 4], [13726828, 4], [13726832, 4], [13726836, 4], [13726840, 4], [13726844, 6], [13726850, 4], [13726854, 4], [13726858, 4], [13726862, 4], [13726866, 4], [13726870, 6], [13726876, 4], [13726880, 4], [13726884, 4], [13726888, 4], [13726892, 4], [13726896, 304], [13727204, 4], [13727208, 4], [13727212, 4], [13727216, 4], [13727220, 4], [13727224, 6], [13727230, 4], [13727234, 4], [13727238, 4], [13727242, 4], [13727246, 4], [13727250, 6], [13727256, 4], [13727260, 4], [13727264, 256], [13727528, 4], [13727532, 4], [13727536, 4], [13727540, 4], [13727544, 4], [13727548, 4], [13727552, 4], [13727556, 4], [13727560, 4], [13727564, 4], [13727568, 4], [13727572, 6], [13727578, 4], [13727582, 4], [13727588, 334], [13727944, 4], [13727948, 4], [13727952, 4], [13727956, 4], [13727960, 4], [13727964, 4], [13727968, 4], [13727972, 4], [13727976, 4], [13727980, 4], [13727984, 4], [13727988, 6], [13727994, 4], [13727998, 4], [13728002, 4], [13728006, 4], [13728010, 4], [13728016, 254], [13728276, 4], [13728280, 4], [13728284, 4], [13728288, 4], [13728292, 4], [13728296, 6], [13728302, 4], [13728306, 4], [13728310, 4], [13728314, 4], [13728318, 4], [13728322, 6], [13728328, 4], [13728332, 4], [13728336, 256], [13728600, 4], [13728604, 4], [13728608, 4], [13728612, 4], [13728616, 4], [13728620, 4], [13728624, 4], [13728628, 78], [13728708, 52], [13728764, 14], [13728780, 38], [13728824, 16], [13728840, 74], [13728916, 128], [13729048, 4], [13729052, 4], [13729056, 46], [13729104, 82], [13729188, 44], [13729232, 44], [13730120, 78], [13730204, 94], [13730304, 94], [13730404, 206], [13730612, 124], [13730736, 74], [13730820, 116], [13730936, 76], [13731012, 74], [13731096, 34], [13731132, 124], [13731256, 48], [13731308, 106], [13731424, 280], [13731712, 28], [13731744, 22], [13731780, 88], [13731880, 40], [13731920, 34], [13731960, 30], [13731992, 36], [13732028, 30], [13732064, 6], [13732072, 48], [13732124, 96], [13732228, 218], [13732448, 4], [13732452, 158], [13732624, 4], [13732628, 12], [13732640, 6], [13732648, 6], [13732656, 6], [13732664, 6], [13732708, 884], [13734228, 12], [13734240, 12], [13734252, 12], [13734264, 12], [13734276, 12], [13734288, 12], [13734300, 12], [13734312, 56], [13734368, 12], [13734392, 12], [13734404, 38], [13734444, 12], [13734460, 136], [13734596, 98], [13734696, 106], [13734804, 106], [13734912, 106], [13735020, 136], [13735156, 48], [13735204, 106], [13735316, 106], [13735424, 106], [13735536, 106], [13735652, 60], [13735716, 108], [13735832, 124], [13735964, 20], [13735984, 10], [13735994, 8], [13736004, 36]]} \ No newline at end of file
diff --git a/fw/ta_fieldflow2.py b/fw/ta_fieldflow2.py
new file mode 100644
index 0000000..6cb2ca1
--- /dev/null
+++ b/fw/ta_fieldflow2.py
@@ -0,0 +1,276 @@
+#!/usr/bin/env python3
+"""Field-level length audit, v2 — decoding ONLY inside IDA function boundaries.
+
+v1 (`ta_fieldflow_audit.py`) is retracted: its positive control passed because a
+resynchronising linear sweep decoded literal pools and ARM regions as Thumb, and the store
+regex matched inside that garbage. The "writers" it reported for HDCP's field `+0x38` were a
+`movw`, a `mov`, an `add` and a `pop`.
+
+v2 removes the cause rather than patching symptoms:
+
+ * function boundaries come from IDA (`list_funcs` on the module's database), so every
+ instruction decoded starts at a real function entry and runs to that function's end;
+ * every candidate writer is RE-VERIFIED: the address must disassemble, inside its own
+ function, to an instruction whose mnemonic really begins with `str`, and its operand form
+ must really be `[base, #imm]`. Anything else is dropped and counted as a rejected match,
+ which is reported so the rejection rate is visible rather than silent.
+
+Same question as v1: for a copy whose length is `LOAD [base+off]`, is that field ever written
+from an unbounded value?
+
+CONTROLS (both must hold, and the positive must now hold for the RIGHT reason):
+ POSITIVE hdcp `0x402cde` reported, and its writers must be verified real stores
+ NEGATIVE sys_drv `sub_E0D6B4` not reported (its writer bounds the value)
+
+Usage:
+ ./ta_fieldflow2.py --cache # pull function boundaries from IDA once
+ ./ta_fieldflow2.py --selftest
+ ./ta_fieldflow2.py --module sys_drv|asd|hdcp
+"""
+from __future__ import annotations
+
+import argparse
+import json
+import re
+import sys
+from pathlib import Path
+
+import capstone as cs
+
+HERE = Path(__file__).resolve().parent
+REPO = HERE.parent
+sys.path.insert(0, str(Path.home() / "dev" / "ida-tui-maybe"))
+THUMB = cs.Cs(cs.CS_ARCH_ARM, cs.CS_MODE_THUMB)
+ARM = cs.Cs(cs.CS_ARCH_ARM, cs.CS_MODE_ARM)
+CACHE = HERE / "audits" / "fnbounds.json"
+
+MODULES = {
+ "hdcp": ("psp_out/hdcp_code.bin", 0x400100, "psp_out/hdcp2.elf"),
+ "sys_drv": ("psp_out/sys_drv_code.bin", 0xE00100, "psp_out/sys_drv2.elf"),
+ "asd": ("psp_out/asd_code.bin", 0xD00100, "psp_out/asd2.elf"),
+}
+
+LOADF = re.compile(r"^(\w+),\s*\[(\w+),\s*#(0x[0-9a-f]+|\d+)\]$")
+STOREF = re.compile(r"^(\w+),\s*\[(\w+),\s*#(0x[0-9a-f]+|\d+)\]$")
+
+
+def pull_bounds():
+ from idatui import remote_ops
+ from idatui.nexus_client import NexusClient
+ out = {}
+ for name, (_b, _base, elf) in MODULES.items():
+ c = NexusClient(str(REPO / elf))
+ c.connect(timeout=900)
+ raw, off = [], 0
+ while True:
+ rr = c.call(remote_ops.list_funcs, queries=[{"count": 500, "offset": off}])
+ blk = (rr.get("result") or [{}])[0]
+ raw += blk.get("data") or []
+ total = int(blk.get("total") or 0)
+ off = int(blk.get("next_offset") or 0)
+ if not off or len(raw) >= total:
+ break
+ out[name] = [[int(str(i["addr"]), 16), int(i.get("size") or 0)] for i in raw
+ if int(i.get("size") or 0) > 0]
+ print(" %-8s %d functions" % (name, len(out[name])))
+ c.close()
+ CACHE.parent.mkdir(exist_ok=True)
+ CACHE.write_text(json.dumps(out))
+ print("cached -> %s" % CACHE)
+
+
+def decode(b: bytes, base: int, fns: list) -> tuple[list, dict]:
+ """Instructions decoded strictly within function extents, plus an address index."""
+ ins = []
+ for ea, size in fns:
+ off = ea - base
+ if off < 0 or size <= 0 or off + size > len(b):
+ continue
+ ins.extend(THUMB.disasm(b[off:off + size], ea))
+ ins.sort(key=lambda i: i.address)
+ return ins, {i.address: n for n, i in enumerate(ins)}
+
+
+def fn_range(fns: list, addr: int):
+ for ea, size in fns:
+ if ea <= addr < ea + size:
+ return ea, size
+ return None
+
+
+def bounded_here(ins, lo, hi, reg) -> bool:
+ """Bounded = compared, masked, OR assigned a constant.
+
+ The third case was missing in v1 and produced false "unbounded writers": SYS_DRV's
+ `movs r2,#0 ; str.w r2,[r1,#0x88]` stores a constant zero, which is as bounded as a value
+ can be. Walk backwards for the nearest definition of reg first.
+ """
+ for k in range(hi - 1, lo - 1, -1):
+ i = ins[k]
+ m = re.match(r"(%s),\s*(.+)$" % re.escape(reg), i.op_str or "")
+ if not m or i.mnemonic.startswith(("cmp", "str", "push", "tst", "b")):
+ continue
+ if re.fullmatch(r"#(0x[0-9a-f]+|\d+)", m.group(2).strip()) and \
+ i.mnemonic.startswith(("mov", "movs", "movw")):
+ return True # defined by an immediate
+ break # nearest definition is not an immediate
+ chain = {reg}
+ for k in range(lo, hi):
+ i = ins[k]
+ ops = i.op_str or ""
+ if i.mnemonic.startswith(("cmp", "cmn", "tst", "cbz", "cbnz", "subs")):
+ if any(re.search(r"\b%s\b" % r, ops) for r in chain):
+ return True
+ if i.mnemonic.startswith(("and", "ubfx", "uxtb", "uxth", "bic")):
+ m = re.match(r"(\w+)", ops)
+ if m and m.group(1) in chain:
+ return True
+ m = re.match(r"(\w+),\s*(\w+)$", ops)
+ if m and m.group(2) in chain and i.mnemonic.startswith("mov"):
+ chain.add(m.group(1))
+ return False
+
+
+def field_of(ins, lo, at, reg):
+ cur = reg
+ for _ in range(5):
+ for k in range(at - 1, lo - 1, -1):
+ i = ins[k]
+ m = re.match(r"(%s),\s*(.+)$" % re.escape(cur), i.op_str or "")
+ if not m or i.mnemonic.startswith(("cmp", "str", "push", "tst", "b")):
+ continue
+ if i.mnemonic.startswith("ldr"):
+ mm = LOADF.match(i.op_str or "")
+ return int(mm.group(3), 0) if mm else None
+ rhs = m.group(2).strip()
+ m2 = re.match(r"(r\d+|sb|sl|fp|ip)$", rhs)
+ if m2:
+ cur, at = m2.group(1), k
+ break
+ m3 = re.match(r"(r\d+|sb|sl|fp|ip)\b", rhs)
+ if m3 and i.mnemonic.startswith(("add", "sub", "mul", "lsl", "orr", "mla")):
+ cur, at = m3.group(1), k
+ break
+ return None
+ else:
+ return None
+ return None
+
+
+def helpers_of(b, ins, base):
+ out = set()
+ for i in ins:
+ if i.mnemonic == "blx" and (i.op_str or "").startswith("#"):
+ t = int(i.op_str[1:], 16)
+ o = t - base
+ if not (0 <= o < len(b) - 16):
+ continue
+ a = list(ARM.disasm(b[o:o + 0x60], t))
+ if any(x.mnemonic.startswith(("cdp", "mcr", "mrc", "stc", "ldc")) for x in a):
+ continue
+ if any(x.mnemonic.startswith(("ldr", "ldm")) for x in a) and \
+ any(x.mnemonic.startswith(("str", "stm")) for x in a):
+ out.add(t)
+ return out
+
+
+def analyse(name: str, verbose=False):
+ if name in MODULES:
+ bpath, base, _elf = MODULES[name]
+ b = (REPO / bpath).read_bytes()
+ fns = json.loads(CACHE.read_text())[name]
+ else:
+ # a TA prefix: boundaries already exist in fw/libdumps (from IDA), body via syms meta
+ base = 0x400100
+ meta = json.loads((HERE / "syms" / ("%s.meta.json" % name)).read_text())
+ bp = Path(meta["path"])
+ b = (bp if bp.is_absolute() else REPO / bp).read_bytes()
+ fns = [[f["ea"], f.get("size", 0)]
+ for f in json.loads((HERE / "libdumps" / ("%s.json" % name)).read_text())
+ if f.get("size", 0) > 0]
+ ins, byaddr = decode(b, base, fns)
+ helpers = helpers_of(b, ins, base)
+ starts = {ea for ea, _ in fns}
+
+ def lo_of(n):
+ a = ins[n].address
+ r = fn_range(fns, a)
+ return byaddr.get(r[0], 0) if r else 0
+
+ # index every VERIFIED field store: address must decode to a real str [base,#imm]
+ stores = {}
+ rejected = 0
+ for n, i in enumerate(ins):
+ if not i.mnemonic.startswith("str"):
+ continue
+ m = STOREF.match(i.op_str or "")
+ if not m:
+ rejected += 1
+ continue
+ if m.group(2) in ("sp", "fp"):
+ continue # stack slot, not a struct field
+ stores.setdefault(int(m.group(3), 0), []).append((n, m.group(1)))
+ if verbose:
+ print(" verified field stores: %d offsets; %d str-form rejects"
+ % (len(stores), rejected))
+
+ findings = []
+ for n, i in enumerate(ins):
+ if not (i.mnemonic in ("blx", "bl") and (i.op_str or "").startswith("#")):
+ continue
+ if int(i.op_str[1:], 16) not in helpers:
+ continue
+ lo = lo_of(n)
+ off = field_of(ins, lo, n, "r2")
+ if off is None:
+ continue
+ bad = []
+ for (wn, src) in stores.get(off, []):
+ wlo = lo_of(wn)
+ if not bounded_here(ins, wlo, wn, src):
+ bad.append((ins[wn].address, src))
+ if bad:
+ findings.append((i.address, ins[lo].address, off, len(stores.get(off, [])), bad[:4]))
+ return findings
+
+
+def main():
+ ap = argparse.ArgumentParser()
+ ap.add_argument("--cache", action="store_true")
+ ap.add_argument("--selftest", action="store_true")
+ ap.add_argument("--module")
+ a = ap.parse_args()
+
+ if a.cache:
+ pull_bounds()
+ return 0
+ if not CACHE.exists():
+ print("run --cache first"); return 2
+
+ if a.selftest:
+ hd = analyse("hdcp", verbose=True)
+ pos = [f for f in hd if f[0] == 0x402CDE]
+ print("SELFTEST v2 (boundary-based, writers verified)")
+ print(" POSITIVE hdcp 0x402cde reported: %s" % ("yes" if pos else "NO"))
+ if pos:
+ print(" field +%#x, writers: %s"
+ % (pos[0][2], [(hex(w), s) for w, s in pos[0][4]]))
+ sd = analyse("sys_drv")
+ neg = [f for f in sd if f[0] in (0xE0D6C4, 0xE0D6D8)]
+ print(" NEGATIVE sys_drv sub_E0D6B4 clean: %s" % ("yes" if not neg else "NO"))
+ ok = bool(pos) and not neg
+ print("\nverdict: %s" % ("TRUSTWORTHY" if ok else "NOT trustworthy"))
+ return 0 if ok else 1
+
+ res = analyse(a.module, verbose=True)
+ print("=== %s: %d site(s)" % (a.module, len(res)))
+ for site, fn, off, nw, bad in res:
+ print(" copy @%#x (fn %#x) len <- field +%#x ; %d verified writer(s)"
+ % (site, fn, off, nw))
+ for wa, src in bad:
+ print(" unbounded writer @%#x (src %s)" % (wa, src))
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())