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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409b35
mov eax, dword fs:[0]
push eax
sub esp, 0x984
push ebx
push esi
push edi
lea edi, [ebp - 0x990]
mov ecx, 0x261
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x40e020]
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
cmp dword [ebp + 8], 0
je 0x4039d9
cmp dword [ebp + 0xc], 0
je 0x4039d9
cmp dword [ebp + 0x10], 0
jne 0x4039e1
mov al, byte [ebp - 0x15]
jmp 0x403d0c
and dword [ebp - 0x30], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0x48], 0
push 0x40a9e4
lea ecx, [ebp - 0x68]
call fcn.00401a1a
and dword [ebp - 4], 0
push 0x400
lea eax, [ebp - 0x870]
push eax
call fcn.00402e8c
pop ecx
pop ecx
mov dword [ebp - 0x87c], eax
push 0x40a9e4
lea ecx, [ebp - 0x89c]
call fcn.00401a1a
mov byte [ebp - 4], 1
cmp dword [ebp - 0x87c], 0
je 0x403a6c
mov dword [ebp - 0x8a8], MsiConfigureFeatureFromDescriptorA
push str.USERS_
lea ecx, [ebp - 0x89c]
call fcn.00404d87
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x68]
call fcn.00404d87
push 0x40a9e8
lea ecx, [ebp - 0x68]
call fcn.00404d87
jmp 0x403a86
mov dword [ebp - 0x8a8], MsiConfigureFeatureFromDescriptorA
push str.CURRENT_USER_
lea ecx, [ebp - 0x89c]
call fcn.00404d87
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x68]
call fcn.00404d87
push dword [ebp + 8]
lea ecx, [ebp - 0x68]
call fcn.00404d87
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x89c]
call fcn.00404c5c
push 0x40ae8c
lea ecx, [ebp - 0x89c]
call fcn.00404d87
mov esi, esp
lea eax, [ebp - 0x48]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x68]
call fcn.00405282
push eax
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00408d80
test eax, eax
jne 0x403b91
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.00408d80
test eax, eax
jne 0x403b7f
mov esi, esp
push dword [ebp - 0x8b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00408d80
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.00405282
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp esi, esp
call fcn.00408d80
mov esi, esp
push str.UserChoice
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp esi, esp
call fcn.00408d80
test eax, eax
je 0x403b7f
mov byte [ebp - 0x21], 1
mov esi, esp
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00408d80
movzx eax, byte [ebp - 0x21]
test eax, eax
jne 0x403cca
and dword [ebp - 0x8c0], 0
push 0x40ae8c
lea ecx, [ebp - 0x68]
call fcn.00404d87
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.00405282
push eax
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp esi, esp
call fcn.00408d80
test eax, eax
jne 0x403cb0
cmp dword [ebp - 0x30], 0
je 0x403c1d
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.00401e6b
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
cmp esi, esp
call fcn.00408d80
mov esi, esp
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00408d80
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.00408d80
test eax, eax
jne 0x403c9b
mov esi, esp
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00408d80
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.00408d80
test eax, eax
jne 0x403c9b
mov byte [ebp - 0x15], 1
mov esi, esp
push dword [ebp - 0x8c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00408d80
mov esi, esp
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
cmp esi, esp
call fcn.00408d80
cmp dword [ebp - 0x3c], 0
je 0x403ce2
mov esi, esp
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00408d80
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x989], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x89c]
call fcn.00401c24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401c24
mov al, byte [ebp - 0x989]
push edx
mov ecx, ebp
push eax
lea edx, [0x403d47]
call fcn.00408d28
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.00408da3
add esp, 0x990
cmp ebp, esp
call fcn.00408d80
mov esp, ebp
pop ebp
ret