Lysozymes have primarily a bacteriolytic function (Probable). Shows antibacterial activity against Gram-positive bacterium M.luteus but shows no activity against Gram-negative bacterium E.coli (PubMed:25098233). Likely to play a role in the eradication of ingested pathogens during their passage through the intestine (Probable). Hydrolysis of (1->4)-beta-linkages between N-acetylmuramic acid and N-acetyl-D-glucosamine residues in a peptidoglycan and between N-acetyl-D-glucosamine residues in chitodextrins. Expressed only in the midgut where it is concentrated around the middle in all larval stages. By septic injury caused by dorsolateral puncturing with a needle contaminated with lipopolysaccharide (LPS) solution. Belongs to the glycosyl hydrolase 22 family.