// // ssl_set_masks from 0x9ad900 to 0x9ada38 (312 bytes) // // 3 xrefs: // > ssl3_choose_cipher @ 0x9a3200 // > ssl_get_server_send_pkey @ 0x9adad0 // > @ 0x747bc // // 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:06:54 +0000 // unsigned int __fastcall ssl_set_masks(unsigned int result) { _DWORD *v1; // r1 _DWORD *v2; // r7 _BOOL4 v3; // r8 int v4; // r5 int v5; // r3 int v6; // r4 int v7; // r6 int v8; // r4 unsigned int v9; // r8 int v10; // r3 v1 = *(_DWORD **)(result + 200); v2 = *(_DWORD **)(result + 104); if ( v1 ) { v3 = v1[1] || v1[2] || v1[3] != 0; v4 = v1[35]; v5 = v2[164] & 1; if ( v4 && (v4 = v1[36]) != 0 ) { v4 = 128; v6 = 16; } else { v6 = v4; } if ( v1[30] && v1[31] ) { v4 = 128; v6 = 16; } if ( v1[25] && v1[26] ) { v4 |= 0x20u; v6 = 16; } if ( v5 ) v6 |= 1u; if ( v3 ) v6 |= 2u; if ( v2[165] & 2 | v5 ) v4 |= 1u; if ( (v2[166] & 2) != 0 ) v4 |= 2u; v7 = v4 | 4; if ( (v2[167] & 1) != 0 ) { v9 = result; result = X509_get_key_usage(v1[20]); v10 = v2[167]; v2 = *(_DWORD **)(v9 + 104); if ( (((v10 & 2) != 0) & (result >> 7)) != 0 ) v7 = v4 | 0xC; } if ( (v6 & 1) != 0 ) v8 = v6 | 0x4C; else v8 = v6 | 0xC; if ( (v8 & 2) != 0 ) v8 |= 0x100u; v2[171] = v8 | 0x80; v2[172] = v7 | 0x10; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source