// // sub_830D3C from 0x830d3c to 0x830e68 (300 bytes) // // 1 xrefs: // > @ 0xa38ecc // // 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 // int __fastcall sub_830D3C(int a1, int a2, int *a3, int a4, int a5) { _DWORD *v5; // r6 int result; // r0 int v10; // r2 int v11; // r3 unsigned __int8 *v12; // r4 int v13; // r5 unsigned __int8 *v14; // r12 void *v15; // r0 void *v16; // r0 int v17; // [sp+1Ch] [bp-4h] v5 = *(_DWORD **)(a1 + 20); if ( v5[4] != 4 ) { result = RSA_private_decrypt(a5, a4, a2, *(_DWORD *)(*(_DWORD *)(a1 + 8) + 20)); LABEL_3: if ( result >= 0 ) { *a3 = result; return 1; } return result; } v10 = v5[8]; if ( !v10 ) { v17 = a4; v15 = (void *)EVP_PKEY_size(*(_DWORD *)(a1 + 8)); v16 = CRYPTO_malloc(v15, (int)"crypto/rsa/rsa_pmeth.c", 91); v5[8] = v16; if ( !v16 ) return -1; v10 = (int)v16; a4 = v17; } result = RSA_private_decrypt(a5, a4, v10, *(_DWORD *)(*(_DWORD *)(a1 + 8) + 20)); if ( result > 0 ) { v11 = 0; v12 = (unsigned __int8 *)v5[8]; while ( 1 ) { v13 = *v12; v14 = v12++; if ( v13 ) break; if ( ++v11 == result ) { v14 = (unsigned __int8 *)(v5[8] + v11); break; } } result = RSA_padding_check_PKCS1_OAEP_mgf1(a2, result, v14, result - v11, result, v5[9], v5[10], v5[5], v5[6]); goto LABEL_3; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source