Skip to content

Instantly share code, notes, and snippets.

@herrcore
Created October 28, 2021 04:39
Show Gist options
  • Save herrcore/22e820f1e8a99238070cd7c5b350261e to your computer and use it in GitHub Desktop.
Save herrcore/22e820f1e8a99238070cd7c5b350261e to your computer and use it in GitHub Desktop.
LANGID Windows Locals enum for quickly parsing malware language checks
enum langid_country
{
Afrikaans = 0x36,
Afrikaans_South_Africa = 0x436,
Albanian = 0x1c,
Albanian_Albania = 0x41c,
Alsatian = 0x84,
Alsatian_France = 0x484,
Amharic = 0x5e,
Amharic_Ethiopia = 0x45e,
Arabic = 0x1,
Arabic_Algeria = 0x1401,
Arabic_Bahrain = 0x3c01,
Arabic_Egypt = 0xc01,
Arabic_Iraq = 0x801,
Arabic_Jordan = 0x2c01,
Arabic_Kuwait = 0x3401,
Arabic_Lebanon = 0x3001,
Arabic_Libya = 0x1001,
Arabic_Morocco = 0x1801,
Arabic_Oman = 0x2001,
Arabic_Qatar = 0x4001,
Arabic_Saudi_Arabia = 0x401,
Arabic_Syria = 0x2801,
Arabic_Tunisia = 0x1c01,
Arabic_U_A_E_ = 0x3801,
Arabic_Yemen = 0x2401,
Armenian = 0x2b,
Armenian_Armenia = 0x42b,
Assamese = 0x4d,
Assamese_India = 0x44d,
Azerbaijani = 0x2c,
Azerbaijani_Cyrillic = 0x742c,
Azerbaijani_Cyrillic__Azerbaijan = 0x82c,
Azerbaijani_Latin = 0x782c,
Azerbaijani_Latin__Azerbaijan = 0x42c,
Bangla = 0x45,
Bangla_Bangladesh = 0x845,
Bangla_India = 0x445,
Bashkir = 0x6d,
Bashkir_Russia = 0x46d,
Basque = 0x2d,
Basque_Basque = 0x42d,
Belarusian = 0x23,
Belarusian_Belarus = 0x423,
Bosnian = 0x781a,
Bosnian_Cyrillic = 0x641a,
Bosnian_Cyrillic__Bosnia_and_Herzegovina = 0x201a,
Bosnian_Latin = 0x681a,
Bosnian_Latin__Bosnia_and_Herzegovina = 0x141a,
Breton = 0x7e,
Breton_France = 0x47e,
Bulgarian = 0x2,
Bulgarian_Bulgaria = 0x402,
Burmese = 0x55,
Burmese_Myanmar = 0x455,
Catalan = 0x3,
Catalan_Catalan = 0x403,
Central_Atlas_Tamazight_Arabic__Morocco = 0x45f,
Central_Atlas_Tamazight_Tifinagh__Morocco = 0x105f,
Central_Kurdish = 0x92,
Central_Kurdish_Arabic = 0x7c92,
Central_Kurdish_Iraq = 0x492,
Cherokee = 0x5c,
Cherokee_Cherokee = 0x7c5c,
Chinese = 0x7804,
Chinese_Simplified = 0x4,
Chinese_Simplified_Legacy = 0x4,
Chinese_Simplified__PRC = 0x804,
Chinese_Simplified__Singapore = 0x1004,
Chinese_Traditional = 0x7c04,
Chinese_Traditional_Legacy = 0x7c04,
Chinese_Traditional__Hong_Kong_S_A_R_ = 0xc04,
Chinese_Traditional__Macao_S_A_R_ = 0x1404,
Chinese_Traditional__Taiwan = 0x404,
Corsican = 0x83,
Corsican_France = 0x483,
Croatian = 0x1a,
Croatian_Croatia = 0x41a,
Croatian_Latin__Bosnia_and_Herzegovina = 0x101a,
Czech = 0x5,
Czech_Czech_Republic = 0x405,
Danish = 0x6,
Danish_Denmark = 0x406,
Dari = 0x8c,
Dari_Afghanistan = 0x48c,
Divehi = 0x65,
Divehi_Maldives = 0x465,
Dutch = 0x13,
Dutch_Belgium = 0x813,
Dutch_Netherlands = 0x413,
Dzongkha_Bhutan = 0xc51,
Edo = 0x66,
Edo_Nigeria = 0x466,
English = 0x9,
English_Australia = 0xc09,
English_Belize = 0x2809,
English_Canada = 0x1009,
English_Caribbean = 0x2409,
English_Hong_Kong_SAR = 0x3c09,
English_India = 0x4009,
English_Indonesia = 0x3809,
English_Ireland = 0x1809,
English_Jamaica = 0x2009,
English_Malaysia = 0x4409,
English_New_Zealand = 0x1409,
English_Philippines = 0x3409,
English_Singapore = 0x4809,
English_South_Africa = 0x1c09,
English_Trinidad_and_Tobago = 0x2c09,
English_United_Kingdom = 0x809,
English_United_States = 0x409,
English_Zimbabwe = 0x3009,
Estonian = 0x25,
Estonian_Estonia = 0x425,
Faroese = 0x38,
Faroese_Faroe_Islands = 0x438,
Filipino = 0x64,
Filipino_Philippines = 0x464,
Finnish = 0xb,
Finnish_Finland = 0x40b,
French = 0xc,
French_Belgium = 0x80c,
French_Cameroon = 0x2c0c,
French_Canada = 0xc0c,
French_Caribbean = 0x1c0c,
French_Congo_DRC = 0x240c,
French_Cote_dIvoire = 0x300c,
French_France = 0x40c,
French_Haiti = 0x3c0c,
French_Luxembourg = 0x140c,
French_Mali = 0x340c,
French_Monaco = 0x180c,
French_Morocco = 0x380c,
French_Reunion = 0x200c,
French_Senegal = 0x280c,
French_Switzerland = 0x100c,
Frisian = 0x62,
Frisian_Netherlands = 0x462,
Fulah = 0x67,
Fulah_Latin = 0x7c67,
Fulah_Latin__Senegal = 0x867,
Fulah_Nigeria = 0x467,
Galician = 0x56,
Galician_Galician = 0x456,
Georgian = 0x37,
Georgian_Georgia = 0x437,
German = 0x7,
German_Austria = 0xc07,
German_Germany = 0x407,
German_Liechtenstein = 0x1407,
German_Luxembourg = 0x1007,
German_Switzerland = 0x807,
Greek = 0x8,
Greek_Greece = 0x408,
Greenlandic = 0x6f,
Greenlandic_Greenland = 0x46f,
Guarani = 0x74,
Guarani_Paraguay = 0x474,
Gujarati = 0x47,
Gujarati_India = 0x447,
Hausa = 0x68,
Hausa_Latin = 0x7c68,
Hausa_Latin__Nigeria = 0x468,
Hawaiian = 0x75,
Hawaiian_United_States = 0x475,
Hebrew = 0xd,
Hebrew_Israel = 0x40d,
Hindi = 0x39,
Hindi_India = 0x439,
Hungarian = 0xe,
Hungarian_Hungary = 0x40e,
Ibibio = 0x69,
Ibibio_Nigeria = 0x469,
Icelandic = 0xf,
Icelandic_Iceland = 0x40f,
Igbo = 0x70,
Igbo_Nigeria = 0x470,
Indonesian = 0x21,
Indonesian_Indonesia = 0x421,
Inuktitut = 0x5d,
Inuktitut_Latin = 0x7c5d,
Inuktitut_Latin__Canada = 0x85d,
Inuktitut_Syllabics = 0x785d,
Inuktitut_Syllabics__Canada = 0x45d,
Invariant_Language_Invariant_Country = 0x7f,
Irish = 0x3c,
Irish_Ireland = 0x83c,
isiXhosa = 0x34,
isiXhosa_South_Africa = 0x434,
isiZulu = 0x35,
isiZulu_South_Africa = 0x435,
Italian = 0x10,
Italian_Italy = 0x410,
Italian_Switzerland = 0x810,
Japanese = 0x11,
Japanese_Japan = 0x411,
Kannada = 0x4b,
Kannada_India = 0x44b,
Kanuri = 0x71,
Kanuri_Nigeria = 0x471,
Kashmiri = 0x60,
Kashmiri_Devanagari__India = 0x860,
Kashmiri_Perso_Arabic = 0x460,
Kazakh = 0x3f,
Kazakh_Kazakhstan = 0x43f,
Khmer = 0x53,
Khmer_Cambodia = 0x453,
Kiche = 0x7c86,
Kiche_Guatemala = 0x486,
Kinyarwanda = 0x87,
Kinyarwanda_Rwanda = 0x487,
Kiswahili = 0x41,
Kiswahili_Kenya = 0x441,
Konkani = 0x57,
Konkani_India = 0x457,
Korean = 0x12,
Korean_Korea = 0x412,
Kyrgyz = 0x40,
Kyrgyz_Kyrgyzstan = 0x440,
Lao = 0x54,
Lao_Lao_P_D_R_ = 0x454,
Latin = 0x76,
Latin_World = 0x476,
Latvian = 0x26,
Latvian_Latvia = 0x426,
Lithuanian = 0x27,
Lithuanian_Lithuania = 0x427,
Lower_Sorbian = 0x7c2e,
Lower_Sorbian_Germany = 0x82e,
Luxembourgish = 0x6e,
Luxembourgish_Luxembourg = 0x46e,
Macedonian_Former_Yugoslav_Republic_of_Macedonia = 0x42f,
Macedonian_FYROM = 0x2f,
Malay = 0x3e,
Malay_Brunei_Darussalam = 0x83e,
Malay_Malaysia = 0x43e,
Malayalam = 0x4c,
Malayalam_India = 0x44c,
Maltese = 0x3a,
Maltese_Malta = 0x43a,
Manipuri = 0x58,
Manipuri_India = 0x458,
Maori = 0x81,
Maori_New_Zealand = 0x481,
Mapudungun = 0x7a,
Mapudungun_Chile = 0x47a,
Marathi = 0x4e,
Marathi_India = 0x44e,
Mohawk = 0x7c,
Mohawk_Mohawk = 0x47c,
Mongolian = 0x50,
Mongolian_Cyrillic = 0x7850,
Mongolian_Cyrillic__Mongolia = 0x450,
Mongolian_Traditional_Mongolian = 0x7c50,
Mongolian_Traditional_Mongolian__Mongolia = 0xc50,
Mongolian_Traditional_Mongolian__PRC = 0x850,
Nepali = 0x61,
Nepali_India = 0x861,
Nepali_Nepal = 0x461,
Norwegian = 0x14,
Norwegian_Bokmal = 0x7c14,
Norwegian_Nynorsk = 0x7814,
Norwegian__Bokmal_Norway = 0x414,
Norwegian__Nynorsk_Norway = 0x814,
Occitan = 0x82,
Occitan_France = 0x482,
Odia = 0x48,
Odia_India = 0x448,
Oromo = 0x72,
Oromo_Ethiopia = 0x472,
Papiamento = 0x79,
Papiamento_Caribbean = 0x479,
Pashto = 0x63,
Pashto_Afghanistan = 0x463,
Persian = 0x29,
Persian_Iran = 0x429,
Polish = 0x15,
Polish_Poland = 0x415,
Portuguese = 0x16,
Portuguese_Brazil = 0x416,
Portuguese_Portugal = 0x816,
Punjabi = 0x46,
Punjabi_Arabic = 0x7c46,
Punjabi_India = 0x446,
Punjabi_Islamic_Republic_of_Pakistan = 0x846,
Quechua = 0x6b,
Quechua_Bolivia = 0x46b,
Quechua_Ecuador = 0x86b,
Quechua_Peru = 0xc6b,
Romanian = 0x18,
Romanian_Moldova = 0x818,
Romanian_Romania = 0x418,
Romansh = 0x17,
Romansh_Switzerland = 0x417,
Russian = 0x19,
Russian_Moldova = 0x819,
Russian_Russia = 0x419,
Sakha = 0x85,
Sakha_Russia = 0x485,
Sami_Inari = 0x703b,
Sami_Lule = 0x7c3b,
Sami_Northern = 0x3b,
Sami_Skolt = 0x743b,
Sami_Southern = 0x783b,
Sami__Inari_Finland = 0x243b,
Sami__Lule_Norway = 0x103b,
Sami__Lule_Sweden = 0x143b,
Sami__Northern_Finland = 0xc3b,
Sami__Northern_Norway = 0x43b,
Sami__Northern_Sweden = 0x83b,
Sami__Skolt_Finland = 0x203b,
Sami__Southern_Norway = 0x183b,
Sami__Southern_Sweden = 0x1c3b,
Sanskrit = 0x4f,
Sanskrit_India = 0x44f,
Scottish_Gaelic = 0x91,
Scottish_Gaelic_United_Kingdom = 0x491,
Serbian = 0x7c1a,
Serbian_Cyrillic = 0x6c1a,
Serbian_Cyrillic__Bosnia_and_Herzegovina = 0x1c1a,
Serbian_Cyrillic__Montenegro = 0x301a,
Serbian_Cyrillic__Serbia = 0x281a,
Serbian_Latin = 0x701a,
Serbian_Latin__Bosnia_and_Herzegovina = 0x181a,
Serbian_Latin__Montenegro = 0x2c1a,
Serbian_Latin__Serbia = 0x241a,
Sesotho_sa_Leboa = 0x6c,
Sesotho_sa_Leboa_South_Africa = 0x46c,
Setswana = 0x32,
Setswana_Botswana = 0x832,
Setswana_South_Africa = 0x432,
Sindhi = 0x59,
Sindhi_Arabic = 0x7c59,
Sindhi_Devanagari__India = 0x459,
Sindhi_Islamic_Republic_of_Pakistan = 0x859,
Sinhala = 0x5b,
Sinhala_Sri_Lanka = 0x45b,
Slovak = 0x1b,
Slovak_Slovakia = 0x41b,
Slovenian = 0x24,
Slovenian_Slovenia = 0x424,
Somali = 0x77,
Somali_Somalia = 0x477,
Southern_Sotho = 0x30,
Southern_Sotho_South_Africa = 0x430,
Spanish = 0xa,
Spanish_Argentina = 0x2c0a,
Spanish_Venezuela = 0x200a,
Spanish_Bolivia = 0x400a,
Spanish_Chile = 0x340a,
Spanish_Colombia = 0x240a,
Spanish_Costa_Rica = 0x140a,
Spanish_Cuba = 0x5c0a,
Spanish_Dominican_Republic = 0x1c0a,
Spanish_Ecuador = 0x300a,
Spanish_El_Salvador = 0x440a,
Spanish_Guatemala = 0x100a,
Spanish_Honduras = 0x480a,
Spanish_Latin_America = 0x580a,
Spanish_Mexico = 0x80a,
Spanish_Nicaragua = 0x4c0a,
Spanish_Panama = 0x180a,
Spanish_Paraguay = 0x3c0a,
Spanish_Peru = 0x280a,
Spanish_Puerto_Rico = 0x500a,
Spanish_Spain = 0xc0a,
Spanish_United_States = 0x540a,
Spanish_Uruguay = 0x380a,
Swedish = 0x1d,
Swedish_Finland = 0x81d,
Swedish_Sweden = 0x41d,
Syriac = 0x5a,
Syriac_Syria = 0x45a,
Tajik = 0x28,
Tajik_Cyrillic = 0x7c28,
Tajik_Cyrillic__Tajikistan = 0x428,
Tamazight = 0x5f,
Tamazight_Latin = 0x7c5f,
Tamazight_Latin__Algeria = 0x85f,
Tamazight_Tifinagh = 0x785f,
Tamil = 0x49,
Tamil_India = 0x449,
Tamil_Sri_Lanka = 0x849,
Tatar = 0x44,
Tatar_Russia = 0x444,
Telugu = 0x4a,
Telugu_India = 0x44a,
Thai = 0x1e,
Thai_Thailand = 0x41e,
Tibetan = 0x51,
Tibetan_PRC = 0x451,
Tigrinya = 0x73,
Tigrinya_Eritrea = 0x873,
Tigrinya_Ethiopia = 0x473,
Tsonga = 0x31,
Tsonga_South_Africa = 0x431,
Turkish = 0x1f,
Turkish_Turkey = 0x41f,
Turkmen = 0x42,
Turkmen_Turkmenistan = 0x442,
Ukrainian = 0x22,
Ukrainian_Ukraine = 0x422,
Upper_Sorbian = 0x2e,
Upper_Sorbian_Germany = 0x42e,
Urdu = 0x20,
Urdu_India = 0x820,
Urdu_Islamic_Republic_of_Pakistan = 0x420,
Uyghur = 0x80,
Uyghur_PRC = 0x480,
Uzbek = 0x43,
Uzbek_Cyrillic = 0x7843,
Uzbek_Cyrillic__Uzbekistan = 0x843,
Uzbek_Latin = 0x7c43,
Uzbek_Latin__Uzbekistan = 0x443,
Valencian_Spain = 0x803,
Venda = 0x33,
Venda_South_Africa = 0x433,
Vietnamese = 0x2a,
Vietnamese_Vietnam = 0x42a,
Welsh = 0x52,
Welsh_United_Kingdom = 0x452,
Wolof = 0x88,
Wolof_Senegal = 0x488,
Yi = 0x78,
Yi_PRC = 0x478,
Yiddish = 0x3d,
Yiddish_World = 0x43d,
Yoruba = 0x6a,
Yoruba_Nigeria = 0x46a,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment