// // tls1_check_ec_tmp_key from 0x7ae878 to 0x7ae9f8 (384 bytes) // // 2 xrefs: // > ssl3_choose_cipher @ 0x78e6c8 // > @ 0x5ad4c // // 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 // bool __fastcall tls1_check_ec_tmp_key(_DWORD *a1, int a2) { int v2; // r3 int v4; // r5 _BOOL4 result; // r0 char *v6; // r3 unsigned int v7; // r2 int v8; // r12 char *v9; // r3 int v10; // r2 int v11; // r3 unsigned int v12; // r2 v2 = *(_DWORD *)(a1[50] + 16) & 0x30000; if ( !v2 ) return tls1_shared_curve(a1, 0) != 0; if ( a2 == 50380843 ) { v4 = 23; } else { if ( a2 != 50380844 ) return 0; v4 = 24; } result = 0; switch ( v2 ) { case 131072: v6 = (char *)&unk_A0CB4A; v7 = 2; break; case 196608: v6 = (char *)&unk_A0CB48; v7 = 4; break; case 65536: v6 = (char *)&unk_A0CB48; v7 = 2; break; default: v6 = (char *)a1[105]; v7 = a1[104]; if ( !v6 ) { v6 = (char *)&unk_A0CB40; v8 = 4; LABEL_15: while ( 1 ) { v9 = v6 + 2; v10 = 0; while ( *(v9 - 2) || (unsigned __int8)*(v9 - 1) != v4 ) { ++v10; v9 += 2; if ( v10 == v8 ) return 0; } if ( v10 == v8 ) return 0; if ( a1[7] ) { if ( result ) return result; v11 = a1[60]; result = 1; v12 = *(_DWORD *)(v11 + 208); v6 = *(char **)(v11 + 212); if ( (v12 & 1) != 0 ) goto LABEL_30; v8 = v12 >> 1; if ( v12 >> 1 ) continue; } return 1; } } break; } if ( (v7 & 1) != 0 ) { LABEL_30: ERR_put_error(20, 338, 68, "ssl/t1_lib.c", 291); } else { v8 = v7 >> 1; if ( v7 >> 1 ) goto LABEL_15; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source