Skip to main content
2 of 8
added 4 characters in body
user avatar
user avatar

What are these functions for?

Sometimes when reversing the code - I see that each linked file is separated by these functions:

_$E19

_$E18

sometimes - there is no such separation (depending on the degree of compiler optimization).

What is their meaning?

.text:0000021C .text:0000021C ; =============== S U B R O U T I N E ======================================= .text:0000021C .text:0000021C .text:0000021C _$E19 proc near ; DATA XREF: .CRT$XCU:_$S20o .text:0000021C mov cl, byte ptr ds:??_B?1???id@?$ctype@G@std@@$D@@9@51 .text:00000222 mov al, 1 .text:00000224 test al, cl .text:00000226 jnz short loc_230 .text:00000228 or cl, al .text:0000022A mov byte ptr ds:??_B?1???id@?$ctype@G@std@@$D@@9@51, cl .text:00000230 .text:00000230 loc_230: ; CODE XREF: _$E19+Aj .text:00000230 jmp _$E18 .text:00000230 _$E19 endp .text:00000230 .text:00000230 ; --------------------------------------------------------------------------- .text:00000235 db 7 dup(90h) .text:00000235 _text ends .text:00000235 .text:0000023C ; =========================================================================== .text:0000023C .text:0000023C ; Segment type: Pure code .text:0000023C ; Segment permissions: Read/Execute .text:0000023C _text segment para public 'CODE' use32 .text:0000023C assume cs:_text .text:0000023C ;org 23Ch .text:0000023C ; COMDAT (pick no duplicate) .text:0000023C assume es:nothing, ss:nothing, ds:_CRT$XCU, fs:nothing, gs:nothing .text:0000023C .text:0000023C ; =============== S U B R O U T I N E ======================================= .text:0000023C .text:0000023C .text:0000023C _$E18 proc near ; CODE XREF: _$E19:loc_230j .text:0000023C push offset ?id@?$ctype@G@std@@$E ; void (__cdecl *)() .text:00000241 call _atexit .text:00000246 pop ecx .text:00000247 retn .text:00000247 _$E18 endp .text:00000247 .text:00000247 ; --------------------------------------------------------------------------- .text:00000248 db 4 dup(90h) .text:00000248 _text ends .text:00000248
user42316