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

Disassembly:
push 0xffffffffffffffff
push 0x408af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00408300
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x248], ebx
call fcn.00408300
lea ecx, [esp + 0x14]
mov byte [esp + 0x248], 1
call fcn.00408300
push str.C:OKGFile_
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 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 + 0x25c], 4
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
jne 0x401a9c
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x24], ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
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 0x401b34
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 0x401b07
cmp ebp, ebx
je 0x401aff
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 + 0x38]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
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 + 0x38]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40e2d8
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.00401880
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040830c
lea edx, [esp + 0x20]
push str.OKGCon.exe
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 5
call fcn.0040830c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 4
call sub.MFC42.DLL_CString::CString
push 0x40e2b8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push ebx
push 0x40eb2c
push ecx
push edx
push eax
call fcn.00401740
add esp, 0x14
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 2
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 0x401c92
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x13c]
mov dword [esp + 0x34], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x13c]
push eax
lea eax, [esp + 0x34]
push ecx
push eax
push ebx
push str.Desktop
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x13c]
push ecx
call fcn.00405350
mov edi, 0x40e254
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x13c]
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 + 0x13c]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call fcn.0040830c
lea eax, [esp + 0x20]
push str.Uninst.exe
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 6
call fcn.0040830c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 4
call sub.MFC42.DLL_CString::CString
push 0x40e230
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ebx
push 0x40eb2c
push edx
push eax
push ecx
call fcn.00401740
add esp, 0x14
cmp ebp, ebx
je 0x401d13
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x24], ebp
lea edx, [esp + 0x18]
push 0x40e210
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov byte [esp + 0x248], 7
push eax
push 0xa8
call fcn.004035d0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 4
call sub.MFC42.DLL_CString::CString
cmp ebp, ebx
je 0x401d5b
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov byte [esp + 0x248], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x248], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x248], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x23c
ret