FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MS-DOS-kernel/utils/upxdevic.asm at master · Programuserbash/MS-DOS-kernel · GitHub
Programuserbash
/
MS-DOS-kernel
Public
forked from
FDOS/kernel
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MS-DOS-kernel
/
utils
/
upxdevic.asm
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (35 loc) · 825 Bytes
Breadcrumbs
MS-DOS-kernel
/
utils
/
upxdevic.asm
Copy path
File metadata and controls
45 lines (35 loc) · 825 Bytes
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
39
40
41
42
43
44
45
%if
0
UPX preparation stub for DOS/SYS form
at
compressed FreeDOS kernel
Public Domain by C. Masloch
,
2022
%endif
cpu
8086
org
0
bootloadunit:
; (byte of short jump re-used)
start:
jmp
strict short entry
times
(
32
-
4
)
-
($
-
$$) db
0
; area for CONFIG block
bootloadstack:
; (dword re-used for original ss:sp)
entry:
; common setup (copied from kernel.asm)
push
cs
pop
ds
xor
di
,
di
mov
byte
[
di
+
bootloadunit
-
$$
],
bl
push
bp
mov
word
[
di
+
bootloadstack
-
$$
],
sp
mov
word
[
di
+
bootloadstack
+
2
-
$$
],
ss
; the UPX DOS/SYS depacker does not need a certain ss:sp
; however it appears to need cs == ds
mov
ds
,
word
[
di
+
patchcsip
+
2
-
$$
]
jmp
0
:
0
patchcsip: equ $
-
4
end:
times
0C0h
-
($
-
$$)
nop
entry_
common
:
times
100h
-
($
-
$$) db
0
dw
0
dw
0
dw
0
dw
patchcsip
dw
end
Back
|
FazBrowse Home
|
New Git URL