{"type": "func", "start": 8855144, "end": 8855208, "name": "Camellia_cbc_encrypt", "pseudocode": "// \n// Camellia_cbc_encrypt from 0x871e68 to 0x871ea8 (64 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x62f8c\n// > sub_7FE868 @ 0x7fe928\n// > sub_7FE868 @ 0x7fe960\n// > <???> @ 0xab8620\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\nvoid *__fastcall Camellia_cbc_encrypt(int a1, unsigned int a2, unsigned int a3, int a4, int *a5, int a6)\n{\n  if ( a6 )\n    return CRYPTO_cbc128_encrypt(a1, a2, a3, a4, a5, (void (__fastcall *)(int *, int *, int))Camellia_encrypt);\n  else\n    return (void *)CRYPTO_cbc128_decrypt(\n                     a1,\n                     a2,\n                     a3,\n                     a4,\n                     (unsigned int)a5,\n                     (void (__fastcall *)(_DWORD *, _BYTE *, int))Camellia_decrypt);\n}", "assembly": "; \n; Camellia_cbc_encrypt from 0x871e68 to 0x871ea8 (64 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x62f8c\n; > sub_7FE868 @ 0x7fe928\n; > sub_7FE868 @ 0x7fe960\n; > <???> @ 0xab8620\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            {LR}                                                   ; +0x0, 0x871e68\nLDR             R12, [SP,#arg_4]                                       ; +0x4, 0x871e6c\nLDR             LR, [SP,#arg_0]                                        ; +0x8, 0x871e70\nCMP             R12, #0                                                ; +0xc, 0x871e74\nBNE             loc_871E94                                             ; +0x10, 0x871e78\nLDR             R12, =(Camellia_decrypt_ptr - 0x871E8C)                ; +0x14, 0x871e7c\nSTR             LR, [SP,#arg_0]                                        ; +0x18, 0x871e80\nLDR             R12, [PC,R12]; Camellia_decrypt                        ; +0x1c, 0x871e84\nSTR             R12, [SP,#arg_4]                                       ; +0x20, 0x871e88\nPOP             {LR}                                                   ; +0x24, 0x871e8c\nB               CRYPTO_cbc128_decrypt                                  ; +0x28, 0x871e90\nLDR             R12, =(Camellia_encrypt_ptr - 0x871EA0)                ; +0x2c, 0x871e94\nLDR             R12, [PC,R12]; Camellia_encrypt                        ; +0x30, 0x871e98\nSTR             R12, [SP,#arg_4]; int                                  ; +0x34, 0x871e9c\nPOP             {LR}                                                   ; +0x38, 0x871ea0\nB               CRYPTO_cbc128_encrypt                                  ; +0x3c, 0x871ea4", "xrefs": ["<???> @ 0x62f8c", "sub_7FE868 @ 0x7fe928", "sub_7FE868 @ 0x7fe960", "<???> @ 0xab8620"], "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"}