// // sub_82C184 from 0x82c184 to 0x82c344 (448 bytes) // // 2 xrefs: // > sub_82C350 @ 0x82c3b4 // > sub_82C9FC @ 0x82cf0c // // 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_82C184(int a1) { int v2; // r6 int v3; // r0 int v4; // r1 _DWORD *v5; // r4 int v6; // r0 _DWORD **v7; // r0 int v9; // r4 int v10; // [sp+8h] [bp-10h] int v11; // [sp+Ch] [bp-Ch] int v12; // [sp+10h] [bp-8h] BYREF int v13; // [sp+14h] [bp-4h] v12 = 0; v2 = EVP_PKEY_CTX_get0_pkey(a1); if ( EVP_PKEY_CTX_ctrl(a1, -1, 248) <= 0 ) goto LABEL_16; if ( EVP_PKEY_CTX_ctrl(a1, 6, 1016) <= 0 ) goto LABEL_16; v3 = EVP_PKEY_CTX_ctrl(a1, 6, 24); if ( !v3 ) goto LABEL_16; if ( v13 == -1 ) { v3 = EVP_MD_size(v10); v13 = v3; } else if ( v13 == -2 ) { v9 = EVP_PKEY_size(v2); v13 = v9 - EVP_MD_size(v10) - 2; v3 = EVP_PKEY_bits(v2) - 1; if ( (v3 & 7) == 0 ) --v13; } v5 = (_DWORD *)RSA_PSS_PARAMS_new(v3, v4); if ( !v5 ) { LABEL_16: v5 = nullptr; goto LABEL_17; } if ( v13 != 20 ) { v6 = ASN1_INTEGER_new(); v5[2] = v6; if ( !v6 || !ASN1_INTEGER_set(v6, v13) ) goto LABEL_17; } if ( EVP_MD_type(v10) != 64 ) { v7 = (_DWORD **)X509_ALGOR_new(); *v5 = v7; if ( !v7 ) goto LABEL_17; X509_ALGOR_set_md(v7, v10); } if ( sub_82C0A8(v5 + 1, v11) && ASN1_item_pack(v5, &RSA_PSS_PARAMS_it, &v12) ) { RSA_PSS_PARAMS_free(v5); return v12; } LABEL_17: RSA_PSS_PARAMS_free(v5); ASN1_STRING_free(v12); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source