// // tls12_copy_sigalgs from 0x9c5e7c to 0x9c6048 (460 bytes) // // 3 xrefs: // > tls_construct_certificate_request @ 0x9bfae4 // > ssl_add_clienthello_tlsext @ 0x9c6580 // > @ 0x7708c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:07:06 +0000 // _BYTE *__fastcall tls12_copy_sigalgs(int a1, _BYTE *a2, int a3, unsigned int a4) { _BYTE *v8; // r5 int v9; // r10 unsigned int v10; // r4 int v11; // r3 int *v13; // r11 unsigned int v14; // r3 if ( a4 ) { v8 = a2; v9 = a3; v10 = 0; while ( 1 ) { v11 = *(unsigned __int8 *)(a3 + v10); if ( *(_BYTE *)(a3 + v10) ) { switch ( v11 ) { case 1: v13 = dword_C51A04; LABEL_16: if ( ssl_md(v13[2]) ) { v14 = *(unsigned __int8 *)(v9 + 1); if ( *(_BYTE *)(v9 + 1) ) { if ( v14 <= 3 || v14 - 237 <= 2 ) { if ( ssl_security(a1, 327691) ) { *v8 = *(_BYTE *)(a3 + v10); v8[1] = *(_BYTE *)(v9 + 1); v8 += 2; } } } } break; case 2: v13 = &dword_C51A14; goto LABEL_16; case 3: v13 = &dword_C51A24; goto LABEL_16; case 4: v13 = &dword_C51A34; goto LABEL_16; case 5: v13 = &dword_C51A44; goto LABEL_16; case 6: v13 = &dword_C51A54; goto LABEL_16; case 237: v13 = &dword_C51A64; goto LABEL_16; case 238: v13 = &dword_C51A74; goto LABEL_16; case 239: v13 = &dword_C51A84; goto LABEL_16; } } v10 += 2; v9 += 2; if ( a4 <= v10 ) return (_BYTE *)(v8 - a2); } } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source