Skip to content

Commit c2367d2

Browse files
committed
[REFACT] Removed unused functions from the stubs
1 parent 34e93e4 commit c2367d2

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

hldr32/hldr32.asm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ hldr_begin:
2222
;API CRC table, null terminated
2323
;-----------------------------------------------------------------------------
2424

25-
dd 0E9258E7Ah ;FlushInstructionCache
2625
dd 0C97C1FFFh ;GetProcAddress
2726
dd 03FC1BD8Dh ;LoadLibraryA
28-
dd 009CE0D4Ah ;VirtualAlloc
2927
db 0
3028

3129
;-----------------------------------------------------------------------------

hldr32/hldr32.inc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ struc mapstk
2424
endstruc
2525

2626
struc krncrcstk
27-
.kVirtualAlloc: resd 1
2827
.kLoadLibraryA: resd 1
2928
.kGetProcAddress: resd 1
30-
.kFlushInstructionCache: resd 1
3129
endstruc
3230

3331
struc _IMAGE_FILE_HEADER

hldr64/hldr64.asm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ regstksize equ 30h
2929
lodsq
3030
mov rbp, qword [rax + mDllBase]
3131
call parse_exports
32-
dd 0E9258E7Ah ;FlushInstructionCache
32+
3333
dd 0C97C1FFFh ;GetProcAddress
3434
dd 03FC1BD8Dh ;LoadLibraryA
35-
dd 009CE0D4Ah ;VirtualAlloc
3635
db 0
3736

3837
;-----------------------------------------------------------------------------
@@ -203,7 +202,6 @@ reloc_finished:
203202
;-----------------------------------------------------------------------------
204203
;call entrypoint
205204
;-----------------------------------------------------------------------------
206-
207205
mov eax, dword [rbp + _IMAGE_NT_HEADERS.nthOptionalHeader + _IMAGE_OPTIONAL_HEADER.ohAddressOfEntryPoint]
208206
add rax, qword [rbx]
209207
call rax

hldr64/hldr64.inc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ struc mapstk
2626
endstruc
2727

2828
struc krncrcstk
29-
.kVirtualAlloc: resq 1
3029
.kLoadLibraryA: resq 1
3130
.kGetProcAddress: resq 1
32-
.kFlushInstructionCache: resq 1
3331
endstruc
3432

3533
struc _IMAGE_FILE_HEADER

0 commit comments

Comments
 (0)