// // sub_10230E0 from 0x10230e0 to 0x10231c8 (232 bytes) // // 21 xrefs: // > @ 0x14016b0 // > @ 0x1401708 // > @ 0x1401760 // > @ 0x14017b8 // > @ 0x1401810 // > @ 0x1401868 // > @ 0x14018c0 // > @ 0x1401918 // > @ 0x1401970 // > @ 0x14019c8 // > @ 0x1401a20 // > @ 0x1401a78 // > @ 0x1401ad0 // > @ 0x1401b28 // > @ 0x1401b80 // > @ 0x1401bd8 // > @ 0x1401c30 // > @ 0x1401c88 // > @ 0x1401ce0 // > @ 0x1401d38 // > @ 0x1401d90 // // 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:12 +0000 // __int64 __fastcall sub_10230E0(__int64 a1, __int64 a2, __int64 a3, int a4) { __int64 cipher_data; // x19 int v8; // w0 __int64 v9; // x0 int v10; // w1 __int64 (__fastcall *v11)(); // x0 cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1); v8 = EVP_CIPHER_CTX_key_length(a1); if ( (Camellia_set_key(a2, (unsigned int)(8 * v8), cipher_data) & 0x80000000) == 0 ) { v9 = EVP_CIPHER_CTX_cipher(a1); v10 = EVP_CIPHER_flags(v9) & 0xF0007; if ( (unsigned int)(v10 - 1) > 1 || a4 ) { *(_QWORD *)(cipher_data + 280) = Camellia_encrypt; if ( v10 != 2 ) goto LABEL_5; } else { *(_QWORD *)(cipher_data + 280) = Camellia_decrypt; if ( v10 != 2 ) { LABEL_5: v11 = nullptr; LABEL_6: *(_QWORD *)(cipher_data + 288) = v11; return 1; } } v11 = Camellia_cbc_encrypt; goto LABEL_6; } ERR_put_error(6, 159, 157, (__int64)"crypto/evp/e_camellia.c", 221); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source