Function at 0x405b70
Capabilities:
Create process on windows
Delete registry value
Manipulate boot configuration
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x407d4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8bc
push ebx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x8e0]
mov edi, dword [esp + 0x8dc]
lea edx, [esp + 0x14]
mov dword [esp + 0x8d0], 0
mov eax, dword [esi]
mov ecx, dword [edi]
push eax
push ecx
push str.SoftwareAutodeskAutoCAD_s_sProfilespinming
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
push esi
lea eax, [esp + 0x24]
push edi
push eax
mov byte [esp + 0x8dc], 1
call fcn.00405a20
add esp, 0xc
test al, al
je 0x405d63
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi]
mov edx, dword [edi]
push ecx
push edx
lea eax, [esp + 0x38]
push str.SoftwareAutodeskAutoCAD_s_sProfiles
push eax
mov byte [esp + 0x8e0], 2
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push 0x40a0d4
push ecx
push edx
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
mov bl, 3
push eax
push edx
mov byte [esp + 0x8dc], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x8d4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x8d0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x8d0], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push 0x80000001
call edi
mov edx, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov esi, eax
call ebx
test esi, esi
je 0x405d8f
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000001
mov dword [esp + 0x4c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405d2a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x40aa28
push ecx
mov byte [esp + 0x8dc], 5
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov byte [esp + 0x8d0], 2
call sub.MFC42.DLL_CString::CString
jmp 0x405d52
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
push 0
push eax
push ecx
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call ebx
test esi, esi
je 0x405e57
lea ecx, [esp + 0x30]
mov byte [esp + 0x8d0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x8d0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x8d0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4062e9
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
push str.General_Configuration
lea ecx, [esp + 0x28]
mov bl, 6
push eax
push ecx
mov byte [esp + 0x8dc], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8d4], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x8d0], bl
call sub.MFC42.DLL_CString::CString
push str.MenuFile
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8d0], 8
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push eax
push 0x80000001
call edi
test eax, eax
jne 0x405e22
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x8d0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x8d0], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x8d8]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00406310
add esp, 8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
push str.General
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x8dc], 9
call sub.MFC42.DLL_operator_1
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push eax
push 0x80000001
mov byte [esp + 0x8e4], 0xa
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, 0x800
test eax, eax
jne 0x405f2c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push str.ACAD
push ecx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x405f21
lea edx, [esp + 0xc8]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x405f21
cmp byte [eax + ecx - 1], 0x3b
je 0x405f21
push 0x40aa0c
lea ecx, [esp + 0x1c]
call fcn.0040719c
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push str.General
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8d4], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8d0], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x405fd6
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push edx
push 0x80000001
call edi
test eax, eax
jne 0x405fd6
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc8]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push str.ACAD
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x405fcb
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x8e8]
push 0x40aa0c
lea eax, [esp + 0x38]
push esi
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x8d4], 0xc
call sub.MFC42.DLL_CString::Find
test eax, eax
je 0x40608f
mov ecx, dword [esp + 0x34]
push 0x40ab34
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esi]
push 0x40ab34
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Replace
lea edx, [esp + 0x18]
lea ecx, [esp + 0x34]
push edx
call fcn.004071a2
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call edi
test eax, eax
jne 0x40608f
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.ACAD
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x406084
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x40ab30]
test eax, eax
jne 0x406141
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x8d0], 0xd
je 0x4060bf
mov ecx, eax
call fcn.00401050
jmp 0x4060c1
xor eax, eax
mov dword [0x40ab30], eax
lea edx, [esp + 0x48]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x48]
push 0x80
push edx
push eax
rep stosd dword es:[edi], eax
mov byte [esp + 0x8dc], 0xc
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x8d4], 0xe
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Delete
lea edx, [esp + 0x10]
mov ecx, 0x40ab2c
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x8d0], 0xc
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x40ab30]
lea eax, [esp + 0x3c]
push eax
call fcn.00402bc0
lea ecx, [esp + 0x3c]
push 0x40a0d4
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x8dc], 0xf
call sub.MFC42.DLL_operator_1
push str.PMCAD_Boot.ini
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x8d8], 0x10
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8d0], 0x12
call sub.MFC42.DLL_CString::CString
push 0x40a380
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x44]
mov bl, 0x13
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x8d8], bl
call fcn.00406f3e
lea eax, [esp + 0x3c]
mov byte [esp + 0x8d4], 0x14
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.NeedKillVirus
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x8e0], 0x15
mov ecx, esp
mov dword [esp + 0x54], esp
push str.RunCAD
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x8e0], bl
call fcn.004047e0
mov ecx, dword [esp + 0x48]
push 0x40a380
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x18
test eax, eax
jne 0x40624b
lea edx, [esp + 0x3c]
push str.ToolsCAD
lea eax, [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push 1
push 0
push ecx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x8d0], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x8d0], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8d0], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x8d0], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8d0], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x8d0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x8d0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x8d0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x8d0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x8c8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c8
ret