Anti-lipopolysaccharide factors (ALFs) with a LPS-binding domain (LBD) are considered to have broad spectrum antimicrobial activities and certain antiviral properties in crustaceans. FcALF2 was one isoform of ALFs isolated from the Chinese shrimp Fenneropenaeus chinensis. Our previous study showed that a modified LBD domain (named LBDv) of FcALF2 exhibited a highly enhanced antimicrobial activity. In the present study, a modified FcALF2 gene (mFcALF2), in which the LBD was substituted by LBDv, was designed and synthesized. This gene was successfully expressed in yeast Pichia pastoris GS115 eukaryotic expression system, and the characteristics of the recombinant protein mFcALF2 were analyzed. mFcALF2 exhibited apparent antibacterial activities against Gram-negative bacteria, including Escherichia coli, Vibrio alginolyticus, Vibrio harveyi, and Vibrio parahaemolyticus, and Gram-positive bacteria, including Bacillus licheniformis and Staphylococcus epidermidis. In addition, mFcALF2 could reduce the propagation of white spot syndrome virus (WSSV) in vivo by pre-incubation with virus. The present study paves the way for developing antimicrobial drugs in aquaculture.