File tree Expand file tree Collapse file tree 8 files changed +1679
-1640
lines changed Expand file tree Collapse file tree 8 files changed +1679
-1640
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
- extern _DisableThreadLibraryCalls@ 4
2
- extern _MainThread@ 4
3
- extern _CreateThread@ 24
1
+ ; --------------------------------------------------------------------------- ;
2
+ ; Exported Functions ;
3
+ ; --------------------------------------------------------------------------- ;
4
4
5
- section .text
6
- global _DllMain@ 12
5
+ global _DllMain@ 12
7
6
8
- %define DLL_PROCESS_ATTACH 1
7
+ ; --------------------------------------------------------------------------- ;
8
+ ; Imported Functions ;
9
+ ; --------------------------------------------------------------------------- ;
9
10
11
+ extern _DisableThreadLibraryCalls@ 4
12
+ extern _CreateThread@ 24
13
+ extern _MainThread@ 4
14
+
15
+ ; --------------------------------------------------------------------------- ;
16
+ ; Definitions ;
17
+ ; --------------------------------------------------------------------------- ;
18
+
19
+ TRUE EQU 1
20
+ DLL_PROCESS_ATTACH EQU 1
21
+
22
+ ; --------------------------------------------------------------------------- ;
23
+ ; Executable Code ;
24
+ ; --------------------------------------------------------------------------- ;
25
+
26
+ section .text
10
27
_DllMain@ 12 :
11
- cmp byte [ esp + 0x8 ], DLL_PROCESS_ATTACH
12
- jne exit
13
- push dword [ esp + 0x4 ]
14
- call _DisableThreadLibraryCalls@ 4
15
- push 0
16
- push 0
17
- push dword [ esp + 0x4 ]
18
- push _MainThread@ 4
19
- push 0
20
- push 0
21
- call _CreateThread@ 24
28
+ cmp dword [ esp + 0x8 ], DLL_PROCESS_ATTACH
29
+ jne exit
30
+ push dword [ esp + 0x4 ]
31
+ call _DisableThreadLibraryCalls@ 4
32
+ push 0
33
+ push 0
34
+ push dword [ esp + 0x4 ]
35
+ push _MainThread@ 4
36
+ push 0
37
+ push 0
38
+ call _CreateThread@ 24
22
39
exit:
23
- mov eax , 1
24
- ret 12
40
+ mov eax , TRUE
41
+ ret 12
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments