// // dtls1_process_record from 0xfb4148 to 0xfb444c (772 bytes) // // 3 xrefs: // > dtls1_process_buffered_records @ 0xfafd88 // > dtls1_get_record @ 0xfb4668 // > @ 0xce8d8 // // 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:15:13 +0000 // __int64 __fastcall dtls1_process_record(__int64 a1, __int64 a2) { __int64 v2; // x20 unsigned int v3; // w3 __int64 v5; // x21 __int64 v6; // x2 __int64 v8; // x2 __int64 v10; // x4 int v11; // w22 __int64 v12; // x0 unsigned int v13; // w21 __int64 v14; // x0 __int64 v15; // x0 unsigned int v16; // w2 _BYTE *v17; // x24 _BOOL4 v18; // w26 _BYTE v19[64]; // [xsp+50h] [xbp+50h] BYREF _BYTE v20[64]; // [xsp+90h] [xbp+90h] BYREF v2 = a1 + 2008; v3 = *(_DWORD *)(a1 + 2016); v5 = *(_QWORD *)(a1 + 376); v6 = *(_QWORD *)(a1 + 4312) + 13LL; *(_QWORD *)(a1 + 2040) = v6; if ( v3 > 0x4540 ) { ERR_put_error(20, 257, 150, "ssl/record/ssl3_record.c", 1309); v8 = 22; LABEL_3: ssl3_send_alert(a1, 2, v8); return 0; } v10 = *(_QWORD *)(a1 + 8); *(_QWORD *)(a1 + 2032) = v6; *(_DWORD *)(a1 + 2020) = v3; v11 = (**(__int64 (***)(void))(v10 + 192))(); if ( !v11 ) goto LABEL_17; if ( v5 && *(_QWORD *)(a1 + 280) && EVP_MD_CTX_md(*(_QWORD *)(a1 + 288)) ) { v12 = EVP_MD_CTX_md(*(_QWORD *)(a1 + 288)); v13 = EVP_MD_size(v12); if ( v13 > 0x40 ) OPENSSL_die((int)"assertion failed: mac_size <= EVP_MAX_MD_SIZE"); if ( v13 > *(_DWORD *)(v2 + 12) || (v14 = EVP_CIPHER_CTX_cipher(*(_QWORD *)(a1 + 280)), (EVP_CIPHER_flags(v14) & 0xF0007) == 2) && *(_DWORD *)(v2 + 12) < v13 + 1 ) { ERR_put_error(20, 257, 160, "ssl/record/ssl3_record.c", 1360); v8 = 50; goto LABEL_3; } v15 = EVP_CIPHER_CTX_cipher(*(_QWORD *)(a1 + 280)); if ( (EVP_CIPHER_flags(v15) & 0xF0007) == 2 ) { v17 = v20; v18 = 0; ssl3_cbc_copy_mac((__int64)v20, v2, v13); *(_DWORD *)(v2 + 8) -= v13; } else { v16 = *(_DWORD *)(v2 + 8) - v13; v17 = (_BYTE *)(*(_QWORD *)(v2 + 24) + v16); *(_DWORD *)(v2 + 8) = v16; v18 = v17 == nullptr; } if ( ((*(__int64 (__fastcall **)(__int64, __int64, _BYTE *, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 8LL))( a1, v2, v19, 0) & 0x80000000) != 0 || v18 ) { v11 = -1; } else if ( (unsigned int)CRYPTO_memcmp(v19, v17, v13) ) { v11 = -1; } if ( *(_DWORD *)(v2 + 8) > v13 + 17408 ) goto LABEL_17; } if ( v11 < 0 ) { LABEL_17: *(_DWORD *)(v2 + 8) = 0; *(_DWORD *)(a1 + 4320) = 0; return 0; } else { if ( *(_QWORD *)(a1 + 304) ) { if ( *(_DWORD *)(v2 + 8) > 0x4400u ) { ERR_put_error(20, 257, 140, "ssl/record/ssl3_record.c", 1404); v8 = 22; goto LABEL_3; } if ( !(unsigned int)ssl3_do_uncompress(a1, v2) ) { ERR_put_error(20, 257, 107, "ssl/record/ssl3_record.c", 1409); v8 = 30; goto LABEL_3; } } if ( *(_DWORD *)(v2 + 8) > 0x4000u ) { ERR_put_error(20, 257, 146, "ssl/record/ssl3_record.c", 1416); v8 = 22; goto LABEL_3; } *(_DWORD *)(v2 + 16) = 0; *(_DWORD *)(a1 + 4320) = 0; dtls1_record_bitmap_update(a1, a2); return 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source