// // sub_100711950 from 0x100711950 to 0x100711c90 (832 bytes) // // 6 xrefs: // > @ 0x1009c1580 // > @ 0x1009c1598 // > @ 0x1009c15b0 // > @ 0x1009c1688 // > @ 0x1009c16a0 // > @ 0x1009c16b8 // // 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 11:12:57 +0000 // __int64 __fastcall sub_100711950(unsigned int *a1, const char *a2, int a3, __int64 a4, int *a5, int *a6, int a7) { int *v14; // x8 __int64 v15; // x0 __int64 v16; // x26 __int64 v17; // x0 int v18; // w4 __int64 v19; // x19 int v21; // w3 int v22; // w4 int v23; // w5 int v24; // w6 int v25; // w7 int v26; // w23 int v27; // w3 int v28; // w4 int v29; // w5 int v30; // w6 int v31; // w7 int v32; // w3 int v33; // w4 int v34; // w5 int v35; // w6 int v36; // w7 int v37; // w0 int v38; // w3 int v39; // w4 int v40; // w5 int v41; // w6 int v42; // w7 char *v43; // x22 int v44; // w0 int v45; // w6 int v46; // w7 int v47; // [xsp+8h] [xbp-128h] __int64 v48; // [xsp+10h] [xbp-120h] BYREF void *v49[6]; // [xsp+18h] [xbp-118h] BYREF char v50[16]; // [xsp+48h] [xbp-E8h] BYREF char v51[64]; // [xsp+58h] [xbp-D8h] BYREF char v52[64]; // [xsp+98h] [xbp-98h] BYREF sub_100708F5C(v49); if ( !a4 || *(_DWORD *)a4 != 16 || (v14 = *(int **)(a4 + 8)) == nullptr ) { v18 = 93; LABEL_8: sub_100706FB0(6, 117, 114, (__int64)"p5_crpt.c", v18); return 0; } v48 = *((_QWORD *)v14 + 1); v15 = sub_1007225C4(0, &v48, *v14); v16 = v15; if ( !v15 ) { v18 = 99; goto LABEL_8; } v17 = *(_QWORD *)(v15 + 8); if ( v17 ) v47 = sub_100716174(v17); else v47 = 1; if ( a2 && a3 == -1 ) strlen(a2); if ( !(unsigned int)sub_100708FB4((__int64)v49, a6, 0) ) { v19 = 0; LABEL_41: sub_10070930C((__int64)v49); return v19; } if ( !(unsigned int)sub_1007091A4((__int64)v49) ) { v19 = 0; goto LABEL_41; } if ( !(unsigned int)sub_1007091A4((__int64)v49) ) { v19 = 0; goto LABEL_41; } sub_1007225D0(v16); if ( !(unsigned int)sub_100709260(v49, (__int64)v52, nullptr, v21, v22, v23, v24, v25) ) { v19 = 0; goto LABEL_41; } if ( (sub_100711410((__int64)a6) & 0x80000000) == 0 ) { if ( v47 < 2 ) { LABEL_26: if ( (int)sub_1007113F0((__int64)a5) >= 65 ) sub_1006AE64C( (char)"p5_crpt.c", 135, (int)"EVP_CIPHER_key_length(cipher) <= (int)sizeof(md_tmp)", v32, v33, v34, v35, v36); v37 = sub_1007113F0((__int64)a5); __memcpy_chk(v51, v52, v37, 64); if ( (int)sub_1007113E8((__int64)a5) >= 17 ) sub_1006AE64C((char)"p5_crpt.c", 137, (int)"EVP_CIPHER_iv_length(cipher) <= 16", v38, v39, v40, v41, v42); v43 = &v52[(int)(16 - sub_1007113E8((__int64)a5))]; v44 = sub_1007113E8((__int64)a5); __memcpy_chk(v50, v43, v44, 16); if ( (unsigned int)sub_10070972C(a1, a5, 0, (__int64)v51, v50, a7, v45, v46) ) { sub_1006B0510(v52, 0x40u); sub_1006B0510(v51, 0x40u); sub_1006B0510(v50, 0x10u); v19 = 1; } else { v19 = 0; } } else { v26 = 1; while ( 1 ) { if ( !(unsigned int)sub_100708FB4((__int64)v49, a6, 0) ) { v19 = 0; goto LABEL_41; } if ( !(unsigned int)sub_1007091A4((__int64)v49) ) { v19 = 0; goto LABEL_41; } if ( !(unsigned int)sub_100709260(v49, (__int64)v52, nullptr, v27, v28, v29, v30, v31) ) break; if ( ++v26 >= v47 ) goto LABEL_26; } v19 = 0; } goto LABEL_41; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source