Function at 0x40c540
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4504f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460164]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
xor ebp, ebp
push eax
mov ecx, 0x4554c8
mov dword [esp + 0x2c], ebp
call fcn.00401a60
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.SoftwareDeviceVMBrowser_Configuration_Utility
mov dword [esp + 0x54], ebp
call fcn.00401a60
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.00428b10
add esp, 0xc
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c5d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.SearchHookInstalled
call fcn.00401a60
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
mov edx, SysReAllocStringLen
call fcn.00426850
add esp, 8
test eax, eax
je 0x40c634
cmp dword [esp + 0x28], ebp
je 0x40c634
mov bl, 1
jmp 0x40c636
xor bl, bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c655
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c671
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
jmp 0x40ccc3
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.SoftwareMicrosoftInternet_ExplorerURLSearchHooks
mov byte [esp + 0x54], 5
call fcn.00401a60
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 6
call fcn.00427010
add esp, 4
test eax, eax
mov byte [esp + 0x50], 5
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c735
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x40c6f2
mov edi, dword [esp + 0x3c]
call fcn.004064a0
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00435178
add esp, 4
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x40c71f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp edi, eax
jbe 0x40c750
call fcn.00435b3c
mov eax, dword [esp + 0x3c]
lea ebx, [ebx]
cmp dword [esp + 0x38], eax
mov esi, eax
jbe 0x40c761
call fcn.00435b3c
mov eax, dword [esp + 0x3c]
cmp edi, esi
je 0x40c856
cmp edi, eax
jb 0x40c772
call fcn.00435b3c
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40c787
mov ecx, dword [eax + 4]
push ecx
push edi
call fcn.00401fa0
mov ecx, dword [edi]
lea edx, [esp + 0x18]
push edx
call fcn.00401a60
lea eax, [esp + 0x1c]
push eax
mov ecx, str.SoftwareMicrosoftInternet_ExplorerURLSearchHooks
mov byte [esp + 0x54], 7
call fcn.00401a60
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 2
push ebp
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c7c7
xor eax, eax
jmp 0x40c7eb
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x20]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebp
sete al
cmp eax, ebp
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c810
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c835
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40c9eb
mov eax, dword [esp + 0x3c]
cmp edi, eax
jb 0x40c84e
call fcn.00435b3c
mov eax, dword [esp + 0x3c]
add edi, 4
jmp 0x40c750
cmp dword [esp + 0x38], eax
mov ebx, eax
jbe 0x40c867
call fcn.00435b3c
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, eax
jbe 0x40c874
call fcn.00435b3c
lea eax, [esp + 0x34]
mov edi, eax
mov eax, esi
mov dword [esp + 0x30], esi
call fcn.00410710
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x38], ebx
mov esi, eax
jbe 0x40c896
call fcn.00435b3c
xor ebp, ebp
cmp edi, ebp
je 0x40c8a4
lea ecx, [esp + 0x34]
cmp edi, ecx
je 0x40c8a9
call fcn.00435b3c
cmp esi, ebx
je 0x40c8e9
mov byte [esp + 0x24], 0
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push esi
lea eax, [esi + 4]
push ecx
push eax
call fcn.00410c70
mov edi, dword [esp + 0x54]
add esp, 0x18
lea eax, [edi - 4]
call fcn.004064a0
sub dword [esp + 0x3c], 4
lea edx, [esp + 0x24]
push edx
mov ecx, 0x454c34
call fcn.00401a60
lea eax, [esp + 0x18]
push eax
mov ecx, str.BC86E1AB_EDA5_4059_938F_CE307B0C6F0A
mov byte [esp + 0x54], 8
call fcn.00401a60
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.SoftwareMicrosoftInternet_ExplorerURLSearchHooks
mov byte [esp + 0x54], 9
call fcn.00401a60
mov eax, dword [esp + 0x1c]
push ebp
lea edx, [esp + 0x24]
push edx
push ebp
push 2
push ebp
push ebp
push ebp
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40c944
xor eax, eax
jmp 0x40c978
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x18]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
mov eax, dword [esp + 0x28]
push 1
push ebp
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x20]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebp
sete al
cmp eax, ebp
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c99d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40ca36
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x40ca09
mov edi, dword [esp + 0x3c]
call fcn.004064a0
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00435178
add esp, 4
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c713
mov esi, dword [esp + 0x38]
cmp esi, dword [esp + 0x3c]
jbe 0x40ca45
call fcn.00435b3c
mov edi, esi
jmp 0x40ca50
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x38], esi
jbe 0x40ca5f
call fcn.00435b3c
cmp edi, esi
je 0x40cbee
cmp edi, dword [esp + 0x3c]
jb 0x40ca72
call fcn.00435b3c
mov eax, dword [edi]
mov ecx, str.BC86E1AB_EDA5_4059_938F_CE307B0C6F0A
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40caa6
cmp dx, bp
je 0x40caa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40caa6
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x40ca80
xor eax, eax
jmp 0x40caab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
setne al
test al, al
je 0x40cbdb
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x454c34
call fcn.00401a60
mov byte [esp + 0x50], 0xa
cmp edi, dword [esp + 0x3c]
jb 0x40cad7
call fcn.00435b3c
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40caec
mov edx, dword [eax + 4]
push edx
push edi
call fcn.00401fa0
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
call fcn.00401a60
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.SoftwareMicrosoftInternet_ExplorerURLSearchHooks
mov byte [esp + 0x54], 0xb
call fcn.00401a60
mov eax, dword [esp + 0x20]
push ebp
lea edx, [esp + 0x28]
push edx
push ebp
push 2
push ebp
push ebp
push ebp
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40cb30
xor eax, eax
jmp 0x40cb64
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x1c]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
mov eax, dword [esp + 0x2c]
push 1
push ebp
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x24]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebp
sete al
cmp eax, ebp
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cb89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0xa
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40c9eb
cmp edi, dword [esp + 0x3c]
jb 0x40cbe6
call fcn.00435b3c
add edi, 4
jmp 0x40ca50
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.SearchHookInstalled
call fcn.00401a60
mov eax, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x28]
push edx
push ebp
push 2
push ebp
push ebp
push ebp
push eax
push SysReAllocStringLen
mov dword [esp + 0x50], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40cc29
xor eax, eax
jmp 0x40cc57
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push 4
lea ecx, [esp + 0x30]
push ecx
push 4
push ebp
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x24]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebp
sete al
cmp eax, ebp
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cc7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov eax, dword [esp + 0x38]
jne 0x40c6d8
cmp eax, ebp
je 0x40cca4
mov edi, dword [esp + 0x3c]
call fcn.004064a0
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00435178
add esp, 4
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x40ccd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret