// // OPENSSL_LH_strhash from 0x80c23c to 0x80c298 (92 bytes) // // 9 xrefs: // > sub_81B6E0 @ 0x81b710 // > sub_81C02C @ 0x81c070 // > sub_81C02C @ 0x81c084 // > sub_87863C @ 0x878648 // > sub_87863C @ 0x878654 // > @ 0x640ec // > OPENSSL_LH_new @ 0x80c338 // > OBJ_NAME_new_index @ 0x81b8d8 // > @ 0xab8630 // // 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 // unsigned __int8 *__fastcall OPENSSL_LH_strhash(unsigned __int8 *result) { int v1; // r1 int v2; // r12 unsigned int v3; // lr unsigned int v4; // r3 int v5; // t1 if ( result ) { v1 = *result; if ( *result ) { v2 = 256; v3 = 0; do { v4 = v2 | v1; v5 = *++result; v1 = v5; v2 += 256; v3 = (v4 * v4) ^ __ROR4__(v3, 32 - ((v4 ^ (v4 >> 2)) & 0xF)); } while ( v5 ); return (unsigned __int8 *)(v3 ^ HIWORD(v3)); } else { return (unsigned __int8 *)*result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source