// // EVP_EncryptFinal_ex from 0x10276cc to 0x10277f8 (300 bytes) // // 4 xrefs: // > EVP_EncryptFinal @ 0x10277f8 // > EVP_CipherFinal_ex @ 0x1027f98 // > PEM_ASN1_write_bio @ 0x10460bc // > @ 0xe9b90 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:16:14 +0000 // __int64 __fastcall EVP_EncryptFinal_ex(__int64 *a1, __int64 a2, unsigned int *a3) { __int64 v4; // x6 unsigned int v6; // w19 unsigned int v7; // w3 __int64 result; // x0 char v9; // w0 __int64 v10; // x4 unsigned int v11; // w0 v4 = *a1; if ( (*(_QWORD *)(*a1 + 16) & 0x100000) != 0 ) { v11 = (*(__int64 (__fastcall **)(__int64 *, __int64, _QWORD, _QWORD))(v4 + 32))(a1, a2, 0, 0); if ( (v11 & 0x80000000) != 0 ) { return 0; } else { *a3 = v11; return 1; } } else { v6 = *(_DWORD *)(v4 + 4); if ( v6 > 0x20 ) OPENSSL_die("assertion failed: b <= sizeof ctx->buf", "crypto/evp/evp_enc.c", 392); if ( v6 == 1 ) { LABEL_6: *a3 = 0; return 1; } v7 = *((_DWORD *)a1 + 5); if ( (a1[14] & 0x100) != 0 ) { if ( v7 ) { ERR_put_error(6, 127, 138, (__int64)"crypto/evp/evp_enc.c", 401); return 0; } goto LABEL_6; } v9 = v6 - v7; if ( v6 > v7 ) { do { v10 = (__int64)a1 + v7++; *(_BYTE *)(v10 + 56) = v9; } while ( v6 != v7 ); } result = (*(__int64 (__fastcall **)(__int64 *, __int64, __int64 *, _QWORD))(v4 + 32))(a1, a2, a1 + 7, v6); if ( (_DWORD)result ) *a3 = v6; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source