// // sub_DAF960 from 0xdaf960 to 0xdafaa4 (324 bytes) // // 1 xrefs: // > @ 0x11253f0 // // 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 sub_DAF960(__int64 a1, __int64 a2) { __int64 v4; // x19 __int64 v5; // x0 __int64 data; // x19 _QWORD *v7; // x22 __int64 v8; // x1 __int64 v9; // x0 __int64 v10; // x1 __int64 v11; // x0 __int64 v12; // x19 v4 = CRYPTO_zalloc(40, "crypto/hmac/hm_pmeth.c", 30); if ( !v4 ) return 0; *(_DWORD *)(v4 + 12) = 4; v5 = HMAC_CTX_new(); *(_QWORD *)(v4 + 32) = v5; if ( !v5 ) { CRYPTO_free(v4, "crypto/hmac/hm_pmeth.c", 36); return 0; } *(_QWORD *)(a1 + 40) = v4; *(_DWORD *)(a1 + 72) = 0; data = EVP_PKEY_CTX_get_data(a2); v7 = (_QWORD *)EVP_PKEY_CTX_get_data(a1); v8 = *(_QWORD *)(data + 32); v9 = v7[4]; *v7 = *(_QWORD *)data; if ( !(unsigned int)HMAC_CTX_copy(v9, v8) || (v10 = *(_QWORD *)(data + 16)) != 0 && !(unsigned int)ASN1_OCTET_STRING_set(v7 + 1, v10, *(unsigned int *)(data + 8)) ) { v11 = EVP_PKEY_CTX_get_data(a1); v12 = v11; if ( v11 ) { HMAC_CTX_free(*(_QWORD *)(v11 + 32)); CRYPTO_clear_free(*(_QWORD *)(v12 + 16), *(int *)(v12 + 8), "crypto/hmac/hm_pmeth.c", 78); CRYPTO_free(v12, "crypto/hmac/hm_pmeth.c", 79); EVP_PKEY_CTX_set_data(a1, 0); return 0; } return 0; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source