Function at 0x40ac00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4428a1
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x473064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
push str.SOFTWARE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Avast_Software
push dword [ebp - 0x118]
mov dword [ebp - 0x11c], 0
call edi
test eax, eax
jne 0x40af41
mov eax, dword [ebp - 0x118]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40acb2
push eax
call esi
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x118], eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Avast
push eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x11c], 0
call edi
test eax, eax
jne 0x40af46
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40ad0a
push eax
call esi
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x118], eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.properties
push eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x11c], 0
call edi
test eax, eax
jne 0x40af4b
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x40ad62
push eax
call esi
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x11c], 0
lea edx, [ebp - 0x114]
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x150]
call fcn.00417860
add esp, 4
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x150]
call fcn.00405300
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00405240
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x154]
cmp ecx, 8
jb 0x40ae03
mov edx, dword [ebp - 0x168]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40adf9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af50
push ecx
push edx
call fcn.00424b8e
add esp, 8
xor eax, eax
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 7
mov word [ebp - 0x168], ax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x13c]
cmp ecx, 8
jb 0x40ae64
mov edx, dword [ebp - 0x150]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ae5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af50
push ecx
push edx
call fcn.00424b8e
add esp, 8
xor eax, eax
mov dword [ebp - 0x140], 0
cmp dword [ebp - 0x120], 8
lea ecx, [ebp - 0x134]
mov word [ebp - 0x150], ax
cmovae ecx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x124]
add eax, eax
mov dword [ebp - 0x13c], 7
push eax
push ecx
push 1
push 0
push str.ProgramFolder
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40af55
mov ecx, dword [ebp - 0x120]
cmp ecx, 8
jb 0x40aefc
mov edx, dword [ebp - 0x134]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40aef2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af76
push ecx
push edx
call fcn.00424b8e
add esp, 8
xor eax, eax
mov dword [ebp - 0x124], 0
mov word [ebp - 0x134], ax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x120], 7
test eax, eax
je 0x40af26
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424972
mov esp, ebp
pop ebp
ret
call fcn.00429554
call fcn.00429554
call fcn.00429554
call fcn.0042cf69
push str.unable_to_init_registry__are_we_really_elevated_
lea ecx, [ebp - 0x174]
call fcn.00403a70
push 0x471d18
lea eax, [ebp - 0x174]
push eax
call fcn.00425e40
call fcn.0042cf69
int3