// // sub_9F38A8 from 0x9f38a8 to 0x9f3bb4 (780 bytes) // // 2 xrefs: // > @ 0xc77b9c // > @ 0xc77c0c // // 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:31 +0000 // int __fastcall sub_9F38A8(int a1, int a2, int a3) { _DWORD *v3; // r4 int v4; // r8 bool v5; // zf int v6; // r9 int v9; // r0 int v10; // r7 int v11; // r2 int v13; // r2 int v14; // r2 int v15; // r6 int v16; // r2 const char *v17; // r3 int v18; // r1 int v19; // r2 int v20; // [sp+Ch] [bp-8h] v3 = *(_DWORD **)(a2 + 20); v4 = v3[5]; v5 = v4 == 0; if ( v4 ) v5 = v3[2] == 0; v6 = v5; if ( v5 ) { v11 = 67; goto LABEL_11; } BIO_indent(a1, a3, 128); v9 = BN_num_bits((_DWORD *)v3[2]); if ( BIO_printf(a1, "%s: (%d bit)\n", "DH Public-Key", v9) <= 0 || (v10 = a3 + 4, !ASN1_bn_print(a1, "private-key:", v6, v6, a3 + 4)) || !ASN1_bn_print(a1, "public-key:", v4, v6, a3 + 4) || !ASN1_bn_print(a1, "prime:", v3[2], v6, a3 + 4) || !ASN1_bn_print(a1, "generator:", v3[3], v6, a3 + 4) || (v13 = v3[9]) != 0 && !ASN1_bn_print(a1, "subgroup order:", v13, v6, a3 + 4) || (v14 = v3[10]) != 0 && !ASN1_bn_print(a1, "subgroup factor:", v14, 0, a3 + 4) ) { LABEL_9: v11 = 7; LABEL_11: ERR_put_error(5, 100, v11, "crypto/dh/dh_ameth.c", 343); return 0; } if ( !v3[11] ) goto LABEL_30; BIO_indent(a1, a3 + 4, 128); v20 = a3 + 8; BIO_puts(a1, (int)"seed:"); v15 = 0; while ( 1 ) { v18 = v3[12]; if ( v15 >= v18 ) break; if ( v15 == 15 * (v15 / 15) ) { if ( BIO_puts(a1, (int)"\n") <= 0 || !BIO_indent(a1, v20, 128) ) goto LABEL_9; v18 = v3[12]; } v16 = *(unsigned __int8 *)(v3[11] + v15++); if ( v15 == v18 ) v17 = &byte_BF4ECA; else v17 = (const char *)&unk_BF54E8; if ( BIO_printf(a1, "%02x%s", v16, v17) <= 0 ) goto LABEL_9; } if ( BIO_write(a1, (int)"\n", 1) > 0 ) { LABEL_30: v19 = v3[13]; if ( !v19 || ASN1_bn_print(a1, "counter:", v19, 0, v10) ) { if ( !v3[4] ) return 1; BIO_indent(a1, v10, 128); if ( BIO_printf(a1, "recommended-private-length: %d bits\n", v3[4]) > 0 ) return 1; } goto LABEL_9; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source