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

Disassembly:
push 0xffffffffffffffff
push 0x408d73
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.00408566
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], ebx
call fcn.00408566
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 1
call fcn.00408566
push 0x40e344
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 0x40e300
push 0x80000002
mov byte [esp + 0x260], 4
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
jne 0x401aec
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 0x40e2f0
push ebp
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x401b90
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push 0xf003f
push ebx
push 0x40e300
push 0x80000001
call esi
cmp eax, ebx
jne 0x401b5d
cmp ebp, ebx
je 0x401b55
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 0x40e2e4
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 0x40e2d0
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.004018d0
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040856c
lea edx, [esp + 0x1c]
push 0x40e2c4
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.0040856c
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 4
call sub.MFC42.DLL_CString::CString
push 0x40e2b0
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 0x40ed1c
push ecx
push edx
push eax
call fcn.00401790
add esp, 0x14
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], 2
push 0x40ed1c
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 6
push ecx
push 0x40e268
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x2c]
cmp edx, ebx
je 0x401d06
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 0x40e260
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x3c]
push ecx
call fcn.00405410
add esp, 4
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::operator_1
mov edi, 0x40e24c
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.0040856c
lea eax, [esp + 0x1c]
push 0x40e240
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.0040856c
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 6
call sub.MFC42.DLL_CString::CString
push 0x40e228
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 0x40ed1c
push edx
push eax
push ecx
call fcn.00401790
add esp, 0x14
cmp ebp, ebx
je 0x401d87
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x24], ebp
lea edx, [esp + 0x18]
push 0x40e208
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.00403430
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 0x401de0
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