{"type": "func", "start": 14055400, "end": 14055620, "name": "ASN1_TIME_adj", "pseudocode": "// \n// ASN1_TIME_adj from 0xd677e8 to 0xd678c4 (220 bytes)\n// \n// 3 xrefs:\n// > ASN1_TIME_set @ 0xd678cc\n// > X509_time_adj_ex @ 0xdea9a8\n// > <???> @ 0x2b0b0\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\n__int64 __fastcall ASN1_TIME_adj(__int64 a1, __int64 a2, unsigned int a3, __int64 a4)\n{\n  __int64 v6; // x0\n  __int64 v7; // x19\n  __int64 v10; // [xsp+38h] [xbp+38h] BYREF\n  _BYTE v11[56]; // [xsp+48h] [xbp+48h] BYREF\n\n  v10 = a2;\n  v6 = OPENSSL_gmtime(&v10, v11);\n  v7 = v6;\n  if ( v6 )\n  {\n    if ( (a3 || a4) && !(unsigned int)OPENSSL_gmtime_adj(v6, a3, a4) )\n    {\n      return 0;\n    }\n    else if ( (unsigned int)(*(_DWORD *)(v7 + 20) - 50) <= 0x63 )\n    {\n      return ASN1_UTCTIME_adj(a1, v10, a3);\n    }\n    else\n    {\n      return ASN1_GENERALIZEDTIME_adj(a1, v10, a3);\n    }\n  }\n  else\n  {\n    ERR_put_error(13, 217, 173, \"crypto/asn1/a_time.c\", 40);\n    return 0;\n  }\n}", "assembly": "; \n; ASN1_TIME_adj from 0xd677e8 to 0xd678c4 (220 bytes)\n; \n; 3 xrefs:\n; > ASN1_TIME_set @ 0xd678cc\n; > X509_time_adj_ex @ 0xdea9a8\n; > <???> @ 0x2b0b0\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\nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xd677e8\nMOV             X29, SP                                                ; +0x4, 0xd677ec\nADD             X4, X29, #0x80+arg_0                                   ; +0x8, 0xd677f0\nSTR             X21, [SP,#0x80+var_60]                                 ; +0xc, 0xd677f4\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x10, 0xd677f8\nMOV             X21, X0                                                ; +0x14, 0xd677fc\nSTR             X3, [X29,#0x80+var_50]                                 ; +0x18, 0xd67800\nSTR             X1, [X4,#-0x48]!                                       ; +0x1c, 0xd67804\nADD             X1, X29, #0x80+var_38                                  ; +0x20, 0xd67808\nMOV             W20, W2                                                ; +0x24, 0xd6780c\nMOV             X0, X4                                                 ; +0x28, 0xd67810\nBL              OPENSSL_gmtime                                         ; +0x2c, 0xd67814\nMOV             X19, X0                                                ; +0x30, 0xd67818\nLDR             X3, [X29,#0x80+var_50]                                 ; +0x34, 0xd6781c\nCBZ             X0, loc_D678A0                                         ; +0x38, 0xd67820\nCBNZ            W20, loc_D6787C                                        ; +0x3c, 0xd67824\nCBNZ            X3, loc_D6787C                                         ; +0x40, 0xd67828\nLDR             W4, [X19,#0x14]                                        ; +0x44, 0xd6782c\nSUB             W4, W4, #0x32 ; '2'                                    ; +0x48, 0xd67830\nCMP             W4, #0x63 ; 'c'                                        ; +0x4c, 0xd67834\nB.LS            loc_D6785C                                             ; +0x50, 0xd67838\nLDR             X1, [X29,#0x80+var_48]                                 ; +0x54, 0xd6783c\nMOV             X0, X21                                                ; +0x58, 0xd67840\nMOV             W2, W20                                                ; +0x5c, 0xd67844\nBL              ASN1_GENERALIZEDTIME_adj                               ; +0x60, 0xd67848\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x64, 0xd6784c\nLDR             X21, [SP,#0x80+var_60]                                 ; +0x68, 0xd67850\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x6c, 0xd67854\nRET                                                                    ; +0x70, 0xd67858\nLDR             X1, [X29,#0x80+var_48]                                 ; +0x74, 0xd6785c\nMOV             W2, W20                                                ; +0x78, 0xd67860\nMOV             X0, X21                                                ; +0x7c, 0xd67864\nBL              ASN1_UTCTIME_adj                                       ; +0x80, 0xd67868\nLDR             X21, [SP,#0x80+var_60]                                 ; +0x84, 0xd6786c\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x88, 0xd67870\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x8c, 0xd67874\nRET                                                                    ; +0x90, 0xd67878\nMOV             X2, X3                                                 ; +0x94, 0xd6787c\nMOV             X0, X19                                                ; +0x98, 0xd67880\nMOV             W1, W20                                                ; +0x9c, 0xd67884\nSTR             X3, [X29,#0x80+var_50]                                 ; +0xa0, 0xd67888\nBL              OPENSSL_gmtime_adj                                     ; +0xa4, 0xd6788c\nLDR             X3, [X29,#0x80+var_50]                                 ; +0xa8, 0xd67890\nCBNZ            W0, loc_D6782C                                         ; +0xac, 0xd67894\nMOV             X0, #0                                                 ; +0xb0, 0xd67898\nB               loc_D6784C                                             ; +0xb4, 0xd6789c\nADRP            X3, #aCryptoAsn1ATim@PAGE; \"crypto/asn1/a_time.c\"      ; +0xb8, 0xd678a0\nMOV             W0, #0xD                                               ; +0xbc, 0xd678a4\nMOV             W1, #0xD9                                              ; +0xc0, 0xd678a8\nMOV             W2, #0xAD                                              ; +0xc4, 0xd678ac\nADD             X3, X3, #aCryptoAsn1ATim@PAGEOFF; \"crypto/asn1/a_time.c\" ; +0xc8, 0xd678b0\nMOV             W4, #0x28 ; '('                                        ; +0xcc, 0xd678b4\nBL              ERR_put_error                                          ; +0xd0, 0xd678b8\nMOV             X0, X19                                                ; +0xd4, 0xd678bc\nB               loc_D6784C                                             ; +0xd8, 0xd678c0", "xrefs": ["ASN1_TIME_set @ 0xd678cc", "X509_time_adj_ex @ 0xdea9a8", "<???> @ 0x2b0b0"], "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"}