Function at 0x4f5cc0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d486
mov eax, dword fs:[0]
push eax
mov eax, 0x1158
call fcn.00519090
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1118], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x111c], ecx
mov dword [ebp - 0x112c], 0
mov dword [ebp - 0x1128], 0
mov dword [ebp - 0x1124], 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f6459
cmp byte [edi], 0x7d
je 0x4f6446
nop word [eax + eax]
push str.Delete
push edi
mov dword [ebp - 0x1120], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4f5d83
test ebx, ebx
je 0x4f5e9b
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f6446
cmp dword [ebp + 0x10], 0
je 0x4f5e9b
mov al, byte [edi]
mov ecx, edi
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x1134], 0
mov dword [ebp - 0x1130], 0
test al, al
je 0x4f5ded
nop dword [eax]
cmp al, 0x5c
je 0x4f5de5
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x4f5dd0
jmp 0x4f5ded
test ecx, ecx
jne 0x4f63df
mov esi, 0x57d4cc
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4f5e54
add esi, 4
cmp esi, 0x57d4fc
jl 0x4f5df2
mov eax, dword [ebp - 0x111c]
lea ecx, [ebp - 0x1138]
push edi
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1134], 0
mov dword [ebp - 0x1130], 0
call fcn.004f56d0
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x1134], 0
mov dword [ebp - 0x1130], 0
test ebx, ebx
je 0x4f5e91
mov ebx, dword [ebp - 0x1118]
mov ecx, ebx
push edi
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f63f1
push edi
mov ecx, ebx
call fcn.004f7030
mov esi, eax
test esi, esi
js 0x4f63f1
mov dword [ebp - 0x1134], 0
jmp 0x4f61a8
mov dword [ebp - 0x1134], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [ebp - 0x1118]
test eax, eax
jne 0x4f5ec9
push edi
mov ecx, ebx
mov dword [ebp - 0x1120], eax
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f6446
push 0x57d4a8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4f6033
lea eax, [ebp - 0x1114]
mov ecx, ebx
push eax
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f6446
push edi
mov ecx, ebx
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f6446
cmp byte [edi], 0x3d
jne 0x4f63ea
cmp dword [ebp + 0x10], 0
je 0x4f5f8b
mov eax, dword [ebp - 0x111c]
mov ecx, ebx
mov dword [ebp - 0x114c], eax
lea eax, [ebp - 0x1114]
push edi
push eax
lea eax, [ebp - 0x114c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
call fcn.004f3c90
mov esi, eax
mov dword [ebp - 0x114c], 0
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
test esi, esi
js 0x4f63fe
mov byte [ebp - 4], 0
mov dword [ebp - 0x1148], 0
jmp 0x4f61a8
cmp dword [ebp + 0x14], 0
jne 0x4f601c
cmp dword [ebp - 0x1120], 0
je 0x4f601c
push 0x20006
push 0
push dword [ebp - 0x111c]
lea ecx, [ebp - 0x1158]
mov dword [ebp - 0x1158], 0
mov dword [ebp - 0x1154], 0
mov dword [ebp - 0x1150], 0
call fcn.004f50e0
test eax, eax
jne 0x4f640b
mov esi, dword [ebp - 0x1158]
lea eax, [ebp - 0x1114]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4f5ffd
cmp eax, 2
jne 0x4f640b
test esi, esi
je 0x4f6012
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1158], 0
mov dword [ebp - 0x1154], 0
push edi
mov ecx, ebx
call fcn.004f7030
mov esi, eax
test esi, esi
js 0x4f6446
jmp 0x4f63d4
mov al, byte [edi]
mov ecx, edi
test al, al
je 0x4f605d
nop dword [eax + eax]
cmp al, 0x5c
je 0x4f6055
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x4f6040
jmp 0x4f605d
test ecx, ecx
jne 0x4f63ea
cmp dword [ebp + 0x10], 0
je 0x4f61fc
mov esi, dword [ebp - 0x111c]
lea ecx, [ebp - 0x112c]
push 0x2001f
push edi
push esi
call fcn.004f50e0
test eax, eax
je 0x4f6176
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x112c]
call fcn.004f50e0
test eax, eax
je 0x4f6176
mov esi, dword [ebp - 0x1124]
mov dword [ebp - 0x1120], 0
test esi, esi
je 0x4f6117
cmp dword [esi], 0
je 0x4f610a
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4f60d0
mov eax, 1
jmp 0x4f613f
push str.RegCreateKeyTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f6110
push 0
push dword [esi]
lea ecx, [ebp - 0x113c]
push ecx
lea ecx, [ebp - 0x1120]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x111c]
call eax
jmp 0x4f613f
cmp dword [esi + 4], 0
jne 0x4f6117
mov eax, 1
jmp 0x4f613f
lea eax, [ebp - 0x113c]
push eax
lea eax, [ebp - 0x1120]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x111c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4f643b
mov ecx, dword [ebp - 0x112c]
test ecx, ecx
je 0x4f6158
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1120]
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1128], 0
test eax, eax
jne 0x4f643b
push edi
mov ecx, ebx
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f6446
cmp byte [edi], 0x3d
jne 0x4f61a8
push edi
push 0
lea eax, [ebp - 0x112c]
mov ecx, ebx
push eax
call fcn.004f3c90
mov esi, eax
test esi, esi
js 0x4f6446
cmp byte [edi], 0x7b
jne 0x4f63d4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f61b6
sub ecx, edx
cmp ecx, 1
jne 0x4f63d4
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x112c]
push edi
call fcn.004f5cc0
mov esi, eax
test esi, esi
js 0x4f6446
push edi
mov ecx, ebx
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f6446
jmp 0x4f63d4
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4f621e
push 0x20019
push edi
push dword [ebp - 0x111c]
lea ecx, [ebp - 0x112c]
call fcn.004f50e0
mov ebx, eax
jmp 0x4f6223
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x1140], eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0054889e
push eax
call fcn.00420ae0
mov ecx, dword [ebp - 0x1118]
add esp, 0x14
push edi
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f6446
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.004f7030
mov esi, eax
test esi, esi
js 0x4f6446
cmp byte [edi], 0x7b
jne 0x4f62d9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f6288
sub ecx, edx
cmp ecx, 1
jne 0x4f62d9
push dword [ebp - 0x1140]
mov ecx, dword [ebp - 0x1118]
push 0
push dword [ebp - 0x112c]
push edi
call fcn.004f5cc0
mov esi, eax
test esi, esi
jns 0x4f62c3
cmp dword [ebp - 0x1140], 0
je 0x4f6446
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.004f4d20
mov esi, eax
test esi, esi
js 0x4f6446
cmp ebx, 2
je 0x4f63d4
test ebx, ebx
je 0x4f62f6
cmp dword [ebp + 0x14], 0
jne 0x4f63d4
push ebx
jmp 0x4f643c
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x1118]
je 0x4f634d
push dword [ebp - 0x112c]
mov ecx, ebx
call fcn.004f4bb0
test eax, eax
je 0x4f634d
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
call fcn.004f4450
test eax, eax
je 0x4f63d4
cmp dword [ebp - 0x1120], 0
je 0x4f63d4
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x112c]
call fcn.004f56d0
jmp 0x4f63d4
push dword [ebp - 0x112c]
mov ecx, ebx
call fcn.004f4bb0
mov ecx, dword [ebp - 0x112c]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x4f6377
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1128], 0
test eax, eax
jne 0x4f643b
cmp dword [ebp - 0x1120], eax
je 0x4f63d4
test ebx, ebx
jne 0x4f63d4
mov eax, dword [ebp - 0x111c]
lea ecx, [ebp - 0x1164]
mov dword [ebp - 0x1164], eax
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x1160], ebx
mov dword [ebp - 0x115c], ebx
call fcn.004f4a60
mov dword [ebp - 0x1164], ebx
test eax, eax
jne 0x4f6423
lea ecx, [ebp - 0x1164]
call fcn.004f35a0
cmp byte [edi], 0x7d
jne 0x4f5d50
jmp 0x4f6446
lea ecx, [ebp - 0x1138]
call fcn.004f35a0
mov esi, 0x80020009
jmp 0x4f6446
lea ecx, [ebp - 0x1138]
call fcn.004f35a0
jmp 0x4f6446
lea ecx, [ebp - 0x114c]
call fcn.004f35a0
jmp 0x4f6446
push eax
call fcn.004f4430
add esp, 4
lea ecx, [ebp - 0x1158]
mov esi, eax
call fcn.004f35a0
jmp 0x4f6446
push eax
call fcn.004f4430
add esp, 4
lea ecx, [ebp - 0x1164]
mov esi, eax
call fcn.004f35a0
jmp 0x4f6446
push eax
call fcn.004f4430
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x4f6457
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.005189ad
mov esp, ebp
pop ebp
ret 0x10