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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13b0
call fcn.00415ed0
push ebx
push esi
push edi
call fcn.004083d1
mov ecx, 0x421938
call fcn.004073f7
lea ecx, [ebp - 0xe8]
mov byte [ebp - 5], al
call fcn.004074a2
push dword [ebp + 8]
lea ecx, [ebp - 0xa8]
call fcn.0040710c
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 0x4068c3
lea ecx, [ebp - 4]
call fcn.004073e0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x64
lea ecx, [ebp - 0x1c]
pop eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x80], eax
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], ebx
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], 0x41b3d8
call fcn.00409830
lea ecx, [ebp - 0x1c]
call fcn.004016d7
lea ecx, [ebp - 0x80]
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.004065c7
cmp dword [ebp - 0x48], ebx
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, str.bootstrap
je 0x40693f
push dword [ebp - 0x48]
call edi
test eax, eax
je 0x40693f
push 1
push 1
push ebx
push esi
lea ecx, [ebp - 0xa8]
call fcn.0040715f
test al, al
je 0x406962
call fcn.0040851b
call fcn.0040868a
push 1
push 1
push ebx
push esi
lea ecx, [ebp - 0xa8]
call fcn.0040715f
test al, al
jne 0x406ad6
push 1
push 1
push ebx
push str.startup
lea ecx, [ebp - 0xa8]
call fcn.0040715f
test al, al
je 0x406985
call fcn.0040868a
jmp 0x406ad6
call fcn.004077db
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x406b03
mov eax, dword [0x4219f4]
cmp eax, ebx
je 0x406ac0
push eax
call edi
test eax, eax
je 0x406ac0
lea ecx, [ebp - 0x30]
call fcn.004016ed
mov esi, 0x41b3cc
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x30], esi
call fcn.004016ed
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x68], esi
call fcn.004016ed
push dword [0x421930]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x44], esi
push 0x62
call fcn.00401d20
push dword [0x421930]
lea ecx, [ebp - 0x44]
push 0x49
call fcn.00401d20
push dword [0x421930]
lea ecx, [ebp - 0x30]
push 0x4b
call fcn.00401d20
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.004097c6
push eax
lea ecx, [ebp - 0x30]
call fcn.00401e19
push 1
push ebx
lea eax, [ebp + 0xc]
push 1
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp + 0xc], esi
call fcn.004097c6
push eax
lea ecx, [ebp - 0x30]
call fcn.00401e19
push 0x41e534
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.00401cd5
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x41b3d8
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00407098
lea ecx, [ebp - 0x1c]
call fcn.00401701
mov esi, dword [ebp - 0x24]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00407098
lea ecx, [ebp - 0x68]
call fcn.0040185e
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
call fcn.0040185e
push 0x30
push esi
push dword [ebp - 0x40]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x44]
call fcn.00401701
lea ecx, [ebp - 0x68]
call fcn.00401701
lea ecx, [ebp - 0x30]
call fcn.00401701
jmp 0x406ad3
push 0x30
push 0x41e514
push str.Agent_not_found
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
or ebx, 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00401701
lea ecx, [ebp - 4]
call fcn.004073e0
lea ecx, [ebp - 0xa8]
call fcn.00407136
lea ecx, [ebp - 0xe8]
call fcn.0040777b
mov eax, ebx
jmp 0x407093
call fcn.0040789e
cmp eax, 5
jge 0x406c54
lea ecx, [ebp - 0x44]
call fcn.004016ed
mov esi, 0x41b3cc
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x44], esi
call fcn.004016ed
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x7c], esi
call fcn.004016ed
push dword [0x421930]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x30], esi
push 0x62
call fcn.00401d20
push str.You_must_have_Internet_Explorer_5.0_or_higher.
lea ecx, [ebp - 0x68]
call fcn.0040908f
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x58], 0x409
call fcn.00402125
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x20], eax
call fcn.00401701
push dword [0x421930]
lea ecx, [ebp - 0x44]
push 0x4b
call fcn.00401d20
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.004097c6
push eax
lea ecx, [ebp - 0x44]
call fcn.00401e19
push 1
push ebx
lea eax, [ebp + 0xc]
push 1
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp + 0xc], esi
call fcn.004097c6
push eax
lea ecx, [ebp - 0x44]
call fcn.00401e19
push 0x41e534
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0x41b3d8
mov esi, eax
call edi
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00407098
lea ecx, [ebp - 0x1c]
call fcn.00401701
mov esi, dword [ebp - 0x38]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00407098
lea ecx, [ebp - 0x7c]
call fcn.0040185e
mov esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x30]
call fcn.0040185e
push 0x30
push esi
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x30]
call fcn.00401701
lea ecx, [ebp - 0x7c]
call fcn.00401701
lea ecx, [ebp - 0x44]
call fcn.00401701
lea ecx, [ebp - 0x54]
call fcn.00401701
lea ecx, [ebp - 4]
call fcn.004073e0
jmp 0x40707a
lea ecx, [ebp - 0x120]
call fcn.00407797
lea eax, [ebp - 0x120]
mov ecx, 0x421948
push eax
call fcn.00408ccb
push 0x4020
call fcn.00415eff
cmp eax, ebx
pop ecx
je 0x406c8b
mov ecx, eax
call fcn.00403e4f
mov dword [ebp - 0xc], eax
jmp 0x406c8e
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0xb8]
push 5
push eax
call fcn.0040d206
pop ecx
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004016ed
push dword [0x421930]
mov esi, 0x41b3cc
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], esi
push 0x60
call fcn.00401d20
cmp dword [ebp - 0x88], ebx
je 0x406cdb
push dword [ebp - 0x88]
call edi
test eax, eax
jne 0x406d12
push str.Downloaded_Program_Updates
lea ecx, [ebp - 0x7c]
call fcn.0040908f
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x94]
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x6c], 0x409
call fcn.00402125
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x84], eax
call fcn.00401701
push dword [ebp - 0x88]
lea ecx, [ebp - 0xb8]
call fcn.00402825
push 0x421924
lea ecx, [ebp - 0xb8]
call fcn.00402825
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0xb8]
push eax
lea ecx, [esi + 8]
call fcn.00402125
push 1
lea ecx, [ebp - 0xa8]
pop edi
push edi
push edi
push ebx
push str.scheduler
call fcn.0040715f
test al, al
je 0x407016
cmp byte [ebp - 5], bl
jne 0x406fbb
push 0x1000
lea eax, [ebp - 0x13b0]
push ebx
push eax
mov dword [ebp - 0x3b0], ebx
call fcn.00415e70
add esp, 0xc
lea eax, [ebp - 0x13b0]
mov ecx, esi
push eax
call fcn.0040431e
cmp eax, 0xfffffffe
jne 0x406dd7
push 0x41e450
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], 0x41b3d8
call fcn.004075b1
lea ecx, [ebp - 0x1c]
call fcn.00401701
jmp 0x406de9
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0xe8]
push eax
call fcn.004076e2
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x2c]
mov ecx, 0x421938
push eax
call fcn.00407446
cmp dword [ebp - 0x3b0], ebx
jle 0x406f53
push ebx
lea ecx, [ebp - 0x1d8]
call fcn.0041224c
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1d8]
call fcn.004090da
test eax, eax
je 0x406f48
push 0x80000
lea ecx, [ebp - 0x1d8]
push dword [ebp + 0xc]
call fcn.00412a3d
lea ecx, [ebp - 0x120]
call fcn.004089f2
cmp eax, edi
mov dword [ebp + 8], eax
mov byte [ebp + 0xc], bl
je 0x406e5b
push 2
pop edi
xor esi, esi
cmp edi, ebx
je 0x406f48
jle 0x406f40
cmp edi, 2
jle 0x406eb0
cmp edi, 3
je 0x406e90
cmp edi, 4
jne 0x406f40
push dword [ebp - 0xc]
push ebx
call fcn.00407ae0
pop ecx
xor edi, edi
pop ecx
jmp 0x406f40
cmp esi, ebx
jne 0x406e9c
push 1
pop edi
jmp 0x406f40
push ebx
push esi
push dword [ebp + 0xc]
call fcn.00407f21
add esp, 0xc
mov edi, eax
jmp 0x406f40
lea eax, [ebp - 0x13b0]
lea ecx, [ebp - 0x3ac]
push eax
call fcn.00412ac3
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x3ac]
call fcn.00409203
cmp edi, 1
jne 0x406ee6
push 5
push dword [ebp - 0x3a8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x406ef1
lea ecx, [ebp - 0x3ac]
call fcn.00414bd3
lea ecx, [ebp - 0x120]
call fcn.004089f2
cmp eax, 1
jne 0x406f05
xor edi, edi
jmp 0x406f35
cmp eax, 2
jne 0x406f21
push 3
mov byte [ebp + 0xc], bl
pop edi
mov esi, dword [ebp - 0x28c]
lea eax, [esi - 0x2c]
neg esi
sbb esi, esi
and esi, eax
jmp 0x406f35
cmp eax, 3
jne 0x406f2e
push eax
mov byte [ebp + 0xc], 1
pop edi
jmp 0x406f10
cmp eax, 4
jne 0x406f35
push eax
pop edi
lea ecx, [ebp - 0x3ac]
call fcn.00412e5f
mov dword [ebp + 8], ebx
jmp 0x406e5d
lea ecx, [ebp - 0x1d8]
call fcn.00412459
cmp dword [ebp - 0x3b0], ebx
mov dword [ebp + 0xc], ebx
jle 0x406f89
lea edi, [ebp - 0x13b0]
mov esi, dword [edi]
cmp esi, ebx
je 0x406f78
mov ecx, esi
call fcn.0040384d
push esi
call fcn.00415e59
pop ecx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add edi, 4
cmp eax, dword [ebp - 0x3b0]
jl 0x406f64
mov esi, 0x1000
lea eax, [ebp - 0x13b0]
push esi
push ebx
push eax
call fcn.00415e70
push esi
lea eax, [ebp - 0x13b0]
push ebx
push eax
mov dword [ebp - 0x3b0], ebx
call fcn.00415e70
mov esi, dword [ebp - 0xc]
add esp, 0x18
push 1
pop edi
jmp 0x40701f
push edi
lea ecx, [ebp - 0x1d8]
call fcn.0041224c
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1d8]
call fcn.004090da
test eax, eax
je 0x407009
push 0x80000
lea ecx, [ebp - 0x1d8]
push dword [ebp + 0xc]
call fcn.00412a3d
lea ecx, [ebp - 0x120]
call fcn.004089f2
cmp eax, edi
mov dword [ebp + 8], eax
setne al
push esi
push eax
call fcn.00407ae0
pop ecx
pop ecx
lea ecx, [ebp - 0x1d8]
call fcn.00412459
jmp 0x40701f
push esi
push ebx
call fcn.00407ae0
pop ecx
pop ecx
mov ecx, 0x421948
call fcn.00408d72
cmp esi, ebx
je 0x407035
push edi
mov ecx, esi
call fcn.004077b4
lea ecx, [ebp - 0x94]
call fcn.00401701
lea ecx, [ebp - 0xb8]
call fcn.00401672
lea ecx, [ebp - 0x110]
call fcn.0040970b
lea ecx, [ebp - 0x11c]
call fcn.0040970b
lea ecx, [ebp - 0x54]
call fcn.00401701
cmp dword [ebp - 4], ebx
je 0x40707a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa8]
call fcn.00407136
lea ecx, [ebp - 0xe8]
call fcn.0040777b
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret