Function at 0x40a5ef
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41558d
mov eax, dword fs:[0]
push eax
sub esp, 0xfc8
push ebx
push esi
push edi
lea edi, [ebp - 0xfd4]
mov ecx, 0x3f2
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x41f01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x21], 0
call fcn.004128b7
movzx eax, al
test eax, eax
je 0x40a64b
mov al, byte [ebp - 0x15]
jmp 0x40abdb
cmp dword [ebp + 8], 0
je 0x40a65d
cmp dword [ebp + 0xc], 0
je 0x40a65d
cmp dword [ebp + 0x10], 0
jne 0x40a665
mov al, byte [ebp - 0x15]
jmp 0x40abdb
and dword [ebp - 0x30], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0x48], 0
push 0x416c14
lea ecx, [ebp - 0x68]
call fcn.0040502f
and dword [ebp - 4], 0
push 0x400
lea eax, [ebp - 0x870]
push eax
call fcn.00408494
pop ecx
pop ecx
mov dword [ebp - 0x87c], eax
push 0x416c14
lea ecx, [ebp - 0x89c]
call fcn.0040502f
mov byte [ebp - 4], 1
cmp dword [ebp - 0x87c], 0
je 0x40a6f0
mov dword [ebp - 0x8a8], MsiConfigureFeatureFromDescriptorA
push str.USERS_
lea ecx, [ebp - 0x89c]
call fcn.0040cad5
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040cad5
push 0x416c18
lea ecx, [ebp - 0x68]
call fcn.0040cad5
jmp 0x40a70a
mov dword [ebp - 0x8a8], MsiConfigureFeatureFromDescriptorA
push str.CURRENT_USER_
lea ecx, [ebp - 0x89c]
call fcn.0040cad5
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x68]
call fcn.0040cad5
push dword [ebp + 8]
lea ecx, [ebp - 0x68]
call fcn.0040cad5
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x89c]
call fcn.0040c9aa
push 0x4188cc
lea ecx, [ebp - 0x89c]
call fcn.0040cad5
call fcn.0040934e
movzx eax, al
test eax, eax
jne 0x40a946
mov esi, esp
lea eax, [ebp - 0x48]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x68]
call fcn.0040d11a
push eax
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x40a825
and dword [ebp - 0x8b4], 0
mov esi, esp
lea eax, [ebp - 0x8b4]
push eax
push 0x20019
push 0
push str.UserChoice
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x40a813
mov esi, esp
push dword [ebp - 0x8b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 4
push 4
lea ecx, [ebp - 0x89c]
call fcn.0040d11a
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
push str.UserChoice
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x40a813
mov byte [ebp - 0x21], 1
mov esi, esp
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00413f7e
movzx eax, byte [ebp - 0x21]
test eax, eax
jne 0x40a944
and dword [ebp - 0x8c0], 0
push 0x4188cc
lea ecx, [ebp - 0x68]
call fcn.0040cad5
mov esi, esp
push 0
lea eax, [ebp - 0x8c0]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x68]
call fcn.0040d11a
push eax
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x40a944
cmp dword [ebp - 0x30], 0
je 0x40a8b1
mov esi, esp
push 0
push dword [ebp - 0x30]
push 0
push 0
push 4
push 4
push 0
lea ecx, [ebp - 0x89c]
call fcn.00405bca
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00413f7e
lea eax, [eax + eax + 2]
mov esi, esp
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.Progid
push dword [ebp - 0x8c0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x40a92f
mov esi, esp
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00413f7e
lea eax, [eax + eax + 2]
mov esi, esp
push eax
push dword [ebp + 0x10]
push 1
push 0
push str.Hash
push dword [ebp - 0x8c0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x40a92f
mov byte [ebp - 0x15], 1
mov esi, esp
push dword [ebp - 0x8c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00413f7e
jmp 0x40a953
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004017bd
pop ecx
pop ecx
mov esi, esp
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
cmp esi, esp
call fcn.00413f7e
call fcn.0040934e
movzx eax, al
test eax, eax
je 0x40ab99
mov esi, esp
push str..pdf
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll__wcsicmp]
pop ecx
pop ecx
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x40ab99
lea ecx, [ebp - 0x8d4]
call fcn.0041338d
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0xae4], ax
push 0x206
push 0
lea eax, [ebp - 0xae2]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov esi, esp
push str.AcroExch.Document.
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_wcsstr]
pop ecx
pop ecx
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x40aa0e
mov esi, esp
push str.HKEY_LOCAL_MACHINESOFTWAREAdobeAcrobat_Reader
push 0x104
lea eax, [ebp - 0xae4]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
jmp 0x40aa4e
mov esi, esp
push str.Acrobat.Document.
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_wcsstr]
pop ecx
pop ecx
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x40aa4e
mov esi, esp
push 0x416df8
push 0x104
lea eax, [ebp - 0xae4]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
mov esi, esp
lea eax, [ebp - 0xae4]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x40ab8a
push 0
push str.iSuppressToastMessage
lea eax, [ebp - 0xae4]
push eax
lea ecx, [ebp - 0x8d4]
call fcn.00413760
test eax, eax
jne 0x40ab8a
mov esi, esp
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00413f7e
xor eax, eax
mov word [ebp - 0xcf4], ax
push 0x206
push 0
lea eax, [ebp - 0xcf2]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0xf04], ax
push 0x206
push 0
lea eax, [ebp - 0xf02]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov esi, esp
push str.HKEY_
push 0x104
lea eax, [ebp - 0xf04]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
lea ecx, [ebp - 0x89c]
call fcn.0040d11a
mov esi, esp
push eax
push 0x104
lea eax, [ebp - 0xf04]
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
lea eax, [ebp - 0xcf4]
push eax
push str.ProgID
lea eax, [ebp - 0xf04]
push eax
lea ecx, [ebp - 0x8d4]
call fcn.004138d6
mov esi, esp
lea eax, [ebp - 0xcf4]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x40ab8a
mov esi, esp
push dword [ebp + 0xc]
lea eax, [ebp - 0xcf4]
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
pop ecx
pop ecx
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x40ab8a
call fcn.00408f56
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8d4]
call fcn.004133cf
cmp dword [ebp - 0x3c], 0
je 0x40abb1
mov esi, esp
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00413f7e
mov al, byte [ebp - 0x15]
mov byte [ebp - 0xfcd], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x89c]
call fcn.00405812
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00405812
mov al, byte [ebp - 0xfcd]
push edx
mov ecx, ebp
push eax
lea edx, [0x40ac17]
call fcn.00413f26
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413fa1
add esp, 0xfd4
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret