// // DHparams_dup from 0x1004c08 to 0x1004d54 (332 bytes) // // 2 xrefs: // > sub_1004D54 @ 0x1005364 // > @ 0x101680 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:15:56 +0000 // __int64 __fastcall DHparams_dup(__int64 a1) { __int64 v2; // x19 __int64 v3; // x0 __int64 v4; // x22 unsigned __int64 *v5; // x20 __int64 v6; // x0 unsigned __int64 *v7; // x20 __int64 v9; // x0 unsigned __int64 *v10; // x20 __int64 v11; // x0 unsigned __int64 *v12; // x20 __int64 v13; // x0 __int64 v14; // x0 v2 = DH_new(); if ( !v2 ) return 0; v3 = *(_QWORD *)(a1 + 8); v4 = *(_QWORD *)(a1 + 64); if ( v3 ) { v5 = BN_dup(v3); if ( !v5 ) goto LABEL_16; BN_free(*(_QWORD *)(v2 + 8)); *(_QWORD *)(v2 + 8) = v5; v6 = *(_QWORD *)(a1 + 16); if ( v6 ) goto LABEL_5; LABEL_11: v7 = (unsigned __int64 *)v6; goto LABEL_6; } BN_free(*(_QWORD *)(v2 + 8)); *(_QWORD *)(v2 + 8) = 0; v6 = *(_QWORD *)(a1 + 16); if ( !v6 ) goto LABEL_11; LABEL_5: v7 = BN_dup(v6); if ( !v7 ) goto LABEL_16; LABEL_6: BN_free(*(_QWORD *)(v2 + 16)); *(_QWORD *)(v2 + 16) = v7; if ( v4 ) { v9 = *(_QWORD *)(a1 + 64); if ( !v9 ) { v10 = nullptr; LABEL_14: BN_free(*(_QWORD *)(v2 + 64)); *(_QWORD *)(v2 + 64) = v10; v11 = *(_QWORD *)(a1 + 72); if ( v11 ) { v12 = BN_dup(v11); if ( !v12 ) goto LABEL_16; } else { v12 = nullptr; } BN_free(*(_QWORD *)(v2 + 72)); *(_QWORD *)(v2 + 72) = v12; CRYPTO_free(*(_QWORD *)(v2 + 80), "crypto/dh/dh_ameth.c", 401); *(_QWORD *)(v2 + 80) = 0; *(_DWORD *)(v2 + 88) = 0; v13 = *(_QWORD *)(a1 + 80); if ( !v13 ) return v2; v14 = CRYPTO_memdup(v13, *(int *)(a1 + 88), "crypto/dh/dh_ameth.c", 405); *(_QWORD *)(v2 + 80) = v14; if ( v14 ) { *(_DWORD *)(v2 + 88) = *(_DWORD *)(a1 + 88); return v2; } goto LABEL_16; } v10 = BN_dup(v9); if ( v10 ) goto LABEL_14; LABEL_16: DH_free(v2); return 0; } *(_QWORD *)(v2 + 24) = *(_QWORD *)(a1 + 24); return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source