Function at 0x4018c0
Capabilities:
Copy file
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x408873
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.0040809a
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], ebx
call fcn.0040809a
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 1
call fcn.0040809a
push str.C:OKGFile_
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 2
call sub.MFC42.DLL_CString::CString_2
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
mov byte [esp + 0x260], 4
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
jne 0x40195c
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x24], ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x140]
lea edx, [esp + 0x140]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x10]
push ecx
push edx
push eax
push ebx
push str.Common_Programs
push ebp
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x401a00
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call esi
cmp eax, ebx
jne 0x4019cd
cmp ebp, ebx
je 0x4019c5
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x24], ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x140]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x140]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push str.Programs
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x140]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40d260
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00401740
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004080a6
lea edx, [esp + 0x1c]
push str.OKGCon.exe
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 5
call fcn.004080a6
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 4
call sub.MFC42.DLL_CString::CString
push 0x40d240
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push ebx
push 0x40dc8c
push ecx
push edx
push eax
call fcn.00401600
add esp, 0x14
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], 2
push 0x40dc8c
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 6
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x2c]
cmp edx, ebx
je 0x401b76
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x34], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push ecx
push eax
push ebx
push str.Desktop
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x3c]
push ecx
call fcn.00405110
add esp, 4
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::operator_1
mov edi, 0x40d1dc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x40]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call fcn.004080a6
lea eax, [esp + 0x1c]
push str.Uninst.exe
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 7
call fcn.004080a6
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 6
call sub.MFC42.DLL_CString::CString
push 0x40d1b8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push ebx
push 0x40dc8c
push edx
push eax
push ecx
call fcn.00401600
add esp, 0x14
cmp ebp, ebx
je 0x401bf7
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x24], ebp
lea edx, [esp + 0x18]
push 0x40d198
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov byte [esp + 0x24c], 8
push eax
push 0xa8
call fcn.00403170
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x24c], 4
call sub.MFC42.DLL_CString::CString
cmp ebp, ebx
je 0x401c50
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret