// // sub_100676164 from 0x100676164 to 0x1006762f4 (400 bytes) // // 2 xrefs: // > sub_100675E3C @ 0x1006760cc // > sub_1006773BC @ 0x100678204 // // 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:11:12 +0000 // __int64 __fastcall sub_100676164(__int64 *a1) { __int64 v2; // x19 __int64 v3; // x8 int v4; // w9 signed __int64 v5; // x21 int v6; // w22 signed __int64 v7; // x0 const char *v8; // x0 _BYTE *v9; // x8 __int64 v10; // x9 __int64 v11; // x9 v2 = *a1; v3 = *(_QWORD *)(*a1 + 536); if ( !v3 ) return 0; v4 = *(_DWORD *)(v2 + 1064); if ( (v4 | 4) == 5 ) return 0; v5 = *(_QWORD *)(v3 + 48); v6 = *((unsigned __int8 *)a1 + 751); if ( *((_BYTE *)a1 + 751) ) { v7 = 0; } else if ( *((_BYTE *)a1 + 748) ) { if ( v4 == 4 ) { v7 = *(_QWORD *)(v2 + 35640); } else { if ( v4 != 3 ) { if ( v4 == 2 ) { v7 = *(_QWORD *)(v2 + 35640); if ( v7 != -1 ) goto LABEL_15; v8 = *(const char **)(v2 + 656); if ( v8 ) { v7 = strlen(v8); goto LABEL_15; } } v9 = a1 + 94; *((_BYTE *)a1 + 752) = 0; v7 = -1; goto LABEL_19; } v7 = *(_QWORD *)(v3 + 8); } } else { v7 = 0; } LABEL_15: v9 = a1 + 94; *((_BYTE *)a1 + 752) = 0; if ( v7 != -1 && v7 <= v5 ) { LABEL_31: if ( v5 ) return sub_10068BE44(a1); return 0; } LABEL_19: v10 = *(_QWORD *)(v2 + 35424); if ( v10 != 8 && v10 != 32 ) { v11 = *(_QWORD *)(v2 + 35392); if ( v11 != 8 && v11 != 32 ) goto LABEL_30; } if ( v7 - v5 < 2000 || *((_DWORD *)a1 + 244) || *((_DWORD *)a1 + 252) ) { if ( !v6 ) { *v9 = 1; sub_10067860C(v2, "Rewind stream after send\n"); } return 0; } if ( !*((_BYTE *)a1 + 737) ) { sub_10067860C(v2, "NTLM send, close instead of sending %ld bytes\n", v7 - v5); LABEL_30: *((_BYTE *)a1 + 737) = 1; *(_QWORD *)(v2 + 120) = 0; goto LABEL_31; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source