How to find and patch an injected DLL

【深度学习预测】项目介绍 Python实现基于BO-Transformer-LSTM贝叶斯优化算法(BO)优化Transformer-LSTM模型进行多变量时间序列预测(含模型描述及部分示例代码) 内容概要:本文详细介绍了一个基于BO-Transformer-LSTM的多变量时间序列预测项目,通过结合Transformer的全局自注意力机制与LSTM的局部时序建模能力,构建了适用于复杂业务场景的深度学习预测模型。模型输入采用多变量滑动窗口结构,并引入正弦余弦位置编码以保留时间顺序信息;Transformer编码器提取变量间长距离依赖关系,LSTM进一步捕捉动态演化特征,最终通过回归层输出预测值。为优化模型性能,采用贝叶斯优化算法(基于Tree-structured Parzen Estimator)自动搜索最优超参数组合,包括嵌入维度、注意力头数、学习率、窗口长度等,显著提升了调参效率与模型泛化能力。项目还设计了包含周期性、趋势性、均值回归、突发事件和异方差噪声的五因素模拟数据生成机制,确保数据贴近真实业务场景,并建立了从数据预处理、模型训练、验证评估到结果恢复的完整技术链路。; 适合人群:具备一定机器学习与深度学习基础,熟悉PyTorch框架,从事时间序列预测相关研究或工程应用的研发人员、数据科学家及研究生。; 使用场景及目标:①应用于能源负荷预测、设备状态监测、金融风控、供应链需求预测等多变量时间序列预测任务;②解决传统模型在长时依赖、非线性关系和高维特征下的预测瓶颈;③实现高效超参数优化,提升模型调优自动化水平与部署可行性。; 阅读建议:本文含核心模型结构与部分示例代码,建议结合完整项目代码(如GitHub或博客资源)进行复现实践,重点关注数据生成逻辑、模型前向传播流程及贝叶斯优化集成方式,同时可通过调整网络结构或优化策略进一步拓展至多步预测、概率输出与可视化分析等高级功能。 立即下载
How t Mytrix
How to find and patch an injected DLL

Target: CreateInstall version 2003.3.5 (3w.gentee.com)

Tools used:

  • SoftIce 4.05
  • IDA 4.0.4
  • Hiew 6.11
  • RVA Convertor 1.1
Note: a product version (as the product itself) doesn't matter, but it's important that all worked and you understand what you do. The second thing that you have to keep in mind is what all the addresses, values and numbers, which corresponds to a disassembled code are represented in hexadimal system, the rest numbers are decimal.

Author:Wizard
Date:14.01.2004
Difficulty:newbie
Origin:Vision is the art of seeing things invisible. Adam Smith.

About the product

CreateInstall is a versatile tool for creation of application installers, self-extracting archives etc. CreateInstall has a very impressive set of features, including the built-in scripting language that can be used for creation of the installation scripts.

CreateInstall is very user-friendly and you will find that most of its features are logically grouped into multiple wizard-like pages. If you do not need a feature, just leave the default value in the parameter and it will most likely suit your needs. Now, let's create professional, tightly-packed setup programs for your great applications!

Key features:
  • Easy Wizard. You can create your setup with Wizard during 10 minutes.
  • Powerful script programming language. The embedded programming language has enough potentialities that you can make such setup as you want.
  • Excellent compression. There are several compression algorithms (including Cabinet LZX).
  • The small size of the extractor module, which is added to the files being installed. It is 50-55 KB about (with uninstaller).
  • Macro support. You can use macros during installation or making setup.
  • Setup sources. About 150 KB sources for setups are available.
  • Multi-language setups. You can create multi-language installation without any problems.
What the Trial is?
The program help says next.

CreateInstall is not freeware. After using CreateInstall for 30 days, you must either purchase it or delete it from your computer.

During the 30-day trial period, you may test the program and create installation programs without any restriction. However, all installations created with the trial version will display a 'nag' message at the beginning of the installation process.

Knowing all the above, let's try to compile a little project. Run CreateInstall (CreateInstall.exe). Choose Project/New menu. Type "Biw project" in the project name string and press OK. Change output folder parameter (at Project tab) to a path where future installation will be created (e.g. "C:/TMP/Biw project").

Go to Files tab, push "+" button, then add some files into your project. Also you have to set a group name, e.g. "BiW". After that press OK button. Switch to Wizard tab, choose General from the list below. Type "Biw application" in Application name field. Now choose Unpack tab, press "+", select "BiW" (or how did you call it) from Data Group Name combo box, then push OK.

Now make sure that setup will include the uninstaller. This can be done by switching to Uninstallation tab. Check that flag "Include Uninstaller" has been set by setup (it should be set by default).

Leave all the rest of parameters. Select Setup/Make Setup menu item. Now, wait for a while. Program should write Finish successful in the console window. Press any key to close it. Then close CreateInstall itself. Let's prepare to see what have we just created.

The installation we've made

Run setup.exe from the folder that you specified as the output (My was in "C:/TMP/Biw project"). What do you see? You see the message, which says: "This setup was made with CreateInstall (unregistered Trial version)...", bla, bla, bla... You may also noticed that before "Continue" button appeared we had 3 seconds to wait. After that period the button has changed its caption to "Continue" and became enabled.

Do not press the button yet. Fire up SoftIce, type "bpx DestroyWindow" in it, let it run (F5). Note: I used that API function, because I didn't know what the NAG window was created with. I mean that window could be created with different API functions, like MessageBox, CreateDialog, CreateWindow, etc. Who knows what function program uses. Of course you may know that by disassembling the module, but it's not always possible. That's why by grabbing at DestroyWindow API you can be 99% sure that you will find a place where the NAG window was called from.

Now push the button... Bang! SoftIce has poped-up. Press F11 to return from the calling function. Then push F12 four times (a number of times depends upon a program you're cracking). You should settle down in here:

1000C240 : A1A03C0110   mov eax,[10013CA0]
1000C245 : 6A00         push 00             
1000C247 : 68F0C10010   push 1000C1F0       
1000C24C : 6A00         push 00             
1000C24E : 6A73         push 73             
1000C250 : 50           push eax            
1000C251 : FF15DC010110 call DialogBoxParamA ; creates modal dialog box
1000C257 : C3           ret                  ; <= you should land here
That's the dialog you've seen. Now press F10 to return from the call and you will be taken here:
1000D0C7 : E834FDFFFF   call 1000CE00
1000D0CC : 83F802       cmp eax,02           ; if (eax != 2) bad boy
1000D0CF : 7405         je 1000D0D6          ; jumps if registered
1000D0D1 : E86AF1FFFF   call 1000C240        ; the NAG lays here
1000D0D6 : E835BAFFFF   call 10008B10        ; <= you're here
1000D0DB : 68AC370110   push 100137AC
1000D0E0 : 6A00         push 00
1000D0E2 : 6A04         push 04
1000D0E4 : 6800D00010   push 1000D000
1000D0E9 : E8C25EFFFF   call 10002FB0

I suppose everything's pretty clear here. Program brings you the splash when eax not equals to 2. Well, how it will be equal to that number, if you're not registered user? That's right, no how. Thus, you have to change one byte in code to shut up the NAG.

You have to change byte 74 to EB at address 1000D0CF. By doing that you cause the program to jump over the dialog call. Now we know what to do to avoid the message, but where we will find that code. Look at the module name, in which we're now. It name is "gert0!.text+C0D1" or something about that (it may depend on a program version).

Now we know all the information we need. Clear the breakpoint we've set before by the command "bc 0", and let the program run (F5 or Ctrl+D by default).

Doomed to destruction

Do not install program yet, and don't exit the installation. Otherwise it will delete all its temp files and won't find the file we need.

Let's search for the file. As I work under Windows XP I have TEMP folder in "C:/Documents and Settings/Leon/Local Settings/temp/". If you don't know where yours then check your environment variables settings. It's very important to know where your TEMP is, because otherwise you won't find the file we need.

Search in your TEMP folder for a file which name starts from "gert0". I've found one with name "gert0.dll". Its size equals to 90,112 bytes. We should guess that it's a DLL, because in SoftIce we've seen all the addresses begin from 1000. DLL's usually begin from such (or something close) addresses.

Let's go into CreateInstall directory. Start your favorite shell (personally I use FAR) or some string searcher to search the message we saw. Search for the string "This setup was made", but search over the whole program directory. Other words, search from the root of CreateInstall folder including all its subdirectories.

I found that NAG only in one file "inststd.dll", which lays in the subfolder "Resource". Besides, its size the same 90,112 bytes. You may compare "gert0.dll" with "inststd.dll" to find out that they're absolutely binary equal.

When we made setup.exe the installation creator program included "inststd.dll" into the first one. Therefore CreateInstall always includes that DLL into a compiled project. Thus, we have to patch that DLL once, and all the future projects will be patched (they will be without NAG).

Now continue the installation to a directory you like (e.g. "C:/A/Biw application"). Once you've done that go into the folder you just chose during the installation. When you will be in it you'll see all the files you've specified during the project compilation and also two more files: uninstall.exe and uninstall.ini.

Run uninstall.exe. You see the same message here. What does it mean for us? It means only one thing - the NAG is situated ONLY in the file "inststd.dll" and nowhere else. Thus, when we will patch it once, all the reminders will be blown away from our installer and uninstaller.

Now uninstall the program and let's patch the cursed DLL.

A million bucks for a byte
Start RVA Converter. Open file "inststd.dll" in it. Input 1000D0CF as the RVA value. You will get D0CF as the real file address. We take this address because there's the jump at that address, which concerns the message or jumps over it. After the patch your file should look like the below one.
D0C7 : E834FDFFFF   call 1000CE00
D0CC : 83F802       cmp eax,02          
D0CF : EB05         jmp 1000D0D6    ; set registered status forever
D0D1 : E86AF1FFFF   call 1000C240   ; <= always jump over this NAG
D0D6 : E835BAFFFF   call 10008B10
Compare the patch by checking the table below.

AddressOriginal opcodeOriginal mnemonicsPatched opcodePatched mnemonics
D0CF74 05je 1000D0D6EB 05jmps 1000D0D6

Note: disassemble the file "inststd.dll" with IDA. Try to search "call 1000C240" over the whole disassembly list. You will find that string only once. You might say: so what? This call causes the NAG to appear. Thus, if we have it here, it can be anywhere else in the executable. That's why we have to find all the places where it can be.

The advise! If you will ever find more than one of such call - DO NOT patch everywhere you've found it, but patch the call itself, so it return the value a program needs to think its registered.

Run CreateInstall. Compile your project again. Run the new setup.exe. WOW! There's no crappy message at all. Good. Let's finish the installation. Go in the folder into which you've just installed all the files ("C:/A/Biw application"). Run uninstall.exe. Double WOW!! No damn NAG here too. Well, it's because our conjecture was right: the same DLL was used in the installer and uninstaller during the compilation of the project.

That's all for that DLL, but there's some things I don't like in this program. They should be corrected.

Fixing "wrong" inscriptions

There's one thing we've left to do - to remove "Trial" word from the main program caption and from the about dialog of the Help menu.

Open CreateInstall.exe with Hiew. Search for the string "CreateInstall Trial", yes, exactly just like we see it in caption. I found one at address 38DDE. To remove damn word just correct byte 20 at 38DDD to 00. That's because we've found C-style string, which terminated by null (00) byte. Thus, if we put it to a place in the string, it will be terminated exactly where we have put the null character. Note: all C strings are terminated by null character, but Delphi strings have their length at the beginning of themselves. They have their length in the first byte or in the first four bytes. It depends on a string length.

Now search for the word "Trial". This word you might seen in the Help/About dialog. I found it at address 390A8. It looks so "Trial v%s". This's an usual C-construction. Replace it with " Full v%s". Other words, replace word "Trial" with " Full". Exactly so, because otherwise, if you will put null byte as the first byte, program will think that there's no string at all (string with zero length).

Run CreateInstall.exe. It looks good now. No delirium "Trial" word in caption. Check also Help/About dialog. In this dialog we see our " Full" word instead of the original variant. Now, when you see it you're understanding why did we add one space at the beginning of the string.

Final words

Set your system clock, let's say to 5 years forward and run the program again. It works fine. It means that help is honest and programmers have included only the sticky message at the start-up of an installation. Ok, now set your clock time back to the current year.

That was a short and not hard story. I hope you will learn something from it. As for me I like that program very much, because it's fast and takes a little of HDD space. To be honest, I've never seen such a good install maker. It has pretty fast compressor and fast decompressor. Install Shield has nothing to do with CreateInstall, because the first one is too slow. Other words, I recommend you to use this tool, because I've seen a lot of tools of such kind and I can say that CreateInstall is one of the best in this class of tools. The only pity is its weak protection.


All rights reversed (c)2004 - BiW Reversing - http://biw.rult.at - The challenge is yours

o find and patch an injected DLL
西周BC798年世界历史地图矢量文件SHP格式.zip 本资源为《西周BC798年世界历史地图矢量文件SHP格式》压缩包,文件大小约 24.84 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。 立即下载

相关推荐

西周BC1010年世界历史地图矢量文件SHP格式.zip

本资源为《西周BC1010年世界历史地图矢量文件SHP格式》压缩包,文件大小约 21.04 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。

复现水下航行器(NMPC)非线性模型预测控制分布式轨迹跟踪(Matlab代码实现)

内容概要:本文档围绕水下航行器(AUV)的非线性模型预测控制(NMPC)分布式轨迹跟踪技术展开,重点复现并实现了国际顶级期刊中提出的先进控制算法。该资源详细提供了基于Matlab的仿真代码,涵盖AUV的非线性动力学建模、多智能体系统协同控制、事件触发通信机制以及复杂海洋环境下分布式轨迹跟踪的优化求解过程。通过系统地构建NMPC控制器,实现对预设轨迹的高精度跟踪,同时有效处理系统约束与外部扰动。研究强调算法在多AUV协同任务中的适用性,突出其在节能通信与实时性方面的优势,是控制理论与工程实践相结合的典型范例; 适合人群:具备自动控制原理、非线性系统理论及Matlab编程基础的研究生、科研人员和工程技术开发者,尤其适用于从事水下机器人、智能控制、多智能体协同、路径规划与优化控制等方向的研究者; 使用场景及目标:① 深入理解非线性模型预测控制(NMPC)在欠驱动AUV轨迹跟踪中的设计与实现机制;② 复现并验证高水平学术论文中的控制策略,支撑科研创新与论文撰写;③ 探索事件触发机制下的分布式协同控制架构,提升多智能体系统的通信效率与控制性能; 阅读建议:建议结合现代控制理论相关教材与原始参考文献,逐行分析Matlab代码结构与算法流程,重点关注系统建模、代价函数构造、约束处理与优化求解器的调用方式。可通过调整控制参数、初始状态或引入环境干扰等方式进行仿真实验,以评估算法的鲁棒性、收敛性与工程实用性。

UnifyPy 2.0 是一个企业级跨平台Python应用打包工具

nifyPy 2.0 是一个企业级跨平台Python应用打包工具,支持将Python项目打包为Windows、macOS、Linux平台的原生安装包。 核心特性 多平台支持(64位): Windows (EXE)、macOS (DMG)、Linux (DEB+RPM) 并行构建: 支持多格式并行生成,显著提升构建效率 企业级功能: 自动回滚、会话管理、智能错误处理 优秀体验: Rich进度条、分阶段显示、详细日志 完整配置: 支持30+PyInstaller参数,JSON配置化 自动化工具: 第三方工具自动下载和管理 macOS权限管理: 自动生成权限文件、代码签名支持 智能路径处理: 相对路径自动解析为绝对路径 插件化架构: 基于事件总线与引擎的插件系统,支持外部插件扩展

北京大学4位数英验证码

北京大学4位数英验证码

城市生命线之长距离输水管线的监测与检测.pdf

城市生命线之长距离输水管线的监测与检测.pdf

AI大模型训练大规模智算中心建设方案.pdf

AI大模型训练大规模智算中心建设方案.pdf

&ldquo;十五五&rdquo;商业航天星链协同测控云平台建设方案.pdf

&ldquo;十五五&rdquo;商业航天星链协同测控云平台建设方案.pdf

智慧博物馆数字化平台建设方案.docx

智慧博物馆数字化平台建设方案.docx

多个无人船分布式编队+围捕协同控制算法Mtalab程序

多个无人船分布式编队+围捕协同控制算法Mtalab程序

数字教育AI大脑+AI智能体平台+场景规划方案.docx

数字教育AI大脑+AI智能体平台+场景规划方案.docx

产业协同智算行业可信数据空间AI大模型服务平台建设方案.pdf

产业协同智算行业可信数据空间AI大模型服务平台建设方案.pdf

【电机驱动控制】基于TMC9660的伺服系统开发与量产部署:从Bootloader配置到参数存储及脱机运行全流程

内容概要:本文详细介绍了TMC9660/ TMC9661高集成伺服电机驱控芯片的快速开发与批量生产全流程,重点围绕其两层配置机制展开:第一层为基于TOML文件的Bootloader硬件配置(如引脚复用、通信接口、LDO等),可通过UblTools工具临时下载或永久烧录至OTP;第二层为电机应用参数(如电机类型、PI参数、限幅、反馈等),在Parameter Mode下运行并通过TMCL命令进行整定与存储,保存于外部Flash中。文档按照实际工程落地顺序组织,涵盖从环境搭建、硬件配置加载、电机初始化、参数存储、脱机运行到产线自动化部署的完整流程,并提供了详细的工具使用说明、脚本示例及产线验证清单。; 适合人群:从事电机控制开发的硬件/固件工程师,具备一定嵌入式系统基础,正在使用或计划采用TMC9660系列芯片进行产品开发,尤其适用于需要实现快速原型验证并向批量生产过渡的研发团队。; 使用场景及目标:①掌握TMC9660的双层配置架构与启动流程;②完成电机系统的快速调试与三环(电流、速度、位置)参数整定;③实现参数的非易失性存储与上电自动恢复;④构建可复制的产线烧录与测试流程,确保产品一致性;⑤实现脱机运行(TMCL脚本自动执行)与MCU联机控制两种应用模式。; 阅读建议:建议按章节顺序通读,重点关注第3章(Bootloader配置)、第4章(电机初始化)和第8章(批量生产部署),并结合TMCL-IDE与UblTools实际操作。对于量产项目,务必理解OTP烧录的不可逆性及其保护机制(--boot/--no-boot),并在正式烧录前进行充分验证。附录中的命令速查与参数标志表可用于日常开发参考。

洗得越勤,废得越快:非氯洗乳胶手套手模失效的真相与系统解法.docx

技术分享、工艺技术

智能体长期记忆与个性化偏好管理系统详细设计方案.docx

智能体长期记忆与个性化偏好管理系统详细设计方案.docx

行政服务中心综合政务基于AI大模型建设方案.docx

行政服务中心综合政务基于AI大模型建设方案.docx

112702 离合器毂与刹车毂的工艺选择.pdf

技术分享、工艺技术

AI+5G 农村智慧污水处理运维云平台设计方案.pdf

AI+5G 农村智慧污水处理运维云平台设计方案.pdf

大型国有企业合规审查与内控风险Agent智能巡检系统建设方案.pdf

大型国有企业合规审查与内控风险Agent智能巡检系统建设方案.pdf

上一篇: SocksGun源码(类SocksCap)
下一篇: Windows Sockets错误码
iiprogram
博客等级 码龄25年 1068粉丝 1515原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址