{"type": "func", "start": 4607644, "end": 4607792, "name": "GJAccountManager::getShaPassword", "pseudocode": "// \n// GJAccountManager::getShaPassword from 0x464e9c to 0x464f30 (148 bytes)\n// \n// 2 xrefs:\n// > GJAccountManager::dataLoaded @ 0x464ff0\n// > AccountLoginLayer::onSubmit @ 0x46a04c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall GJAccountManager::getShaPassword(int a1)\n{\n  cocos2d::CCString *v2; // r0\n  char *CString; // r0\n  const void *v4; // r0\n  unsigned __int8 *v5; // r3\n  char *v6; // r2\n  char *v8; // [sp+18h] [bp-48h] BYREF\n  unsigned __int8 v9[20]; // [sp+1Ch] [bp-44h] BYREF\n  unsigned __int8 v10[44]; // [sp+30h] [bp-30h] BYREF\n\n  sub_775C20(&v8);\n  v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%c%s%s%c%c%s\",\n                              (const char *)&dword_6C + 1,\n                              \"I29\",\n                              \"fmAn\",\n                              120,\n                              103,\n                              \"Ts\");\n  CString = (char *)cocos2d::CCString::getCString(v2);\n  sub_774544((int)&v8, CString);\n  v4 = (const void *)strlen(v8);\n  rtsha1::calc((rtsha1 *)v8, v4, (int)v9, v5);\n  rtsha1::toHexString((rtsha1 *)v9, v10, v6);\n  sub_776584(a1, (char *)v10);\n  sub_774008(&v8);\n  return a1;\n}", "assembly": "; \n; GJAccountManager::getShaPassword from 0x464e9c to 0x464f30 (148 bytes)\n; \n; 2 xrefs:\n; > GJAccountManager::dataLoaded @ 0x464ff0\n; > AccountLoginLayer::onSubmit @ 0x46a04c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x464e9c\nSUB             SP, SP, #0x60                                          ; +0x4, 0x464ea0\nLDR             R5, =(__stack_chk_guard_ptr - 0x464EAC)                ; +0x6, 0x464ea2\nADD             R4, SP, #0x60+var_48                                   ; +0x8, 0x464ea4\nMOV             R6, R0                                                 ; +0xa, 0x464ea6\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x464ea8\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x464eaa\nMOV             R0, R4                                                 ; +0x10, 0x464eac\nLDR             R3, [R5]                                               ; +0x12, 0x464eae\nSTR             R3, [SP,#0x60+var_4]                                   ; +0x14, 0x464eb0\nBL              sub_775C20                                             ; +0x16, 0x464eb2\nMOVS            R2, #0x78 ; 'x'                                        ; +0x1a, 0x464eb6\nMOVS            R3, #0x67 ; 'g'                                        ; +0x1c, 0x464eb8\nSTMEA.W         SP, {R2,R3}                                            ; +0x1e, 0x464eba\nMOVS            R1, #(dword_6C+1); char *                              ; +0x22, 0x464ebe\nLDR             R3, =(aTs - 0x464EC8); \"Ts\"                            ; +0x24, 0x464ec0\nLDR             R0, =(aCSSCCS - 0x464ECE); \"%c%s%s%c%c%s\"              ; +0x26, 0x464ec2\nADD             R3, PC; \"Ts\"                                           ; +0x28, 0x464ec4\nLDR             R2, =(aI29 - 0x464ED2); \"I29\"                          ; +0x2a, 0x464ec6\nSTR             R3, [SP,#0x60+var_58]                                  ; +0x2c, 0x464ec8\nADD             R0, PC; \"%c%s%s%c%c%s\"                                 ; +0x2e, 0x464eca\nLDR             R3, =(aFman - 0x464ED4); \"fmAn\"                        ; +0x30, 0x464ecc\nADD             R2, PC; \"I29\"                                          ; +0x32, 0x464ece\nADD             R3, PC; \"fmAn\"                                         ; +0x34, 0x464ed0\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x36, 0x464ed2\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x3a, 0x464ed6\nMOV             R1, R0; char *                                         ; +0x3e, 0x464eda\nMOV             R0, R4; int                                            ; +0x40, 0x464edc\nBL              sub_774544                                             ; +0x42, 0x464ede\nLDR             R7, [SP,#0x60+var_48]                                  ; +0x46, 0x464ee2\nADD.W           R8, SP, #0x60+var_44                                   ; +0x48, 0x464ee4\nMOV             R0, R7; char *                                         ; +0x4c, 0x464ee8\nBLX             strlen                                                 ; +0x4e, 0x464eea\nMOV             R2, R8; int                                            ; +0x52, 0x464eee\nMOV             R1, R0; void *                                         ; +0x54, 0x464ef0\nMOV             R0, R7; this                                           ; +0x56, 0x464ef2\nBL              _ZN6rtsha14calcEPKviPh; rtsha1::calc(void const*,int,uchar *) ; +0x58, 0x464ef4\nADD             R7, SP, #0x60+var_30                                   ; +0x5c, 0x464ef8\nMOV             R0, R8; this                                           ; +0x5e, 0x464efa\nMOV             R1, R7; unsigned __int8 *                              ; +0x60, 0x464efc\nBL              _ZN6rtsha111toHexStringEPKhPc; rtsha1::toHexString(uchar const*,char *) ; +0x62, 0x464efe\nMOV             R0, R6; int                                            ; +0x66, 0x464f02\nMOV             R1, R7; char *                                         ; +0x68, 0x464f04\nADD             R2, SP, #0x60+var_4C                                   ; +0x6a, 0x464f06\nBL              sub_776584                                             ; +0x6c, 0x464f08\nMOV             R0, R4                                                 ; +0x70, 0x464f0c\nBL              sub_774008                                             ; +0x72, 0x464f0e\nLDR             R2, [SP,#0x60+var_4]                                   ; +0x76, 0x464f12\nLDR             R3, [R5]                                               ; +0x78, 0x464f14\nMOV             R0, R6                                                 ; +0x7a, 0x464f16\nCMP             R2, R3                                                 ; +0x7c, 0x464f18\nBEQ             loc_464F2A                                             ; +0x7e, 0x464f1a\nBLX             __stack_chk_fail                                       ; +0x80, 0x464f1c\nMOV             R0, R4                                                 ; +0x84, 0x464f20\nBL              sub_774008                                             ; +0x86, 0x464f22\nBL              __cxa_end_cleanup                                      ; +0x8a, 0x464f26\nADD             SP, SP, #0x60 ; '`'                                    ; +0x8e, 0x464f2a\nPOP.W           {R4-R8,PC}                                             ; +0x90, 0x464f2c", "xrefs": ["GJAccountManager::dataLoaded @ 0x464ff0", "AccountLoginLayer::onSubmit @ 0x46a04c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}