// // sub_85B54C from 0x85b54c to 0x85b6f0 (420 bytes) // // 1 xrefs: // > @ 0xab4318 // // 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 // _DWORD *__fastcall sub_85B54C(int a1, _DWORD *a2, char *a3) { int v6; // r4 int v7; // r3 int v8; // r3 int v9; // r6 int v10; // r7 void *v11; // r0 int v13; // r3 int v14; // [sp+Ch] [bp-50h] BYREF int v15; // [sp+10h] [bp-4Ch] BYREF int v16; // [sp+14h] [bp-48h] BYREF _BYTE v17[68]; // [sp+18h] [bp-44h] BYREF if ( strcmp(a3, "hash") ) return s2i_ASN1_OCTET_STRING(a1, (int)a2, a3); v6 = ASN1_OCTET_STRING_new(); if ( v6 ) { if ( a2 ) { if ( *a2 == 1 ) return (_DWORD *)v6; v7 = a2[3]; if ( v7 ) { v8 = *(_DWORD *)(v7 + 20); goto LABEL_8; } v13 = a2[2]; if ( v13 ) { v8 = *(_DWORD *)(v13 + 44); LABEL_8: if ( v8 ) { X509_PUBKEY_get0_param(nullptr, &v14, &v15, nullptr, v8); v9 = v14; v10 = v15; v11 = EVP_sha1(); if ( EVP_Digest(v9, v10, (int)v17, &v16, (int)v11, nullptr) ) { if ( ASN1_OCTET_STRING_set(v6, v17, v16) ) return (_DWORD *)v6; ERR_put_error(34, 115, 65, (int)"crypto/x509v3/v3_skey.c", 97); } } else { ERR_put_error(34, 115, 114, (int)"crypto/x509v3/v3_skey.c", 87); } goto LABEL_14; } } ERR_put_error(34, 115, 114, (int)"crypto/x509v3/v3_skey.c", 77); LABEL_14: ASN1_OCTET_STRING_free(v6); return nullptr; } ERR_put_error(34, 115, 65, (int)"crypto/x509v3/v3_skey.c", 69); return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source