Function at 0x41fb2f
Capabilities:
Check os version
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x43ed68
call fcn.004311b8
sub esp, 0x608
push ebx
push esi
push edi
push 0x64c
push 0x3eb
xor ebx, ebx
push dword [0x44e450]
mov esi, ecx
mov dword [ebp - 0x24], ebx
call fcn.0042a703
add esp, 0xc
lea eax, [ebp - 0xd]
mov edi, 0x440494
lea ecx, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x80], 0x44049c
mov dword [ebp - 0x60], edi
call fcn.00401581
lea eax, [ebp - 0xe]
push 1
push eax
push str._IS_PREREQ_
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.004014ff
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x80]
push eax
mov byte [ebp - 4], 1
call fcn.0040b989
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.0040191f
mov eax, 0x4484f4
mov dword [ebp - 0x58], 0x44049c
mov ecx, eax
mov dword [ebp - 0x38], edi
test ecx, ecx
jne 0x41fbc8
mov eax, 0x44dbd4
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0040ba66
push dword [0x440640]
lea eax, [ebp - 0x58]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x54]
and eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0040dbef
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.0040191f
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [esi + 0x4bc]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004014ff
push dword [0x440640]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040dbef
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], bl
call fcn.0040191f
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x14cc], ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x28], ebx
jne 0x41fce6
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.00410c09
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x41fce6
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x2fb]
mov byte [ebp - 0x2fc], bl
mov dword [ebp - 0x2c], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x80]
stosb byte es:[edi], al
call fcn.004016f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
push ecx
lea ecx, [ebp - 0x2fc]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x41fce6
lea eax, [ebp - 0x2fc]
push eax
call fcn.00432541
pop ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x80]
call fcn.004016f0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esi + 4]
call fcn.0042149f
lea eax, [ebp - 0x1f8]
mov ecx, esi
push eax
push ebx
call fcn.004200ae
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x1f8]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x1c], ebx
push eax
call edi
test eax, eax
je 0x41fe79
push 1
push ebx
push 1
lea eax, [ebp - 0x1f8]
push 1
push eax
mov ecx, esi
call fcn.004204d1
test eax, eax
je 0x41fe59
lea eax, [ebp - 0xe]
push 1
push eax
push 0x4507e0
lea ecx, [ebp - 0x58]
call fcn.004014ff
lea eax, [ebp - 0x1e]
push 1
push eax
lea eax, [ebp - 0x1f8]
push eax
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
call fcn.004014ff
lea eax, [ebp - 0xf4]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 6
call fcn.00410c8a
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
call fcn.0040191f
lea ecx, [ebp - 0x614]
call fcn.0042341f
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.004016f0
push eax
lea ecx, [ebp - 0x614]
call fcn.00423926
lea eax, [ebp - 0x1d]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00421305
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 8
call fcn.0040b989
cmp dword [esi + 0x14cc], 1
je 0x41fdf1
lea ecx, [ebp - 0x614]
call fcn.0042402b
test al, al
je 0x41fe2f
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], eax
jle 0x41fe2f
lea eax, [ebp - 0x1c]
lea ecx, [esi + 4]
push eax
mov byte [ebp - 0xac], 1
call fcn.0042132f
mov cl, byte [ebp - 0xac]
mov byte [eax], cl
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [eax + 4]
call fcn.0040b989
cmp byte [ebp - 0xd], bl
jne 0x41fe2b
cmp byte [ebp - 0x30f], bl
mov byte [ebp - 0xd], bl
jne 0x41fe2f
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 7
call fcn.0040191f
lea ecx, [ebp - 0x614]
mov byte [ebp - 4], 5
call fcn.0042383f
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0040191f
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x1f8]
push eax
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.004200ae
lea eax, [ebp - 0x1f8]
push eax
jmp 0x41fd10
cmp dword [esi + 0x10], ebx
je 0x420021
cmp dword [esi + 0x14cc], 1
jne 0x41ff6c
lea edi, [esi + 0x2b28]
push edi
call fcn.00431520
test eax, eax
pop ecx
je 0x41ff6c
mov eax, dword [esi + 8]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x18], ecx
je 0x420021
lea ecx, [ebp - 0x614]
call fcn.0042341f
mov eax, dword [ebp - 0x18]
push ebx
mov byte [ebp - 4], 9
lea ecx, [eax + 0x14]
call fcn.004016f0
push eax
lea ecx, [ebp - 0x614]
call fcn.00423926
lea ecx, [ebp - 0xcc]
call fcn.0040e7c7
lea eax, [ebp + 0xb]
push 1
push eax
push edi
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
call fcn.004014ff
lea eax, [ebp - 0xf4]
push ebx
push eax
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0xb
call fcn.0040ff98
lea ecx, [ebp - 0x58]
call fcn.0040191f
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
call fcn.0040191f
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 9
call fcn.0040e82c
lea ecx, [ebp - 0x614]
mov byte [ebp - 4], 4
call fcn.0042383f
lea ecx, [ebp - 0x18]
call fcn.00411599
mov eax, dword [esi + 8]
cmp dword [ebp - 0x18], eax
jne 0x41feb4
jmp 0x420021
cmp dword [esi + 0x14cc], ebx
jne 0x420075
lea ecx, [ebp - 0xcc]
call fcn.0040e7c7
mov eax, dword [ebp + 8]
cmp dword [esi + 0x40b8], 6
mov dword [ebp - 0x94], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x90], al
jb 0x41ffb7
cmp byte [ebp - 0xd], bl
je 0x41ffb7
call fcn.0042f034
test al, al
mov byte [ebp - 0x8f], 1
je 0x41ffbd
mov byte [ebp - 0x8f], bl
push esi
lea ecx, [ebp - 0xcc]
push dword [esi + 0x44e4]
call fcn.0040e865
push 2
pop ecx
sub eax, ecx
je 0x42000f
sub eax, 5
jne 0x420012
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 4
call fcn.0040e82c
cmp dword [ebp - 0x14], ebx
je 0x41fffb
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0040191f
push 7
pop eax
jmp 0x420095
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 4
call fcn.0040e82c
cmp dword [esi + 0x14cc], ebx
jne 0x420075
cmp dword [ebp - 0x28], ebx
jne 0x420040
lea ecx, [ebp - 0x80]
call fcn.004016f0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp byte [ebp + 0xc], bl
je 0x420075
mov dword [ebp + 0xc], ebx
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.00410c09
test eax, eax
jne 0x420075
push str.__ISSetupPrerequisistes
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0x14], ebx
je 0x420086
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0040191f
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8