Function at 0x406ad0
Capabilities:
Delete file
Get common file path
Persist via run registry key
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x834
mov eax, dword [0x43f194]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x83c], eax
xor eax, eax
mov ecx, 0x41
mov edi, 0x441d28
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x441f30
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x18]
mov dword [0x440270], eax
mov dword [0x440268], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x104
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x18]
push ecx
call fcn.0041156a
add esp, 4
cmp word [esp + eax*2 + 0x16], 0x5c
je 0x406b5b
lea edx, [esp + 0x18]
push 0x4301a0
push edx
call fcn.004115bd
add esp, 8
lea eax, [esp + 0x18]
push str.Lang.txt
push eax
call fcn.004115bd
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push 0xa
lea ecx, [esp + 0x634]
movzx edx, ax
push ecx
push edx
mov word [0x4402b8], ax
call fcn.00411eee
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x104
push 0x4402ba
push str.Failed
lea ecx, [esp + 0x640]
push ecx
push str.LANGUAGES
call ebx
push str.Failed
push 0x4402ba
call fcn.00412da1
add esp, 8
test eax, eax
jne 0x406bec
push str.English
mov ecx, 0x41
mov edi, 0x4402ba
push 0x4402ba
rep stosd dword es:[edi], eax
call fcn.004115e7
add esp, 8
push 0x4402ba
mov ecx, esi
call fcn.004061e0
test eax, eax
jne 0x406c2b
push str._r_nLanguage_Directory_not_in_CD
mov ecx, 0x442370
call fcn.00402000
xor eax, eax
push str.English
mov ecx, 0x41
mov edi, 0x4402ba
push 0x4402ba
rep stosd dword es:[edi], eax
call fcn.004115e7
add esp, 8
push 0x4402ba
mov ecx, 0x442370
call fcn.00402000
lea edi, [esi + 0xa0]
push str.Agilent
push edi
call fcn.004115e7
add esp, 8
push edi
mov ecx, esi
call fcn.004062d0
lea edx, [esp + 0x428]
push edx
push 0x104
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x428]
push eax
call fcn.0041156a
add esp, 4
cmp word [esp + eax*2 + 0x426], 0x5c
je 0x406c9b
lea ecx, [esp + 0x428]
push 0x4301a0
push ecx
call fcn.004115bd
add esp, 8
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x220]
lea edx, [esp + 0x428]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x224]
push eax
call fcn.004115e7
lea ecx, [esp + 0x228]
push 0x4402ba
push ecx
call fcn.004115bd
lea edx, [esp + 0x230]
push str._strings.dll
push edx
call fcn.004115bd
add esp, 0x18
push 2
push 0
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x441300
push 0x4410f8
mov dword [0x4404c4], eax
call fcn.004115e7
push str.HPHP_LaserJet_M1005_MFP
push 0x4410f8
call fcn.004115bd
push str.HP_LaserJet_M1005
push 0x4404c8
call fcn.004115e7
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x406da7
lea edx, [esp + 0x14]
push edx
push 0x441710
push eax
push eax
mov eax, dword [esp + 0x20]
push str.Common_Programs
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x441710
call fcn.0041156a
add esp, 4
cmp word [eax*2 + 0x44170e], 0x5c
je 0x406d93
push 0x4301a0
push 0x441710
call fcn.004115bd
add esp, 8
push str.HPHP_LaserJet_M1005_MFP
push 0x441710
call fcn.004115bd
add esp, 8
jmp 0x406dc3
push esi
push 0x104
push 0x441710
push str.Failed
push str.ProgramGroupPath
push str.SETUP_SETTINGS
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
mov dword [esp + 0x28], 0x100
call edi
test eax, eax
jne 0x406e4b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x441918
push 0
push 0
push str.Programs
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x441918
call fcn.0041156a
add esp, 4
cmp word [eax*2 + 0x441916], 0x5c
je 0x406e37
push 0x4301a0
push 0x441918
call fcn.004115bd
add esp, 8
push str.HPHP_LaserJet_M1005_MFP
push 0x441918
call fcn.004115bd
add esp, 8
jmp 0x406e67
push esi
push 0x104
push 0x441918
push str.Failed
push str.ProgramGroupPath
push str.SETUP_SETTINGS
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x431988
push 0x441918
call fcn.00412da1
add esp, 8
test eax, eax
je 0x406e9e
push 0x431984
push 0x441918
call fcn.00411f9f
add esp, 8
test eax, eax
jne 0x406eb0
push 0x441710
push 0x441918
call fcn.004115e7
add esp, 8
push esi
push 0x104
push 0x440ae0
push str.Failed
push str.PrintInf
push str.SETUP_FILES
call ebx
push esi
push 0x104
push 0x440ce8
push str.Failed
push str.ScanInf
push str.SETUP_FILES
call ebx
push esi
push 0x104
push 0x4408d8
push str.Failed
push str.MSIFiles
push str.SETUP_FILES
call ebx
push esi
push 0x104
push 0x442138
push str.Failed
push str.ScanLangFiles
push str.SETUP_FILES
call ebx
push 0x4410f8
mov ecx, 0x442370
mov edi, eax
call fcn.00402000
push str._:_Program_files_path1_r_n
mov ecx, 0x442370
call fcn.00402000
push 0x441710
mov ecx, 0x442370
call fcn.00402000
push str._:_Program_files_path2_r_n
mov ecx, 0x442370
call fcn.00402000
push 0x441918
mov ecx, 0x442370
call fcn.00402000
push str.:_start_menu_path_r_n
mov ecx, 0x442370
call fcn.00402000
push 0x4404c8
mov ecx, 0x442370
call fcn.00402000
push str.:_printer_name_r_n
mov ecx, 0x442370
call fcn.00402000
push 0x440ce8
mov ecx, 0x442370
call fcn.00402000
push str.:_Scanner_Inf_r_n
mov ecx, 0x442370
call fcn.00402000
push 0x440ae0
mov ecx, 0x442370
call fcn.00402000
push str.:_Printer_Inf_r_n
mov ecx, 0x442370
call fcn.00402000
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x83c]
mov eax, edi
call fcn.00411bef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret