{"type": "func", "start": 17009648, "end": 17009880, "name": "CRYPTO_cfb128_8_encrypt", "pseudocode": "// \n// CRYPTO_cfb128_8_encrypt from 0x1038bf0 to 0x1038cd8 (232 bytes)\n// \n// 3 xrefs:\n// > sub_102091C @ 0x1020990\n// > sub_1022F5C @ 0x1022fd0\n// > <???> @ 0xcdc60\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:16:25 +0000\n// \n\n__int64 __fastcall CRYPTO_cfb128_8_encrypt(\n        __int64 result,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4,\n        __int64 a5,\n        __int64 a6,\n        int a7,\n        void (__fastcall *a8)(__int64, __int64, __int64))\n{\n  __int64 v12; // x23\n  __int64 v14; // x21\n  _BYTE v15[17]; // [xsp+58h] [xbp+58h]\n  _BYTE v16[17]; // [xsp+58h] [xbp+58h]\n\n  if ( a3 )\n  {\n    v12 = result;\n    v14 = 0;\n    if ( a7 )\n    {\n      do\n      {\n        *(_OWORD *)v16 = *(_OWORD *)a5;\n        a8(a5, a5, a4);\n        v16[16] = *(_BYTE *)(v12 + v14) ^ *(_BYTE *)a5;\n        *(_BYTE *)(a2 + v14++) = v16[16];\n        result = *(_QWORD *)&v16[1];\n        *(_QWORD *)a5 = *(_QWORD *)&v16[1];\n        *(_QWORD *)(a5 + 8) = *(_QWORD *)&v16[9];\n      }\n      while ( v14 != a3 );\n    }\n    else\n    {\n      do\n      {\n        *(_OWORD *)v15 = *(_OWORD *)a5;\n        a8(a5, a5, a4);\n        result = *(unsigned __int8 *)(v12 + v14);\n        v15[16] = result;\n        *(_BYTE *)(a2 + v14++) = result ^ *(_BYTE *)a5;\n        *(_QWORD *)a5 = *(_QWORD *)&v15[1];\n        *(_QWORD *)(a5 + 8) = *(_QWORD *)&v15[9];\n      }\n      while ( v14 != a3 );\n    }\n  }\n  return result;\n}", "assembly": "; \n; CRYPTO_cfb128_8_encrypt from 0x1038bf0 to 0x1038cd8 (232 bytes)\n; \n; 3 xrefs:\n; > sub_102091C @ 0x1020990\n; > sub_1022F5C @ 0x1022fd0\n; > <???> @ 0xcdc60\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:16:25 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0x1038bf0\nMOV             X29, SP                                                ; +0x4, 0x1038bf4\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0x1038bf8\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0xc, 0x1038bfc\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x10, 0x1038c00\nSTP             X25, X26, [SP,#0x80+var_40]                            ; +0x14, 0x1038c04\nCBZ             X2, loc_1038C74                                        ; +0x18, 0x1038c08\nMOV             X25, X7                                                ; +0x1c, 0x1038c0c\nMOV             X19, X4                                                ; +0x20, 0x1038c10\nMOV             X26, X3                                                ; +0x24, 0x1038c14\nMOV             X24, X1                                                ; +0x28, 0x1038c18\nMOV             X23, X0                                                ; +0x2c, 0x1038c1c\nMOV             X22, X2                                                ; +0x30, 0x1038c20\nMOV             X21, #0                                                ; +0x34, 0x1038c24\nADD             X20, X29, #0x80+var_28                                 ; +0x38, 0x1038c28\nCBNZ            W6, loc_1038C8C                                        ; +0x3c, 0x1038c2c\nLDP             X4, X5, [X19]                                          ; +0x40, 0x1038c30\nSTP             X4, X5, [X20]                                          ; +0x44, 0x1038c34\nMOV             X0, X19                                                ; +0x48, 0x1038c38\nMOV             X2, X26                                                ; +0x4c, 0x1038c3c\nMOV             X1, X19                                                ; +0x50, 0x1038c40\nBLR             X25                                                    ; +0x54, 0x1038c44\nLDRB            W0, [X23,X21]                                          ; +0x58, 0x1038c48\nADD             X5, X20, #1                                            ; +0x5c, 0x1038c4c\nLDRB            W4, [X19]                                              ; +0x60, 0x1038c50\nSTRB            W0, [X20,#0x10]                                        ; +0x64, 0x1038c54\nEOR             W4, W0, W4                                             ; +0x68, 0x1038c58\nSTRB            W4, [X24,X21]                                          ; +0x6c, 0x1038c5c\nLDP             X2, X3, [X5]                                           ; +0x70, 0x1038c60\nADD             X21, X21, #1                                           ; +0x74, 0x1038c64\nCMP             X21, X22                                               ; +0x78, 0x1038c68\nSTP             X2, X3, [X19]                                          ; +0x7c, 0x1038c6c\nB.NE            loc_1038C30                                            ; +0x80, 0x1038c70\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x84, 0x1038c74\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x88, 0x1038c78\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x8c, 0x1038c7c\nLDP             X25, X26, [SP,#0x80+var_40]                            ; +0x90, 0x1038c80\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x94, 0x1038c84\nRET                                                                    ; +0x98, 0x1038c88\nLDP             X4, X5, [X19]                                          ; +0x9c, 0x1038c8c\nSTP             X4, X5, [X20]                                          ; +0xa0, 0x1038c90\nMOV             X0, X19                                                ; +0xa4, 0x1038c94\nMOV             X1, X19                                                ; +0xa8, 0x1038c98\nMOV             X2, X26                                                ; +0xac, 0x1038c9c\nBLR             X25                                                    ; +0xb0, 0x1038ca0\nLDRB            W0, [X23,X21]                                          ; +0xb4, 0x1038ca4\nADD             X5, X20, #1                                            ; +0xb8, 0x1038ca8\nLDRB            W4, [X19]                                              ; +0xbc, 0x1038cac\nEOR             W4, W0, W4                                             ; +0xc0, 0x1038cb0\nUXTB            W4, W4                                                 ; +0xc4, 0x1038cb4\nSTRB            W4, [X20,#0x10]                                        ; +0xc8, 0x1038cb8\nSTRB            W4, [X24,X21]                                          ; +0xcc, 0x1038cbc\nADD             X21, X21, #1                                           ; +0xd0, 0x1038cc0\nLDP             X0, X1, [X5]                                           ; +0xd4, 0x1038cc4\nCMP             X21, X22                                               ; +0xd8, 0x1038cc8\nSTP             X0, X1, [X19]                                          ; +0xdc, 0x1038ccc\nB.NE            loc_1038C8C                                            ; +0xe0, 0x1038cd0\nB               loc_1038C74                                            ; +0xe4, 0x1038cd4", "xrefs": ["sub_102091C @ 0x1020990", "sub_1022F5C @ 0x1022fd0", "<???> @ 0xcdc60"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}