// // BIO_new_mem_buf from 0xd796e4 to 0xd79788 (164 bytes) // // 4 xrefs: // > PKCS7_dataInit @ 0xdccb34 // > PKCS7_dataDecode @ 0xdcd170 // > cms_content_bio @ 0xe1f968 // > @ 0xba8e8 // // 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 // __int64 __fastcall BIO_new_mem_buf(const char *a1, int a2) { size_t v3; // x19 void *v4; // x0 __int64 result; // x0 size_t **v6; // x4 size_t *v7; // x2 int v8; // w3 size_t *v9; // x4 size_t v10; // x7 size_t v11; // x7 if ( a1 ) { v3 = a2; if ( a2 < 0 ) v3 = strlen(a1); v4 = BIO_s_mem(); result = BIO_new((__int64)v4); if ( result ) { v6 = *(size_t ***)(result + 48); v7 = *v6; v8 = *(_DWORD *)(result + 32) | 0x200; v9 = v6[1]; v7[1] = (size_t)a1; *v7 = v3; v7[2] = v3; v10 = v7[1]; *v9 = *v7; v9[1] = v10; v11 = v7[3]; v9[2] = v7[2]; v9[3] = v11; *(_DWORD *)(result + 32) = v8; *(_DWORD *)(result + 40) = 0; } } else { ERR_put_error(32, 126, 115, "crypto/bio/bss_mem.c", 81); return 0; } return result; }