// // sub_A3B67C from 0xa3b67c to 0xa3b774 (248 bytes) // // 2 xrefs: // > PKCS7_add_signed_attribute @ 0xa3d9a4 // > PKCS7_add_attribute @ 0xa3d9ac // // 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:08:11 +0000 // int __fastcall sub_A3B67C(int *a1, char *a2, int a3, int a4) { int v5; // r0 int i; // r4 int v10; // r7 int v11; // r0 int v12; // r6 int v13; // r4 int v15; // r0 v5 = *a1; if ( v5 ) { for ( i = 0; i < OPENSSL_sk_num(v5); ++i ) { v10 = OPENSSL_sk_value(*a1, i); v11 = X509_ATTRIBUTE_get0_object(); if ( OBJ_obj2nid(v11) == a2 ) { X509_ATTRIBUTE_free(v10); v12 = X509_ATTRIBUTE_create(a2, a3, a4); if ( !v12 ) return 0; v13 = OPENSSL_sk_set(*a1, i, v12); if ( v13 ) return 1; goto LABEL_13; } v5 = *a1; } } else { v15 = OPENSSL_sk_new_null(0); *a1 = v15; if ( !v15 ) return 0; } v12 = X509_ATTRIBUTE_create(a2, a3, a4); if ( !v12 ) return 0; v13 = OPENSSL_sk_push(*a1, v12); if ( v13 ) return 1; LABEL_13: X509_ATTRIBUTE_free(v12); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source