Plays fundamental roles in nuclear assembly, chromatin organization, gene expression and gonad development. May potently compress chromatin structure and be involved in membrane recruitment and chromatin decondensation during nuclear assembly. Contains 2 non-specific dsDNA-binding sites which may promote DNA cross-bridging. Exploited by retroviruses for inhibiting self-destructing autointegration of retroviral DNA, thereby promoting integration of viral DNA into the host chromosome. EMD and BAF are cooperative cofactors of HIV-1 infection. Association of EMD with the viral DNA requires the presence of BAF and viral integrase. The association of viral DNA with chromatin requires the presence of BAF and EMD.