// // GJAccountManager::getShaPassword from 0x1000d4160 to 0x1000d42fb (411 bytes) // // 2 xrefs: // > GJAccountManager::dataLoaded @ 0x1000d40fb // > AccountLoginLayer::onSubmit @ 0x100499cf0 // // 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 // size_t *__fastcall GJAccountManager::getShaPassword(size_t *a1, __int64 a2, __m128 a3) { cocos2d::CCString *v3; // rax const char *CString; // rax const char *data; // r14 unsigned int v6; // eax size_t v7; // rax size_t v8; // r14 _BYTE *v9; // r15 size_t v11; // r12 std::string v12; // [rsp+10h] [rbp-90h] BYREF char __s[48]; // [rsp+30h] [rbp-70h] BYREF _BYTE v14[24]; // [rsp+60h] [rbp-40h] BYREF if ( (*(_BYTE *)a2 & 1) != 0 ) { sub_100006B70(&v12, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8), *(double *)a3.i64); } else { v12.__r_.__value_.__r.__words[2] = *(_QWORD *)(a2 + 16); a3 = *(__m128 *)a2; *(_OWORD *)&v12.__r_.__value_.__l.0 = *(_OWORD *)a2; } v3 = (cocos2d::CCString *)sub_1007AB580("%c%s%s%c%c%s", (char)"Ts"); CString = cocos2d::CCString::getCString(v3); std::string::append(&v12, CString); if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) data = v12.__r_.__value_.__l.__data_; else data = v12.__r_.__value_.__s.__data_; v6 = strlen(data); sub_100792420(data, v6, v14); sub_100792C00(v14, __s); v7 = strlen(__s); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)a3.i64); v8 = v7; if ( v7 >= 0x17 ) { v11 = 26; if ( (v7 | 7) != 0x17 ) v11 = (v7 | 7) + 1; v9 = operator new(v11); a1[2] = (size_t)v9; *a1 = v11 | 1; a1[1] = v8; LABEL_16: memcpy(v9, __s, v8); v9[v8] = 0; if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) == 0 ) return a1; goto LABEL_11; } *(_BYTE *)a1 = 2 * v7; v9 = (char *)a1 + 1; if ( v7 ) goto LABEL_16; *v9 = 0; if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) LABEL_11: operator delete(v12.__r_.__value_.__l.__data_); return a1; }