Function at 0x406591
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.00415750
push ebx
push esi
push edi
call fcn.00408073
mov ecx, 0x41e780
call fcn.004070cc
lea ecx, [ebp - 0xe8]
mov byte [ebp - 5], al
call fcn.00407177
push dword [ebp + 8]
lea ecx, [ebp - 0x94]
call fcn.00406de1
lea eax, [ebp + 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406600
lea ecx, [ebp - 4]
call fcn.004070b5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0x64
mov dword [ebp - 0x4c], ebx
call fcn.0040533e
push dword [ebp - 0x48]
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x58], 0x41a3dc
push eax
call fcn.004091e3
lea ecx, [ebp - 0x1c]
call fcn.004062bc
lea ecx, [ebp - 0x48]
mov dword [ebp + 8], ebx
push ecx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push str.ISUSPM_Startup
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x1c]
call fcn.00406295
cmp dword [ebp - 0x4c], ebx
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, str.bootstrap
je 0x406681
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x406681
push 1
push 1
push ebx
push esi
lea ecx, [ebp - 0x94]
call fcn.00406e34
test al, al
je 0x4066a0
call fcn.004081bd
call fcn.0040834f
push 1
push 1
push ebx
push esi
lea ecx, [ebp - 0x94]
call fcn.00406e34
test al, al
jne 0x4066be
push 1
push 1
push ebx
push str.startup
lea ecx, [ebp - 0x94]
call fcn.00406e34
test al, al
je 0x4066eb
call fcn.0040834f
lea ecx, [ebp - 0x58]
call fcn.004017a8
lea ecx, [ebp - 4]
call fcn.004070b5
lea ecx, [ebp - 0x94]
call fcn.00406e0b
lea ecx, [ebp - 0xe8]
call fcn.00407450
xor eax, eax
jmp 0x406ddc
call fcn.00407493
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x40683a
lea ecx, [ebp - 0x30]
call fcn.00401794
mov esi, 0x41a3e0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x30], esi
call fcn.00401794
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x80], esi
call fcn.00401794
push dword [0x41e778]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x44], esi
push 0x62
call fcn.00401af1
push dword [0x41e778]
lea ecx, [ebp - 0x44]
push 0x49
call fcn.00401af1
push dword [0x41e778]
lea ecx, [ebp - 0x30]
push 0x4b
call fcn.00401af1
push 0x26
lea eax, [ebp + 0xc]
pop esi
lea ecx, [ebp - 0x30]
push 1
push ebx
push 1
push eax
mov dword [ebp + 0xc], esi
call fcn.00409179
push eax
lea ecx, [ebp - 0x30]
call fcn.00401bb4
push 1
push ebx
lea eax, [ebp + 0xc]
push 1
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp + 0xc], esi
call fcn.00409179
push eax
lea ecx, [ebp - 0x30]
call fcn.00401bb4
push 0x41d4dc
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.0040533e
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x41a3dc
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.004016bb
lea ecx, [ebp - 0x1c]
call fcn.004017a8
mov esi, dword [ebp - 0x24]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.004016bb
lea ecx, [ebp - 0x80]
call fcn.0040184c
mov esi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x44]
call fcn.0040184c
push 0x30
push esi
push dword [ebp - 0x40]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x44]
call fcn.004017a8
lea ecx, [ebp - 0x80]
call fcn.004017a8
lea ecx, [ebp - 0x30]
call fcn.004017a8
lea ecx, [ebp - 0x58]
call fcn.004017a8
lea ecx, [ebp - 4]
call fcn.004070b5
lea ecx, [ebp - 0x94]
call fcn.00406e0b
lea ecx, [ebp - 0xe8]
call fcn.00407450
or eax, 0xffffffff
jmp 0x406ddc
call fcn.00407556
cmp eax, 5
jge 0x40698e
lea ecx, [ebp - 0x44]
call fcn.00401794
mov esi, 0x41a3e0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x44], esi
call fcn.00401794
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x6c], esi
call fcn.00401794
push dword [0x41e778]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x30], esi
push 0x62
call fcn.00401af1
push str.You_must_have_Internet_Explorer_5.0_or_higher.
lea ecx, [ebp - 0x80]
call fcn.00408dac
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x70], 0x409
call fcn.00401ec0
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x20], eax
call fcn.004017a8
push dword [0x41e778]
lea ecx, [ebp - 0x44]
push 0x4b
call fcn.00401af1
push 0x26
lea eax, [ebp + 0xc]
pop esi
lea ecx, [ebp - 0x44]
push 1
push ebx
push 1
push eax
mov dword [ebp + 0xc], esi
call fcn.00409179
push eax
lea ecx, [ebp - 0x44]
call fcn.00401bb4
push 1
push ebx
lea eax, [ebp + 0xc]
push 1
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp + 0xc], esi
call fcn.00409179
push eax
lea ecx, [ebp - 0x44]
call fcn.00401bb4
push 0x41d4dc
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.0040533e
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x41a3dc
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004016bb
lea ecx, [ebp - 0x1c]
call fcn.004017a8
mov esi, dword [ebp - 0x38]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004016bb
lea ecx, [ebp - 0x6c]
call fcn.0040184c
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x30]
call fcn.0040184c
push 0x30
push esi
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x30]
call fcn.004017a8
lea ecx, [ebp - 0x6c]
call fcn.004017a8
lea ecx, [ebp - 0x44]
call fcn.004017a8
lea ecx, [ebp - 0x58]
call fcn.004017a8
lea ecx, [ebp - 4]
call fcn.004070b5
jmp 0x406dc3
lea ecx, [ebp - 0x11c]
call fcn.0040864b
lea ecx, [ebp - 0x110]
call fcn.0040864b
lea eax, [ebp - 0x120]
mov ecx, 0x41e790
push eax
mov dword [ebp - 0x120], 0x41a4a8
call fcn.004089d7
push 0x4020
call fcn.0041577f
cmp eax, ebx
pop ecx
je 0x4069da
mov ecx, eax
call fcn.00403bce
mov dword [ebp - 0xc], eax
jmp 0x4069dd
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0xb8]
push 5
push eax
call fcn.0040c71f
pop ecx
pop ecx
lea ecx, [ebp - 0xa8]
call fcn.00401794
push dword [0x41e778]
mov esi, 0x41a3e0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
push 0x60
call fcn.00401af1
cmp dword [ebp - 0x9c], ebx
je 0x406a2a
push dword [ebp - 0x9c]
call edi
test eax, eax
jne 0x406a61
push str.Downloaded_Program_Updates
lea ecx, [ebp - 0x6c]
call fcn.00408dac
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0xa8]
push eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x5c], 0x409
call fcn.00401ec0
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x98], eax
call fcn.004017a8
push dword [ebp - 0x9c]
lea ecx, [ebp - 0xb8]
call fcn.004025c0
push 0x41e76c
lea ecx, [ebp - 0xb8]
call fcn.004025c0
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0xb8]
push eax
lea ecx, [esi + 8]
call fcn.00401ec0
push 1
lea ecx, [ebp - 0x94]
pop edi
push edi
push edi
push ebx
push str.scheduler
call fcn.00406e34
test al, al
je 0x406d5f
cmp byte [ebp - 5], bl
jne 0x406d06
push 0x1000
lea eax, [ebp - 0x1318]
push ebx
push eax
mov dword [ebp - 0x318], ebx
call fcn.00415790
add esp, 0xc
lea eax, [ebp - 0x1318]
mov ecx, esi
push eax
call fcn.0040409d
cmp eax, 0xfffffffe
jne 0x406b26
push 0x41d428
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push 0xa
push eax
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0xe8]
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0x41a3dc
call fcn.00407286
lea ecx, [ebp - 0x1c]
call fcn.004017a8
jmp 0x406b38
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0xe8]
push eax
call fcn.004073b7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x2c]
mov ecx, 0x41e780
push eax
call fcn.0040711b
cmp dword [ebp - 0x318], ebx
jle 0x406c9e
push ebx
lea ecx, [ebp - 0x1a4]
call fcn.0041162b
push ebx
push ebx
lea ecx, [ebp - 0x1a4]
call fcn.00408df7
test eax, eax
je 0x406c93
push 0x80000
lea ecx, [ebp - 0x1a4]
push dword [ebp + 0xc]
call fcn.00411dfa
lea ecx, [ebp - 0x120]
call fcn.004086fe
cmp eax, edi
mov dword [ebp + 8], eax
mov byte [ebp + 0xc], bl
je 0x406ba8
push 2
pop edi
xor esi, esi
cmp edi, ebx
je 0x406c93
jle 0x406c8b
cmp edi, 2
jle 0x406bfd
cmp edi, 3
je 0x406bdd
cmp edi, 4
jne 0x406c8b
push dword [ebp - 0xc]
push ebx
call fcn.00407755
pop ecx
xor edi, edi
pop ecx
jmp 0x406c8b
cmp esi, ebx
jne 0x406be9
push 1
pop edi
jmp 0x406c8b
push ebx
push esi
push dword [ebp + 0xc]
call fcn.00407b84
add esp, 0xc
mov edi, eax
jmp 0x406c8b
lea eax, [ebp - 0x1318]
lea ecx, [ebp - 0x314]
push eax
call fcn.00411ec2
push ebx
push ebx
lea ecx, [ebp - 0x314]
call fcn.00408e5b
cmp edi, 1
jne 0x406c31
push 5
push dword [ebp - 0x310]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x406c3c
lea ecx, [ebp - 0x314]
call fcn.00413f9f
lea ecx, [ebp - 0x120]
call fcn.004086fe
cmp eax, 1
jne 0x406c50
xor edi, edi
jmp 0x406c80
cmp eax, 2
jne 0x406c6c
push 3
mov byte [ebp + 0xc], bl
pop edi
mov esi, dword [ebp - 0x228]
lea eax, [esi - 0x2c]
neg esi
sbb esi, esi
and esi, eax
jmp 0x406c80
cmp eax, 3
jne 0x406c79
push eax
mov byte [ebp + 0xc], 1
pop edi
jmp 0x406c5b
cmp eax, 4
jne 0x406c80
push eax
pop edi
lea ecx, [ebp - 0x314]
call fcn.0041224c
mov dword [ebp + 8], ebx
jmp 0x406baa
lea ecx, [ebp - 0x1a4]
call fcn.0041182d
cmp dword [ebp - 0x318], ebx
mov dword [ebp + 0xc], ebx
jle 0x406cd4
lea edi, [ebp - 0x1318]
mov esi, dword [edi]
cmp esi, ebx
je 0x406cc3
mov ecx, esi
call fcn.004035cc
push esi
call fcn.00415745
pop ecx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add edi, 4
cmp eax, dword [ebp - 0x318]
jl 0x406caf
mov esi, 0x1000
lea eax, [ebp - 0x1318]
push esi
push ebx
push eax
call fcn.00415790
push esi
lea eax, [ebp - 0x1318]
push ebx
push eax
mov dword [ebp - 0x318], ebx
call fcn.00415790
mov esi, dword [ebp - 0xc]
add esp, 0x18
push 1
pop edi
jmp 0x406d68
push edi
lea ecx, [ebp - 0x1a4]
call fcn.0041162b
push ebx
push ebx
lea ecx, [ebp - 0x1a4]
call fcn.00408df7
test eax, eax
je 0x406d52
push 0x80000
lea ecx, [ebp - 0x1a4]
push dword [ebp + 0xc]
call fcn.00411dfa
lea ecx, [ebp - 0x120]
call fcn.004086fe
cmp eax, edi
mov dword [ebp + 8], eax
setne al
push esi
push eax
call fcn.00407755
pop ecx
pop ecx
lea ecx, [ebp - 0x1a4]
call fcn.0041182d
jmp 0x406d68
push esi
push ebx
call fcn.00407755
pop ecx
pop ecx
mov ecx, 0x41e790
call fcn.00408a7e
cmp esi, ebx
je 0x406d7e
push edi
mov ecx, esi
call fcn.0040746c
lea ecx, [ebp - 0xa8]
call fcn.004017a8
lea ecx, [ebp - 0xb8]
call fcn.0040172f
lea ecx, [ebp - 0x110]
call fcn.00409093
lea ecx, [ebp - 0x11c]
call fcn.00409093
lea ecx, [ebp - 0x58]
call fcn.004017a8
cmp dword [ebp - 4], ebx
je 0x406dc3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x94]
call fcn.00406e0b
lea ecx, [ebp - 0xe8]
call fcn.00407450
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret