// // sub_7F035C from 0x7f035c to 0x7f0554 (504 bytes) // // 1 xrefs: // > @ 0xab27e8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_7F035C(int a1) { int v2; // r0 _DWORD *v3; // r5 int result; // r0 _DWORD *words; // r0 unsigned int v6; // r3 _DWORD *v7; // r0 unsigned int v8; // r3 int v9; // r6 _DWORD *v10; // r5 int v11; // r3 v2 = EC_GROUP_get0_generator(a1); v3 = (_DWORD *)v2; if ( v2 ) { if ( bn_get_top(*(_DWORD *)(v2 + 4)) == 8 && bn_get_top(v3[2]) == 8 ) { words = (_DWORD *)bn_get_words(v3[1]); v6 = words[1] ^ 0x79E730D4 | *words ^ 0x18A9143C | words[2] ^ 0x5FEDB601 | words[3] ^ 0x75BA95FC | words[4] ^ 0x77622510 | words[5] ^ 0x79FB732B | words[6] ^ 0xA53755C6 | words[7] ^ 0x18905F76; if ( ((v6 - 1) & ~v6 & 0x80000000) != 0 ) { v7 = (_DWORD *)bn_get_words(v3[2]); v8 = v7[1] ^ 0xDDF25357 | *v7 ^ 0xCE95560A | v7[2] ^ 0xBA19E45C | v7[3] ^ 0x8B4AB8E4 | v7[4] ^ 0xDD21F325 | v7[5] ^ 0xD2E88688 | v7[6] ^ 0x25885D85 | v7[7] ^ 0x8571FF18; if ( ((v8 - 1) & ~v8 & 0x80000000) != 0 ) { v9 = v3[3]; v10 = (_DWORD *)bn_get_words(v9); if ( bn_get_top(v9) == 7 ) { v11 = v10[2] | v10[1] | *v10 ^ 1 | ~v10[3] | ~v10[4] | ~v10[5] | ~(v10[6] ^ 1); if ( ((v11 - 1) & ~v11) < 0 ) return 1; } } } } } if ( *(_DWORD *)(a1 + 92) != 4 ) return 0; result = *(_DWORD *)(a1 + 96); if ( result ) return 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source