Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
lief.PE.RELOCATIONS_BASE_TYPES.REL : "REL",
lief.PE.RELOCATIONS_BASE_TYPES.SECTION : "SECTION"
}
PE_RESOURCE_TYPES = {
lief.PE.RESOURCE_TYPES.ACCELERATOR : "ACCELERATOR",
lief.PE.RESOURCE_TYPES.ANICURSOR : "ANICURSOR",
lief.PE.RESOURCE_TYPES.ANIICON : "ANIICON",
lief.PE.RESOURCE_TYPES.BITMAP : "BITMAP",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
lief.PE.RESOURCE_TYPES.VERSION : "VERSION",
lief.PE.RESOURCE_TYPES.VXD : "VXD"
}
PE_RESOURCE_LANGS = {
lief.PE.RESOURCE_LANGS.AFRIKAANS : "AFRIKAANS",
lief.PE.RESOURCE_LANGS.ALBANIAN : "ALBANIAN",
lief.PE.RESOURCE_LANGS.ARABIC : "ARABIC",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
lief.PE.RESOURCE_TYPES.VERSION : "VERSION",
lief.PE.RESOURCE_TYPES.VXD : "VXD"
}
PE_RESOURCE_LANGS = {
lief.PE.RESOURCE_LANGS.AFRIKAANS : "AFRIKAANS",
lief.PE.RESOURCE_LANGS.ALBANIAN : "ALBANIAN",
lief.PE.RESOURCE_LANGS.ARABIC : "ARABIC",
lief.PE.RESOURCE_LANGS.ARMENIAN : "ARMENIAN",
lief.PE.RESOURCE_LANGS.ASSAMESE : "ASSAMESE",
lief.PE.RESOURCE_LANGS.AZERI : "AZERI",
lief.PE.RESOURCE_LANGS.BANGLA : "BANGLA",
lief.PE.RESOURCE_LANGS.BASQUE : "BASQUE",
lief.PE.RESOURCE_LANGS.BELARUSIAN : "BELARUSIAN",
lief.PE.RESOURCE_LANGS.BRETON : "BRETON",
lief.PE.RESOURCE_LANGS.BULGARIAN : "BULGARIAN",
lief.PE.RESOURCE_LANGS.CATALAN : "CATALAN",
lief.PE.RESOURCE_TYPES.ANIICON : "ANIICON",
lief.PE.RESOURCE_TYPES.BITMAP : "BITMAP",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
lief.PE.RESOURCE_TYPES.VERSION : "VERSION",
lief.PE.RESOURCE_TYPES.VXD : "VXD"
}
PE_RESOURCE_LANGS = {
lief.PE.RESOURCE_LANGS.AFRIKAANS : "AFRIKAANS",
lief.PE.RESOURCE_LANGS.ALBANIAN : "ALBANIAN",
lief.PE.RESOURCE_LANGS.ARABIC : "ARABIC",
lief.PE.RESOURCE_LANGS.ARMENIAN : "ARMENIAN",
lief.PE.RESOURCE_LANGS.ASSAMESE : "ASSAMESE",
lief.PE.RESOURCE_LANGS.AZERI : "AZERI",
lief.PE.RESOURCE_LANGS.BANGLA : "BANGLA",
lief.PE.RESOURCE_LANGS.BASQUE : "BASQUE",
lief.PE.RESOURCE_LANGS.BELARUSIAN : "BELARUSIAN",
lief.PE.RESOURCE_LANGS.BRETON : "BRETON",
PE_RESOURCE_TYPES = {
lief.PE.RESOURCE_TYPES.ACCELERATOR : "ACCELERATOR",
lief.PE.RESOURCE_TYPES.ANICURSOR : "ANICURSOR",
lief.PE.RESOURCE_TYPES.ANIICON : "ANIICON",
lief.PE.RESOURCE_TYPES.BITMAP : "BITMAP",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
lief.PE.RESOURCE_TYPES.VERSION : "VERSION",
lief.PE.RESOURCE_TYPES.VXD : "VXD"
}
PE_RESOURCE_LANGS = {
lief.PE.RESOURCE_LANGS.AFRIKAANS : "AFRIKAANS",
lief.PE.RESOURCE_LANGS.ALBANIAN : "ALBANIAN",
lief.PE.RESOURCE_LANGS.ARABIC : "ARABIC",
lief.PE.RESOURCE_LANGS.ARMENIAN : "ARMENIAN",
lief.PE.RESOURCE_LANGS.ASSAMESE : "ASSAMESE",
lief.PE.RESOURCE_LANGS.AZERI : "AZERI",
lief.PE.RELOCATIONS_BASE_TYPES.HIGH : "HIGH",
lief.PE.RELOCATIONS_BASE_TYPES.HIGH3ADJ : "HIGH3ADJ",
lief.PE.RELOCATIONS_BASE_TYPES.HIGHADJ : "HIGHADJ",
lief.PE.RELOCATIONS_BASE_TYPES.HIGHLOW : "HIGHLOW",
lief.PE.RELOCATIONS_BASE_TYPES.JMPADDR : "JMPADDR",
lief.PE.RELOCATIONS_BASE_TYPES.JMPADDR16 : "JMPADDR16",
lief.PE.RELOCATIONS_BASE_TYPES.LOW : "LOW",
lief.PE.RELOCATIONS_BASE_TYPES.REL : "REL",
lief.PE.RELOCATIONS_BASE_TYPES.SECTION : "SECTION"
}
PE_RESOURCE_TYPES = {
lief.PE.RESOURCE_TYPES.ACCELERATOR : "ACCELERATOR",
lief.PE.RESOURCE_TYPES.ANICURSOR : "ANICURSOR",
lief.PE.RESOURCE_TYPES.ANIICON : "ANIICON",
lief.PE.RESOURCE_TYPES.BITMAP : "BITMAP",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
lief.PE.RESOURCE_TYPES.VERSION : "VERSION",
lief.PE.RELOCATIONS_BASE_TYPES.DIR64 : "DIR64",
lief.PE.RELOCATIONS_BASE_TYPES.HIGH : "HIGH",
lief.PE.RELOCATIONS_BASE_TYPES.HIGH3ADJ : "HIGH3ADJ",
lief.PE.RELOCATIONS_BASE_TYPES.HIGHADJ : "HIGHADJ",
lief.PE.RELOCATIONS_BASE_TYPES.HIGHLOW : "HIGHLOW",
lief.PE.RELOCATIONS_BASE_TYPES.JMPADDR : "JMPADDR",
lief.PE.RELOCATIONS_BASE_TYPES.JMPADDR16 : "JMPADDR16",
lief.PE.RELOCATIONS_BASE_TYPES.LOW : "LOW",
lief.PE.RELOCATIONS_BASE_TYPES.REL : "REL",
lief.PE.RELOCATIONS_BASE_TYPES.SECTION : "SECTION"
}
PE_RESOURCE_TYPES = {
lief.PE.RESOURCE_TYPES.ACCELERATOR : "ACCELERATOR",
lief.PE.RESOURCE_TYPES.ANICURSOR : "ANICURSOR",
lief.PE.RESOURCE_TYPES.ANIICON : "ANIICON",
lief.PE.RESOURCE_TYPES.BITMAP : "BITMAP",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
}
PE_RESOURCE_TYPES = {
lief.PE.RESOURCE_TYPES.ACCELERATOR : "ACCELERATOR",
lief.PE.RESOURCE_TYPES.ANICURSOR : "ANICURSOR",
lief.PE.RESOURCE_TYPES.ANIICON : "ANIICON",
lief.PE.RESOURCE_TYPES.BITMAP : "BITMAP",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
lief.PE.RESOURCE_TYPES.VERSION : "VERSION",
lief.PE.RESOURCE_TYPES.VXD : "VXD"
}
PE_RESOURCE_LANGS = {
lief.PE.RESOURCE_LANGS.AFRIKAANS : "AFRIKAANS",
lief.PE.RESOURCE_LANGS.ALBANIAN : "ALBANIAN",
lief.PE.RESOURCE_LANGS.ARABIC : "ARABIC",
lief.PE.RESOURCE_LANGS.ARMENIAN : "ARMENIAN",
lief.PE.RESOURCE_LANGS.ASSAMESE : "ASSAMESE",
lief.PE.RELOCATIONS_BASE_TYPES.HIGH3ADJ : "HIGH3ADJ",
lief.PE.RELOCATIONS_BASE_TYPES.HIGHADJ : "HIGHADJ",
lief.PE.RELOCATIONS_BASE_TYPES.HIGHLOW : "HIGHLOW",
lief.PE.RELOCATIONS_BASE_TYPES.JMPADDR : "JMPADDR",
lief.PE.RELOCATIONS_BASE_TYPES.JMPADDR16 : "JMPADDR16",
lief.PE.RELOCATIONS_BASE_TYPES.LOW : "LOW",
lief.PE.RELOCATIONS_BASE_TYPES.REL : "REL",
lief.PE.RELOCATIONS_BASE_TYPES.SECTION : "SECTION"
}
PE_RESOURCE_TYPES = {
lief.PE.RESOURCE_TYPES.ACCELERATOR : "ACCELERATOR",
lief.PE.RESOURCE_TYPES.ANICURSOR : "ANICURSOR",
lief.PE.RESOURCE_TYPES.ANIICON : "ANIICON",
lief.PE.RESOURCE_TYPES.BITMAP : "BITMAP",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
lief.PE.RESOURCE_TYPES.VERSION : "VERSION",
lief.PE.RESOURCE_TYPES.VXD : "VXD"
lief.PE.RESOURCE_TYPES.BITMAP : "BITMAP",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
lief.PE.RESOURCE_TYPES.VERSION : "VERSION",
lief.PE.RESOURCE_TYPES.VXD : "VXD"
}
PE_RESOURCE_LANGS = {
lief.PE.RESOURCE_LANGS.AFRIKAANS : "AFRIKAANS",
lief.PE.RESOURCE_LANGS.ALBANIAN : "ALBANIAN",
lief.PE.RESOURCE_LANGS.ARABIC : "ARABIC",
lief.PE.RESOURCE_LANGS.ARMENIAN : "ARMENIAN",
lief.PE.RESOURCE_LANGS.ASSAMESE : "ASSAMESE",
lief.PE.RESOURCE_LANGS.AZERI : "AZERI",
lief.PE.RESOURCE_LANGS.BANGLA : "BANGLA",
lief.PE.RESOURCE_LANGS.BASQUE : "BASQUE",
lief.PE.RESOURCE_LANGS.BELARUSIAN : "BELARUSIAN",
lief.PE.RESOURCE_LANGS.BRETON : "BRETON",
lief.PE.RESOURCE_LANGS.BULGARIAN : "BULGARIAN",
lief.PE.RESOURCE_TYPES.ACCELERATOR : "ACCELERATOR",
lief.PE.RESOURCE_TYPES.ANICURSOR : "ANICURSOR",
lief.PE.RESOURCE_TYPES.ANIICON : "ANIICON",
lief.PE.RESOURCE_TYPES.BITMAP : "BITMAP",
lief.PE.RESOURCE_TYPES.CURSOR : "CURSOR",
lief.PE.RESOURCE_TYPES.DIALOG : "DIALOG",
lief.PE.RESOURCE_TYPES.DLGINCLUDE : "DLGINCLUDE",
lief.PE.RESOURCE_TYPES.FONT : "FONT",
lief.PE.RESOURCE_TYPES.FONTDIR : "FONTDIR",
lief.PE.RESOURCE_TYPES.GROUP_CURSOR : "GROUP_CURSOR",
lief.PE.RESOURCE_TYPES.GROUP_ICON : "GROUP_ICON",
lief.PE.RESOURCE_TYPES.HTML : "HTML",
lief.PE.RESOURCE_TYPES.ICON : "ICON",
lief.PE.RESOURCE_TYPES.MANIFEST : "MANIFEST",
lief.PE.RESOURCE_TYPES.MENU : "MENU",
lief.PE.RESOURCE_TYPES.MESSAGETABLE : "MESSAGETABLE",
lief.PE.RESOURCE_TYPES.PLUGPLAY : "PLUGPLAY",
lief.PE.RESOURCE_TYPES.RCDATA : "RCDATA",
lief.PE.RESOURCE_TYPES.STRING : "STRING",
lief.PE.RESOURCE_TYPES.VERSION : "VERSION",
lief.PE.RESOURCE_TYPES.VXD : "VXD"
}
PE_RESOURCE_LANGS = {
lief.PE.RESOURCE_LANGS.AFRIKAANS : "AFRIKAANS",
lief.PE.RESOURCE_LANGS.ALBANIAN : "ALBANIAN",
lief.PE.RESOURCE_LANGS.ARABIC : "ARABIC",
lief.PE.RESOURCE_LANGS.ARMENIAN : "ARMENIAN",
lief.PE.RESOURCE_LANGS.ASSAMESE : "ASSAMESE",
lief.PE.RESOURCE_LANGS.AZERI : "AZERI",
lief.PE.RESOURCE_LANGS.BANGLA : "BANGLA",
lief.PE.RESOURCE_LANGS.BASQUE : "BASQUE",