// // sub_A15DCC from 0xa15dcc to 0xa15f10 (324 bytes) // // 6 xrefs: // > @ 0xc79154 // > @ 0xc79188 // > @ 0xc791bc // > @ 0xc791f0 // > @ 0xc79224 // > @ 0xc79258 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:07:49 +0000 // int __fastcall sub_A15DCC(int a1, int a2) { unsigned int v4; // r4 int v5; // r6 int v6; // r8 int v8; // [sp+Ch] [bp-14h] BYREF _BYTE v9[16]; // [sp+10h] [bp-10h] BYREF v8 = 0; if ( a2 ) { v4 = EVP_CIPHER_CTX_iv_length(a1); if ( v4 > 0x10 ) OPENSSL_die("assertion failed: l <= sizeof(iv)", "crypto/evp/e_rc2.c", 130); if ( v4 != ASN1_TYPE_get_int_octetstring(a2, &v8, v9, v4) ) return -1; switch ( v8 ) { case 58: v5 = 16; v6 = 128; break; case 120: v5 = 8; v6 = 64; break; case 160: v5 = 5; v6 = 40; break; default: ERR_put_error(6, 109, 108, (int)"crypto/evp/e_rc2.c", 115); return -1; } if ( !v4 || EVP_CipherInit_ex(a1, 0, 0, 0, v9, -1) ) { EVP_CIPHER_CTX_ctrl(a1, 3, v6, 0); if ( EVP_CIPHER_CTX_set_key_length(a1, v5) > 0 ) return v4; } return -1; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source