Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mirror4
dotacheater
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
dotacheater
/
embed_injectcode.asm
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
38 lines (31 loc) · 1.2 KB
master
Breadcrumbs
dotacheater
/
embed_injectcode.asm
Copy path
Top
File metadata and controls
Code
Blame
38 lines (31 loc) · 1.2 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;MASMPlus 代码模板 - 使用动态链接库
;这个工程模板演示了 MASMPlus 的多工程方式,由一个主程序与动态库组成
;动态库文件有自己的编译/链接设置,工程文件总是优先于主程序编译.
;模板每个工程组都还有res资源模块,使用资源编辑器编辑.编译时会自动链接.
;同时,请设置主程序文件与动态库文件工程组属性,两个模块之间的辅助输入才不会混乱.
;如果添加了新文件,首先请设置它的组ID,否则默认新文件总是被所有工程文件共享
;按下Ctrl点击文档选择栏多选,再单击右键,即可设置组,参数设置请在单个项目上单击右键
.386
.Model Flat, StdCall
Option Casemap :None
include windows.inc
include user32.inc
include kernel32.inc
include macro.asm
includelib kernel32.lib
includelib user32.lib
assume fs:nothing
.data?
buf db 1000h dup(?)
.CODE
START:
invoke CreateFile, offset CTEXT("DLL.dll"),GENERIC_READ,FILE_SHARE_READ,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0
mov esi, eax
invoke CreateFile, offset CTEXT("..\loader\console.exe"),GENERIC_WRITE,FILE_SHARE_READ,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0
mov edi, eax
invoke SetFilePointer, esi, 400h,0,FILE_BEGIN
invoke SetFilePointer, edi, 800h,0,FILE_BEGIN
invoke ReadFile, esi, offset buf, 1000h,esp,0
invoke WriteFile, edi, offset buf, 1000h, esp, 0
invoke ExitProcess, 0
END START
You can’t perform that action at this time.