Function at 0x4104e0
Capabilities:
Check os version
Create directory
Delete file
Get common file path
Get startup folder
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x504070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x438]
mov byte [ebp - 0x432], dl
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x431], cl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410764
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0x28
push eax
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
push eax
push 0
push 0
push str.MachineGuid
push dword [ebp - 0x438]
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x438]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea esi, [ebp - 0x2c]
xor ebx, ebx
cmp byte [esi], 0x2d
lea eax, [esi + 1]
cmovne eax, esi
mov dl, byte [eax]
lea esi, [eax + 1]
xor al, al
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x410593
mov al, dl
sub al, 0x30
jmp 0x4105ab
cmp dl, 0x61
jl 0x41059d
cmp dl, 0x66
jle 0x4105a5
lea ecx, [edx - 0x41]
cmp cl, 5
ja 0x4105ab
mov al, dl
and al, 0xf
add al, 9
mov ecx, ebx
test bl, 1
je 0x4105bc
shr ecx, 1
or byte [ecx + 0x527614], al
jmp 0x4105c7
shl al, 4
shr ecx, 1
mov byte [ecx + 0x527614], al
inc ebx
cmp ebx, 0x20
jl 0x410575
call fcn.00410240
test al, al
je 0x410764
lea eax, [ebp - 0x438]
push eax
push 3
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41063a
mov ecx, 0x527d28
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410601
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 0x527d28
push 1
push 0
push 0x4fa740
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x438]
call edi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x230]
push 0
push 0x18
push eax
push 0
call esi
push 0x4fa924
lea eax, [ebp - 0x230]
push 0x100
push eax
call fcn.00435aa0
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp - 0x230]
add esp, 0xc
push eax
call edi
push 0
push 0x17
lea eax, [ebp - 0x230]
push eax
push 0
call esi
push 0x4fa940
lea eax, [ebp - 0x230]
push 0x100
push eax
call fcn.00435aa0
add esp, 0xc
lea eax, [ebp - 0x230]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x230]
push str.VKSaver.lnk
push eax
lea eax, [ebp - 0x430]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x430]
push eax
call edi
push str.Launch_VKSaver.lnk
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x430]
push str._s_s
push eax
call esi
push 0xffffffffffffff95
lea eax, [ebp - 0x430]
mov edx, 0x4fa9a0
push 0x4600c0
push eax
call fcn.00410360
add esp, 0x1c
lea eax, [ebp - 0x230]
push str.Uninstall.lnk
push eax
lea eax, [ebp - 0x430]
push str._s_s
push eax
call esi
push 0xffffff78
lea eax, [ebp - 0x430]
mov edx, 0x4fa9f8
push str._uninstall
push eax
call fcn.00410360
add esp, 0x1c
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov cl, byte [ebp - 0x431]
movzx eax, al
cmp eax, 6
jb 0x410777
call fcn.0040ff00
test al, al
jne 0x410780
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
call fcn.0040fce0
test al, al
je 0x410764
call fcn.0040b2f0
cmp byte [ebp - 0x432], 0
je 0x4107c1
cmp byte [0x527624], 0
je 0x4107b6
mov edx, str._popup
call fcn.00410420
test al, al
jne 0x4107c1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret
xor edx, edx
call fcn.00410420
test al, al
je 0x410764
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cc9c
mov esp, ebp
pop ebp
ret