Function at 0x40f040
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x483ef6
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.0043c870
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x1150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x1168]
mov dword fs:[0], eax
mov eax, dword [esp + 0x117c]
mov edi, dword [esp + 0x1178]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x1184]
mov eax, edi
mov dword [esp + 0x1170], ebx
mov dword [esp + 0x38], edx
call fcn.0040ef20
mov esi, eax
cmp esi, ebx
jl 0x40f229
cmp byte [edi], 0x7d
je 0x40f227
jmp 0x40f0d0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x3c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
xor ebp, ebp
test eax, eax
je 0x40f103
cmp ebx, ebp
je 0x40f257
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040ef20
mov esi, eax
cmp esi, ebp
jl 0x40f218
cmp dword [esp + 0x1180], ebp
je 0x40f257
mov cl, byte [edi]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov eax, edi
test cl, cl
je 0x40f158
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40f140
cmp cl, 0x5c
je 0x40f150
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40f140
jmp 0x40f158
cmp eax, ebp
jne 0x40f6d8
mov esi, 0x49539c
lea ecx, [ecx]
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40f197
add esi, 4
cmp esi, str.SOFTWAREMicrosoftInternet_Explorer
jl 0x40f160
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebp
call fcn.0040ed30
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
cmp ebx, ebp
je 0x40f253
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.0040ef20
mov esi, eax
cmp esi, ebp
jl 0x40f6f4
mov ecx, ebx
call fcn.0040ec30
mov esi, eax
cmp esi, ebp
jl 0x40f6f4
mov dword [esp + 0x30], ebp
cmp byte [edi], 0x7b
jne 0x40f20d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40f20d
mov eax, dword [esp + 0x1180]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
push ebp
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0040f040
mov esi, eax
cmp esi, ebp
jl 0x40f218
mov eax, edi
mov ecx, ebx
call fcn.0040ef20
mov esi, eax
cmp esi, ebp
jl 0x40f216
cmp byte [edi], 0x7d
jne 0x40f0d0
xor ebp, ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40f227
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x1168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1150]
xor ecx, esp
call fcn.00436738
add esp, 0x1160
ret 0x10
mov dword [esp + 0x30], ebp
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40f27c
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x34], ebp
call fcn.0040ef20
mov esi, eax
cmp esi, ebp
jl 0x40f218
push 0x495378
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40f3ad
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x164]
call fcn.0040ef20
mov esi, eax
cmp esi, ebp
jl 0x40f218
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040ef20
mov esi, eax
cmp esi, ebp
jl 0x40f218
cmp byte [edi], 0x3d
jne 0x40f6e1
cmp dword [esp + 0x1180], ebp
je 0x40f320
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x164]
mov byte [esp + 0x1170], 1
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x50], ebp
call fcn.0040e750
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
jl 0x40f702
mov byte [esp + 0x1170], 0
mov dword [esp + 0x48], ebp
jmp 0x40f1cb
cmp dword [esp + 0x1184], ebp
jne 0x40f395
cmp dword [esp + 0x34], ebp
je 0x40f395
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebp
push ebp
push eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40f719
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x164]
push ecx
push esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebp
je 0x40f382
cmp eax, 2
jne 0x40f719
cmp esi, ebp
je 0x40f391
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov ecx, dword [esp + 0x1c]
call fcn.0040ec30
mov esi, eax
cmp esi, ebp
jl 0x40f218
jmp 0x40f20d
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x40f3d8
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40f3c0
cmp cl, 0x5c
je 0x40f3d0
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40f3c0
jmp 0x40f3d8
cmp eax, ebp
jne 0x40f6e1
cmp dword [esp + 0x1180], ebp
je 0x40f4f1
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebp
push edi
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40f42b
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40f415
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
cmp eax, ebp
je 0x40f4b3
jmp 0x40f42f
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push edi
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40f467
xor eax, eax
cmp ebx, ebp
je 0x40f457
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
cmp eax, ebp
je 0x40f4b3
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push edi
push esi
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebp
jne 0x40f72e
xor eax, eax
cmp ebx, ebp
je 0x40f49d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov esi, eax
mov dword [esp + 0x20], ecx
cmp eax, ebp
jne 0x40f72e
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040ef20
mov esi, eax
cmp esi, ebp
jl 0x40f218
cmp byte [edi], 0x3d
jne 0x40f1cb
push ebp
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.0040e750
mov esi, eax
cmp esi, ebp
jl 0x40f218
jmp 0x40f1cb
cmp dword [esp + 0x1184], ebp
jne 0x40f612
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push edi
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40f53a
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40f52e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edx
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40f54f
mov dword [esp + 0x1184], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.00438af4
push eax
call fcn.00401cb0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.0040ef20
mov esi, eax
cmp esi, ebp
jl 0x40f218
mov ecx, dword [esp + 0x1c]
call fcn.0040ec30
mov esi, eax
cmp esi, ebp
jl 0x40f218
cmp byte [edi], 0x7b
jne 0x40f5e2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40f5e2
mov ebx, dword [esp + 0x1184]
mov ecx, dword [esp + 0x20]
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.0040f040
mov esi, eax
cmp esi, ebp
jge 0x40f5c9
cmp ebx, ebp
je 0x40f218
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040ef20
mov esi, eax
cmp esi, ebp
jl 0x40f218
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1184], edx
cmp ebx, 2
je 0x40f20d
xor ebp, ebp
cmp ebx, ebp
je 0x40f623
cmp edx, ebp
jne 0x40f20d
mov eax, ebx
call fcn.0040ef10
mov esi, eax
jmp 0x40f218
mov dword [esp + 0x18], 2
mov ebx, dword [esp + 0x18]
jmp 0x40f544
mov ebx, dword [esp + 0x20]
cmp edx, ebp
je 0x40f663
mov ecx, ebx
call fcn.0040ee80
test eax, eax
je 0x40f663
lea ebx, [esp + 0x5c]
call fcn.0040eca0
test eax, eax
je 0x40f20d
cmp dword [esp + 0x34], 0
je 0x40f20d
mov eax, ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0040ed30
jmp 0x40f20d
mov ecx, ebx
call fcn.0040ee80
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], ebp
cmp ebx, ebp
je 0x40f685
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
cmp dword [esp + 0x18], ebp
jne 0x40f743
cmp dword [esp + 0x34], ebp
je 0x40f20d
cmp dword [esp + 0x4c], 0
jne 0x40f20d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ebp, ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
cmp eax, ebp
jne 0x40f75a
lea ecx, [esp + 0x50]
call fcn.0040eef0
jmp 0x40f20d
lea ecx, [esp + 0x2c]
call fcn.0040eef0
lea ecx, [esp + 0x20]
call fcn.0040eef0
mov eax, 0x80020009
jmp 0x40f229
lea ecx, [esp + 0x2c]
call fcn.0040eef0
jmp 0x40f218
lea ecx, [esp + 0x44]
call fcn.0040eef0
lea ecx, [esp + 0x20]
call fcn.0040eef0
jmp 0x40f227
call fcn.0040ef10
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.0040eef0
jmp 0x40f218
lea ecx, [esp + 0x20]
call fcn.0040eef0
mov eax, esi
call fcn.0040ef10
jmp 0x40f229
lea ecx, [esp + 0x20]
call fcn.0040eef0
mov eax, dword [esp + 0x18]
call fcn.0040ef10
jmp 0x40f229
call fcn.0040ef10
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0040eef0
jmp 0x40f218