// // sub_63C6D0 from 0x63c6d0 to 0x63c7fc (300 bytes) // // 2 xrefs: // > sub_63C8AC @ 0x63c948 // > sub_63C8AC @ 0x63c9aa // // 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_63C6D0(int *a1, char **a2, const char *a3, int a4) { _BYTE *v8; // r7 size_t v9; // r0 size_t v10; // r5 ssize_t v11; // r0 unsigned int v13; // r4 _BYTE *v14; // r5 _BYTE *v15; // r2 ssize_t v16; // r3 bool v17; // zf int v18; // r3 v8 = off_ABAEAC(0x400u); v9 = strlen(a3); if ( !v8 ) return 27; v10 = v9; if ( v9 ) { do { while ( 1 ) { v11 = send(*a1, a3, v10, 0x4000); if ( v11 == -1 ) break; v10 -= v11; a3 += v11; if ( !v10 ) goto LABEL_9; } } while ( *(_DWORD *)_errno() == 4 ); goto LABEL_7; } LABEL_9: v13 = 0; v14 = v8; while ( 1 ) { while ( 1 ) { v16 = recv(*a1, v14, 0x400u, 0); if ( v16 != -1 ) break; if ( *(_DWORD *)_errno() != 4 ) goto LABEL_7; } v13 += v16; if ( !v16 ) goto LABEL_7; v15 = &v8[v13 - 1]; if ( *v15 == 10 ) break; v8 = sub_634ED0(v8, v13 + 1024); v14 = &v8[v13]; if ( !v8 ) return 27; } v17 = v13 == 3; if ( v13 == 3 ) v17 = a4 == 1; *v15 = 0; if ( v17 || v13 <= 3 ) { LABEL_7: off_ABAEB0(v8); return 9; } if ( a4 == 1 ) { if ( *v8 != 89 || v8[1] != 82 ) goto LABEL_7; LABEL_25: if ( v8[2] == 32 ) goto LABEL_26; goto LABEL_7; } if ( a4 == 2 ) { v18 = (unsigned __int8)*v8; if ( v18 == 75 ) { if ( v8[1] != 75 ) goto LABEL_7; } else if ( v18 != 65 || v8[1] != 70 ) { goto LABEL_7; } goto LABEL_25; } LABEL_26: *a2 = sub_626FC4("NTLM %.*s", v13 - 4, v8 + 3); off_ABAEB0(v8); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source