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

Disassembly:
push 0xffffffffffffffff
push 0x483ea6
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.0043c850
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.0040ef00
mov esi, eax
cmp esi, ebx
jl 0x40f209
cmp byte [edi], 0x7d
je 0x40f207
jmp 0x40f0b0
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 0x40f0e3
cmp ebx, ebp
je 0x40f237
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040ef00
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
cmp dword [esp + 0x1180], ebp
je 0x40f237
mov cl, byte [edi]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov eax, edi
test cl, cl
je 0x40f138
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40f120
cmp cl, 0x5c
je 0x40f130
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40f120
jmp 0x40f138
cmp eax, ebp
jne 0x40f6b8
mov esi, 0x49537c
lea ecx, [ecx]
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40f177
add esi, 4
cmp esi, str.SOFTWAREMicrosoftInternet_Explorer
jl 0x40f140
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebp
call fcn.0040ed10
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
cmp ebx, ebp
je 0x40f233
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.0040ef00
mov esi, eax
cmp esi, ebp
jl 0x40f6d4
mov ecx, ebx
call fcn.0040ec10
mov esi, eax
cmp esi, ebp
jl 0x40f6d4
mov dword [esp + 0x30], ebp
cmp byte [edi], 0x7b
jne 0x40f1ed
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40f1ed
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.0040f020
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
mov eax, edi
mov ecx, ebx
call fcn.0040ef00
mov esi, eax
cmp esi, ebp
jl 0x40f1f6
cmp byte [edi], 0x7d
jne 0x40f0b0
xor ebp, ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40f207
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.0043671a
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 0x40f25c
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x34], ebp
call fcn.0040ef00
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
push 0x495358
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40f38d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x164]
call fcn.0040ef00
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040ef00
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
cmp byte [edi], 0x3d
jne 0x40f6c1
cmp dword [esp + 0x1180], ebp
je 0x40f300
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.0040e730
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
jl 0x40f6e2
mov byte [esp + 0x1170], 0
mov dword [esp + 0x48], ebp
jmp 0x40f1ab
cmp dword [esp + 0x1184], ebp
jne 0x40f375
cmp dword [esp + 0x34], ebp
je 0x40f375
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 0x40f6f9
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 0x40f362
cmp eax, 2
jne 0x40f6f9
cmp esi, ebp
je 0x40f371
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.0040ec10
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
jmp 0x40f1ed
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x40f3b8
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40f3a0
cmp cl, 0x5c
je 0x40f3b0
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40f3a0
jmp 0x40f3b8
cmp eax, ebp
jne 0x40f6c1
cmp dword [esp + 0x1180], ebp
je 0x40f4d1
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 0x40f40b
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40f3f5
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 0x40f493
jmp 0x40f40f
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 0x40f447
xor eax, eax
cmp ebx, ebp
je 0x40f437
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 0x40f493
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 0x40f70e
xor eax, eax
cmp ebx, ebp
je 0x40f47d
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 0x40f70e
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040ef00
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
cmp byte [edi], 0x3d
jne 0x40f1ab
push ebp
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.0040e730
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
jmp 0x40f1ab
cmp dword [esp + 0x1184], ebp
jne 0x40f5f2
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 0x40f51a
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
je 0x40f50e
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 0x40f52f
mov dword [esp + 0x1184], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.00438ad4
push eax
call fcn.00401cc0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.0040ef00
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
mov ecx, dword [esp + 0x1c]
call fcn.0040ec10
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
cmp byte [edi], 0x7b
jne 0x40f5c2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40f5c2
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.0040f020
mov esi, eax
cmp esi, ebp
jge 0x40f5a9
cmp ebx, ebp
je 0x40f1f8
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040ef00
mov esi, eax
cmp esi, ebp
jl 0x40f1f8
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1184], edx
cmp ebx, 2
je 0x40f1ed
xor ebp, ebp
cmp ebx, ebp
je 0x40f603
cmp edx, ebp
jne 0x40f1ed
mov eax, ebx
call fcn.0040eef0
mov esi, eax
jmp 0x40f1f8
mov dword [esp + 0x18], 2
mov ebx, dword [esp + 0x18]
jmp 0x40f524
mov ebx, dword [esp + 0x20]
cmp edx, ebp
je 0x40f643
mov ecx, ebx
call fcn.0040ee60
test eax, eax
je 0x40f643
lea ebx, [esp + 0x5c]
call fcn.0040ec80
test eax, eax
je 0x40f1ed
cmp dword [esp + 0x34], 0
je 0x40f1ed
mov eax, ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0040ed10
jmp 0x40f1ed
mov ecx, ebx
call fcn.0040ee60
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], ebp
cmp ebx, ebp
je 0x40f665
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 0x40f723
cmp dword [esp + 0x34], ebp
je 0x40f1ed
cmp dword [esp + 0x4c], 0
jne 0x40f1ed
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 0x40f73a
lea ecx, [esp + 0x50]
call fcn.0040eed0
jmp 0x40f1ed
lea ecx, [esp + 0x2c]
call fcn.0040eed0
lea ecx, [esp + 0x20]
call fcn.0040eed0
mov eax, 0x80020009
jmp 0x40f209
lea ecx, [esp + 0x2c]
call fcn.0040eed0
jmp 0x40f1f8
lea ecx, [esp + 0x44]
call fcn.0040eed0
lea ecx, [esp + 0x20]
call fcn.0040eed0
jmp 0x40f207
call fcn.0040eef0
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.0040eed0
jmp 0x40f1f8
lea ecx, [esp + 0x20]
call fcn.0040eed0
mov eax, esi
call fcn.0040eef0
jmp 0x40f209
lea ecx, [esp + 0x20]
call fcn.0040eed0
mov eax, dword [esp + 0x18]
call fcn.0040eef0
jmp 0x40f209
call fcn.0040eef0
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0040eed0
jmp 0x40f1f8