Function at 0x40608d
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x40dd98]
push eax
mov ecx, dword [str.SystemCurrentControlSetServicesClass_]
push ecx
push 0x40e728
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [str.Moxa_Smartio_Industio_multiport_board]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [str.Moxa_Smartio_Industio_multiport_board]
push eax
push 1
push 0
push 0
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 2
push 0x40e730
push 1
push 0
mov edx, dword [str.Icon]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [0x40e684]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [0x40e684]
push edx
push 1
push 0
mov eax, dword [str.Installer]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 2
push 0x40e734
push 1
push 0
mov edx, dword [str.SilentInstall]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x40dd98]
push eax
mov ecx, dword [str.SystemCurrentControlSetServicesClass_]
push ecx
push 0x40e738
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp dword [ebp + 0x10], 0
je 0x4061dd
mov edx, dword [ebp + 0xc]
shl edx, 4
mov eax, dword [edx + 0x40ecd0]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 4
mov edx, dword [ecx + 0x40ecd4]
mov dword [ebp - 4], edx
jmp 0x4061fe
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x18
mov ecx, dword [eax + 0x40ee48]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x18
mov eax, dword [edx + 0x40ee4c]
mov dword [ebp - 4], eax
mov ecx, dword [0x40de74]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [0x40de74]
push edx
push 1
push 0
mov eax, dword [str.DevLoader]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [ebp - 0x10c]
push eax
push 1
push 0
mov ecx, dword [str.DriverDesc]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [str.CONFIGMG]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [str.CONFIGMG]
push ecx
push 1
push 0
mov edx, dword [str.Enumerator]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [str.mxsicfg.dll]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [str.mxsicfg.dll]
push edx
push 1
push 0
mov eax, dword [str.EnumPropPages]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [str.MXSIBRD.INF]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [str.MXSIBRD.INF]
push eax
push 1
push 0
mov ecx, dword [str.InfPath]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0
mov edx, dword [str.InfSection]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret