Function at 0x401000
Capabilities:
Create process on windows
Log keystrokes via polling
Read .ini file
Set registry value

Disassembly:
mov eax, 0x10c4
call fcn.00402000
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, str.SOFTWAREBrotherPrinterInstInfo
lea edi, [esp + 0x160]
lea eax, [esp + 0xcd4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10d8]
push 0x400
movsw word es:[edi], word [esi]
push eax
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xcd4]
lea eax, [esp + 0x5c8]
push edx
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x5c8]
push ecx
call ebp
dec eax
mov bl, 0x5c
js 0x401080
cmp byte [esp + eax + 0x5c8], bl
je 0x4010fe
dec eax
jns 0x401070
mov esi, dword [esp + 0x1c]
and esi, 0xffff
cmp byte [esp + esi + 0x183], bl
jne 0x40115c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x184]
push str.Brinst.ini
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x184]
push ecx
lea edx, [esp + 0xad0]
push 0x104
push edx
push str.InstDataName
push str.InstDataName
push str.Installer
call ebx
lea eax, [esp + 0xacc]
lea ecx, [esp + 0x5c8]
push eax
push ecx
call edi
lea edx, [esp + 0x5c8]
push str.Disk
push edx
call edi
jmp 0x4011cf
mov byte [esp + eax + 0x5c9], 0
lea edx, [esp + 0x5c8]
lea eax, [esp + 0x184]
push edx
push eax
call esi
lea ecx, [esp + 0x184]
push ecx
call ebp
lea edx, [esp + 0x5c8]
mov esi, eax
push edx
call ebp
sub eax, 2
js 0x401084
cmp byte [esp + eax + 0x5c8], bl
jne 0x401147
cmp edi, 1
jne 0x40114f
xor edi, edi
dec eax
jns 0x401137
jmp 0x401084
mov byte [esp + eax + 0x5c9], 0
jmp 0x401084
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x184]
push 0x40629c
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x184]
push ecx
lea edx, [esp + 0xad0]
push 0x104
push edx
push str.WebDataName
push str.WebDataName
push str.Installer
call ebx
lea eax, [esp + 0x5c8]
push 0x40628c
push eax
call esi
lea ecx, [esp + 0xacc]
lea edx, [esp + 0x5c8]
push ecx
push edx
call esi
lea eax, [esp + 0x5c8]
push str.Disk
push eax
call esi
mov edi, esi
lea ecx, [esp + 0x184]
lea edx, [esp + 0x4c]
push ecx
push 0x104
push edx
push str.SetupDisk
push str.SetupDisk
push str.Installer
call ebx
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x5c8]
push eax
push ecx
call edi
lea edx, [esp + 0x5c8]
push str.Setup.exe
push edx
call edi
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
lea edx, [esp + 0x178]
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401d8a
lea eax, [esp + 0xcd4]
push eax
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0xcd4]
mov edx, dword [esp + 0x10]
push eax
push ecx
push 1
push 0
push str.ModulePath
push edx
call esi
lea eax, [esp + 0x184]
lea ecx, [esp + 0x4c]
push eax
push 0x104
push ecx
push str.Company
push str.Company
push str.Installer
call ebx
lea edx, [esp + 0x4c]
push edx
call ebp
push eax
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.Company
push ecx
call esi
lea edx, [esp + 0x184]
lea eax, [esp + 0x38]
push edx
push 0x104
push eax
push str.NoData
push str.ModelName
push str.Installer
call ebx
lea ecx, [esp + 0x38]
push ecx
call ebp
lea edx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.ModelName
push eax
call esi
lea ecx, [esp + 0x4c]
push str.NoData
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401311
lea edx, [esp + 0x38]
lea eax, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401329
lea ecx, [esp + 0x4c]
push 0x406248
push ecx
call edi
lea edx, [esp + 0x38]
lea eax, [esp + 0x4c]
push edx
push eax
call edi
lea ecx, [esp + 0x4c]
push ecx
call ebp
lea edx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.PrinterName
push eax
call esi
lea ecx, [esp + 0x184]
lea edx, [esp + 0x4c]
push ecx
push 0x104
push edx
push str.Type
push str.Type
push str.Installer
call ebx
lea eax, [esp + 0x4c]
push eax
call ebp
lea ecx, [esp + 0x4c]
push eax
mov edx, dword [esp + 0x14]
push ecx
push 1
push 0
push str.ModelType
push edx
call esi
lea eax, [esp + 0x184]
lea ecx, [esp + 0x4c]
push eax
push 0x104
push ecx
push str.Twainname
push str.Twainname
push str.Installer
call ebx
lea edx, [esp + 0x4c]
push edx
call ebp
push eax
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.TwainName
push ecx
call esi
lea edx, [esp + 0x184]
lea eax, [esp + 0x4c]
push edx
push 0x104
push eax
push str.Nodata
push str.PdfName
push str.Installer
call ebx
lea ecx, [esp + 0x4c]
push ecx
call ebp
lea edx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.PdfName
push eax
call esi
lea ecx, [esp + 0x184]
lea edx, [esp + 0x4c]
push ecx
push 0x104
push edx
push str.Nodata
push str.PdfNameMain
push str.Installer
call ebx
lea eax, [esp + 0x4c]
push eax
call ebp
lea ecx, [esp + 0x4c]
push eax
mov edx, dword [esp + 0x14]
push ecx
push 1
push 0
push str.PdfNameMain
push edx
call esi
lea eax, [esp + 0x184]
lea ecx, [esp + 0x4c]
push eax
push 0x104
push ecx
push str.Nodata
push str.PdfNamePc
push str.Installer
call ebx
lea edx, [esp + 0x4c]
push edx
call ebp
push eax
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.PdfNamePc
push ecx
call esi
lea edx, [esp + 0x184]
lea eax, [esp + 0x4c]
push edx
push 0x104
push eax
push str.Nodata
push str.PdfTop1
push str.Installer
call ebx
lea ecx, [esp + 0x4c]
push ecx
call ebp
lea edx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.PdfTop1
push eax
call esi
lea ecx, [esp + 0x184]
lea edx, [esp + 0x4c]
push ecx
push 0x104
push edx
push str.Nodata
push str.PdfTop2
push str.Installer
call ebx
lea eax, [esp + 0x4c]
push eax
call ebp
lea ecx, [esp + 0x4c]
push eax
mov edx, dword [esp + 0x14]
push ecx
push 1
push 0
push str.PdfTop2
push edx
call esi
lea eax, [esp + 0x184]
push eax
push 0x104
lea ecx, [esp + 0x54]
push ecx
push str.Nodata
push str.PdfTop3
push str.Installer
call ebx
lea edx, [esp + 0x4c]
push edx
call ebp
push eax
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.PdfTop3
push ecx
call esi
lea edx, [esp + 0x184]
lea eax, [esp + 0x4c]
push edx
push 0x104
push eax
push str.Nodata
push str.ReadMeName
push str.Installer
call ebx
lea ecx, [esp + 0x4c]
push ecx
call ebp
lea edx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.ReadMeName
push eax
call esi
lea ecx, [esp + 0x184]
lea edx, [esp + 0x4c]
push ecx
push 0x104
push edx
push str.Nodata
push str.DiffLangName
push str.Installer
call ebx
lea eax, [esp + 0x4c]
push eax
call ebp
lea ecx, [esp + 0x4c]
push eax
mov edx, dword [esp + 0x14]
push ecx
push 1
push 0
push str.DiffLangName
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [esp + 0x184]
push eax
push 0
push str.LangID
push str.Installer
call edi
lea ecx, [esp + 0x20]
push 4
mov edx, dword [esp + 0x14]
push ecx
push 4
push 0
push str.LangID
push edx
mov dword [esp + 0x38], eax
call esi
lea eax, [esp + 0xbd0]
lea ecx, [esp + 0x5c8]
push eax
push ecx
mov edx, dword [esp + 0x28]
push edx
call fcn.00401da0
add esp, 0xc
lea eax, [esp + 0x184]
lea ecx, [esp + 0x4c]
push eax
push 0x104
push ecx
push str.ProductID
push str.ProductID
push str.Installer
call ebx
lea edx, [esp + 0x4c]
push edx
call ebp
push eax
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.ProductID
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push str.InfNumberUsb
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.InfNumberUsb
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push str.InfNumberPara
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.InfNumberPara
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push str.PrinterOnly
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.PrinterOnly
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push str.ByteCode
push str.Installer
call edi
push 4
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.ByteCode
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push str.Asia
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 4
push 0
push str.Asia
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push 0x40615c
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
push 4
push 0
push 0x40615c
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 1
push str.PcfaxTx
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 4
push 0
push str.PcfaxTx
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 1
push str.PcfaxRx
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.PcfaxRx
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 1
push str.Twain
push str.Installer
call edi
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push 4
push 0
push str.Twain
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 1
push str.NetTwain
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.NetTwain
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 1
push str.Prtdrv
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.Prtdrv
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 1
push str.PrtdrvPs
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.PrtdrvPs
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 1
push 0x406120
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push 0x406120
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 1
push str.Font
push str.Installer
call edi
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov ecx, dword [esp + 0x18]
push 4
push 0
push str.Font
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 1
push str.Media
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.Media
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push 0x40610c
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push 0x40610c
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push str.PageManager
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.PageManager
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push str.ScanStation
push str.Installer
call edi
push 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.ScanStation
push ecx
call esi
lea edx, [esp + 0x184]
push edx
push 0
push str.CC2.0
push str.Installer
call edi
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
mov ecx, dword [esp + 0x1c]
push 0
push str.CC2.0
push ecx
call esi
lea edx, [esp + 0x184]
lea eax, [esp + 0x4c]
push edx
push 0x104
push eax
push str.Nodata
push str.CC2CommonRegFile
push str.Installer
call ebx
lea ecx, [esp + 0x4c]
push ecx
call ebp
lea edx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.CC2CommonRegFile
push eax
call esi
lea ecx, [esp + 0x184]
lea edx, [esp + 0x4c]
push ecx
push 0x104
push edx
push str.Nodata
push str.CC2ModelRegFile
push str.Installer
call ebx
lea eax, [esp + 0x4c]
push eax
call ebp
lea ecx, [esp + 0x4c]
push eax
mov edx, dword [esp + 0x14]
push ecx
push 1
push 0
push str.CC2ModelRegFile
push edx
call esi
lea eax, [esp + 0x184]
push eax
push 0
push str.UsersGuide
push str.Installer
call edi
lea ecx, [esp + 0x14]
push 4
mov edx, dword [esp + 0x14]
push ecx
push 4
push 0
push str.UsersGuide
push edx
mov dword [esp + 0x2c], eax
call esi
lea eax, [esp + 0x184]
lea ecx, [esp + 0x4c]
push eax
push 0x104
push ecx
push str.Nodata
push str.OLRKey
push str.Installer
call ebx
lea edx, [esp + 0x4c]
push edx
call ebp
push eax
lea eax, [esp + 0x50]
push eax
push 1
push 0
push str.OLRKey
mov ecx, dword [esp + 0x24]
push ecx
call esi
lea edx, [esp + 0x184]
lea eax, [esp + 0x4c]
push edx
push 0x104
push eax
push str.Nodata
push str.SCURL
push str.Installer
call ebx
lea ecx, [esp + 0x4c]
push ecx
call ebp
lea edx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.SCURL
push eax
call esi
lea ecx, [esp + 0x184]
push ecx
push 0
push 0x4060a8
push str.Installer
call edi
lea edx, [esp + 0x14]
push 4
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push 4
push 0
push 0x4060a8
push eax
call esi
lea ecx, [esp + 0x184]
push ecx
push 0
push str.StatusMonitor
push str.Installer
call edi
lea edx, [esp + 0x14]
push 4
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push 4
push 0
push str.StatusMonitor
push eax
call esi
lea ecx, [esp + 0x184]
push ecx
push 0
push str.InstallCheck
push str.Installer
call edi
lea edx, [esp + 0x14]
push 4
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push 4
push 0
push str.InstallCheck
push eax
call esi
lea ecx, [esp + 0x184]
push ecx
push 0
push str.ExternalNet
push str.Installer
call edi
push 4
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push edx
push 4
push 0
push str.ExternalNet
push eax
call esi
lea ecx, [esp + 0x184]
push ecx
push 1
push str.PPort
push str.Installer
call edi
push 0x10
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x401c21
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push str.PPort
push eax
call esi
lea ecx, [esp + 0x28]
push 4
mov edx, dword [esp + 0x14]
push ecx
push 4
push 0
push str.MflProExe
push edx
mov dword [esp + 0x40], 1
call esi
call fcn.00401df0
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x584]
rep stosd dword es:[edi], eax
cmp byte [esp + 0x5c8], 0x22
je 0x401cd6
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x9c8]
push 0x406064
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x9cc]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x5c8]
lea edx, [esp + 0x9c8]
push ecx
push edx
call esi
lea eax, [esp + 0x9c8]
push 0x406064
push eax
call esi
lea ecx, [esp + 0x9c8]
lea edx, [esp + 0x5c8]
push ecx
push edx
call edi
jmp 0x401cdc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x5c8]
push 0x406248
push eax
call esi
lea ecx, [esp + 0xbd0]
lea edx, [esp + 0x5c8]
push ecx
push edx
call esi
lea eax, [esp + 0x150]
lea ecx, [esp + 0x584]
push eax
push ecx
push 0
push 0
push 0
push 1
push 0
lea edx, [esp + 0x5e4]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401d71
lea eax, [esp + 0x5c8]
lea ecx, [esp + 0xbd0]
push eax
push str.Cannot_start_Application_Installer.___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0xbd0]
push 0
push str.Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c4
ret 0x10
mov eax, dword [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c4
ret 0x10