// // sub_7F5BBC from 0x7f5bbc to 0x7f5dac (496 bytes) // // 1 xrefs: // > @ 0xa30fc0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_7F5BBC(int a1, int a2) { int v4; // r0 int v5; // r5 int v6; // r0 _DWORD *v7; // r3 unsigned __int8 *v8; // r7 int v9; // r4 _BOOL4 v10; // r3 int v11; // r8 void *v12; // r0 int v13; // r4 unsigned __int8 *v14; // [sp+8h] [bp-14h] BYREF int v15; // [sp+Ch] [bp-10h] BYREF _DWORD *v16; // [sp+10h] [bp-Ch] BYREF int v17; // [sp+14h] [bp-8h] BYREF if ( !PKCS8_pkey_get0(nullptr, (int *)&v14, &v15, &v16, a2) ) return 0; v4 = d2i_ASN1_OCTET_STRING(nullptr, &v14, v15); v5 = v4; if ( v4 ) { v14 = (unsigned __int8 *)ASN1_STRING_get0_data(v4); v6 = ASN1_STRING_length(v5); v7 = v16; v8 = v14; v9 = v6; v15 = v6; if ( !v16 ) goto LABEL_6; } else { v7 = v16; v14 = nullptr; v15 = 0; if ( !v16 ) { LABEL_16: ERR_put_error(16, 266, 102, "crypto/ec/ecx_meth.c", 53); v13 = 0; goto LABEL_12; } v9 = 0; v8 = nullptr; } X509_ALGOR_get0(nullptr, &v17, nullptr, v7); if ( v17 == -1 ) { LABEL_6: v10 = v8 == nullptr; if ( v9 != 32 ) v10 = 1; if ( !v10 ) { v11 = CRYPTO_zalloc(36, "crypto/ec/ecx_meth.c", 58); if ( v11 ) { v12 = (void *)CRYPTO_secure_malloc(32, "crypto/ec/ecx_meth.c", 67); v13 = (int)v12; *(_DWORD *)(v11 + 32) = v12; if ( v12 ) { memcpy(v12, v8, 0x20u); X25519_public_from_private(v11, *(_DWORD *)(v11 + 32)); EVP_PKEY_assign(a1, 1034, v11); v13 = 1; } else { ERR_put_error(16, 266, 65, "crypto/ec/ecx_meth.c", 69); CRYPTO_free(v11, "crypto/ec/ecx_meth.c", 70); } } else { v13 = 0; ERR_put_error(16, 266, 65, "crypto/ec/ecx_meth.c", 60); } goto LABEL_12; } goto LABEL_16; } ERR_put_error(16, 266, 102, "crypto/ec/ecx_meth.c", 47); v13 = 0; LABEL_12: ASN1_OCTET_STRING_free(v5); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source