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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6425b6
mov eax, dword fs:[0]
push eax
mov eax, 0x2250
call fcn.0061d060
mov eax, dword [0x6ccc30]
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 - 0x2224], eax
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x2234], xmm0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 0x2220], ebx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ebx
push edi
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2d08
lfence
cmp word [edi], 0x7d
je 0x5f2d08
nop word [eax + eax]
push 0x64ecf4
push edi
mov dword [ebp - 0x2238], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x64ecc8
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x5f2563
test ebx, ebx
je 0x5f26ba
mov ecx, dword [ebp - 0x2224]
push edi
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2d08
cmp dword [ebp + 0x10], 0
lfence
je 0x5f26ba
xorps xmm0, xmm0
mov dword [ebp - 0x223c], 0
movq qword [ebp - 0x2244], xmm0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
movzx eax, word [edi]
mov ecx, edi
mov byte [ebp - 4], 2
test ax, ax
je 0x5f25f3
mov edx, eax
nop dword [eax]
cmp dx, 0x5c
je 0x5f25eb
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x5f25d0
jmp 0x5f25f3
test ecx, ecx
jne 0x5f2c8c
mov esi, 0x64f384
nop dword [eax + eax]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x5f2665
add esi, 4
cmp esi, 0x64f3b4
jl 0x5f2600
mov eax, dword [ebp - 0x2228]
lea ecx, [ebp - 0x2244]
lfence
push edi
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.005f1f70
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
test ebx, ebx
je 0x5f26ac
mov ebx, dword [ebp - 0x2224]
mov ecx, ebx
push edi
lfence
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2c95
push edi
mov ecx, ebx
lfence
call fcn.005f32f0
mov esi, eax
test esi, esi
js 0x5f2c93
mov dword [ebp - 0x2240], 0
mov byte [ebp - 4], 0
jmp 0x5f295a
mov dword [ebp - 0x2240], 0
mov byte [ebp - 4], 0
push 0x64ece0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2224]
test eax, eax
jne 0x5f26e8
push edi
mov ecx, ebx
mov dword [ebp - 0x2238], eax
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2d08
push 0x64ecc0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x5f288b
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2d08
push edi
mov ecx, ebx
lfence
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2d08
cmp word [edi], 0x3d
jne 0x5f2c8c
cmp dword [ebp + 0x10], 0
je 0x5f27ca
lfence
xorps xmm0, xmm0
mov dword [ebp - 0x2248], 0
movq qword [ebp - 0x2250], xmm0
mov eax, dword [ebp - 0x2228]
mov ecx, ebx
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2250]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
call fcn.005eefb0
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x5f2c97
mov dword [ebp - 0x224c], 0
mov byte [ebp - 4], 0
jmp 0x5f295a
cmp dword [ebp + 0x14], 0
jne 0x5f2871
cmp dword [ebp - 0x2238], 0
je 0x5f2871
push 0x20006
push 0
push dword [ebp - 0x2228]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
call fcn.005f1a80
test eax, eax
jne 0x5f2cb5
mov ebx, dword [ebp - 0x225c]
lea eax, [ebp - 0x2218]
push eax
push ebx
mov byte [ebp - 4], 0xf
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x5f2844
cmp eax, 2
jne 0x5f2c99
mov byte [ebp - 4], 0x12
test ebx, ebx
je 0x5f285d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], 0
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2258], 0
mov byte [ebp - 4], 0
push edi
mov ecx, ebx
lfence
call fcn.005f32f0
mov esi, eax
test esi, esi
js 0x5f2d08
jmp 0x5f2c80
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x5f28ba
mov edx, eax
cmp dx, 0x5c
je 0x5f28b2
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x5f2897
jmp 0x5f28ba
test ecx, ecx
jne 0x5f2c8c
cmp dword [ebp + 0x10], 0
je 0x5f29bf
mov esi, dword [ebp - 0x2228]
lea ecx, [ebp - 0x2234]
push 0x2001f
push edi
push esi
call fcn.005f1a80
test eax, eax
je 0x5f2918
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2234]
call fcn.005f1a80
test eax, eax
je 0x5f2918
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x2234]
call fcn.005eff10
test eax, eax
jne 0x5f2cd7
push edi
mov ecx, ebx
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2ce2
cmp word [edi], 0x3d
jne 0x5f294e
push edi
push 0
lea eax, [ebp - 0x2234]
mov ecx, ebx
push eax
lfence
call fcn.005eefb0
mov esi, eax
test esi, esi
js 0x5f2ce2
mov eax, dword [ebp - 0x2234]
mov dword [ebp - 0x2220], eax
cmp word [edi], 0x7b
jne 0x5f2c80
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f2970
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x5f2c80
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2220]
push edi
call fcn.005f2490
mov esi, eax
test esi, esi
js 0x5f2d08
push edi
mov ecx, ebx
lfence
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2d08
jmp 0x5f2c80
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x5f29ed
push 0x20019
push edi
push dword [ebp - 0x2228]
lea ecx, [ebp - 0x2234]
call fcn.005f1a80
mov ebx, eax
mov eax, dword [ebp - 0x2234]
mov dword [ebp - 0x2220], eax
jmp 0x5f29f2
mov ebx, 2
test ebx, ebx
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push edi
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005d48d7
push eax
call fcn.005ef6c0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push edi
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2d08
mov ecx, dword [ebp - 0x2224]
push edi
lfence
call fcn.005f32f0
mov esi, eax
test esi, esi
js 0x5f2d08
cmp word [edi], 0x7b
jne 0x5f2abd
mov ecx, edi
lfence
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f2a60
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x5f2abd
mov ecx, dword [ebp - 0x2224]
lfence
push dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2220]
push edi
call fcn.005f2490
mov esi, eax
test esi, esi
jns 0x5f2aa4
cmp dword [ebp - 0x221c], 0
je 0x5f2d08
mov ecx, dword [ebp - 0x2224]
push edi
lfence
call fcn.005f18d0
mov esi, eax
test esi, esi
js 0x5f2d08
cmp ebx, 2
je 0x5f2c80
test ebx, ebx
je 0x5f2ada
cmp dword [ebp + 0x14], 0
jne 0x5f2c80
push ebx
jmp 0x5f2cfe
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x2220]
je 0x5f2b6f
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x5f2b6f
cmp dword [ebp - 0x221c], eax
jbe 0x5f2b6f
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x218]
push eax
lfence
call fcn.005ef800
test eax, eax
je 0x5f2c80
cmp dword [ebp - 0x2238], 0
je 0x5f2c80
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.005f1f70
mov eax, dword [ebp - 0x2234]
mov dword [ebp - 0x2220], eax
jmp 0x5f2c80
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x5f2ba3
xor ebx, ebx
jmp 0x5f2baf
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x2220]
xor eax, eax
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x5f2bd4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2220], ecx
mov dword [ebp - 0x2234], ecx
mov dword [ebp - 0x2230], 0
mov byte [ebp - 4], 0
test eax, eax
jne 0x5f2cfd
cmp dword [ebp - 0x2238], eax
je 0x5f2c80
test ebx, ebx
jne 0x5f2c80
mov byte [ebp - 4], 0x17
cmp byte [0x6cee50], bl
jne 0x5f2c45
push 0x64f050
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5f2c36
push 0x64f354
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov byte [0x6cee50], 1
mov dword [0x6cee4c], ebx
jmp 0x5f2c4b
mov ebx, dword [0x6cee4c]
mov byte [0x6cee50], 1
jmp 0x5f2c4b
mov ebx, dword [0x6cee4c]
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x5f2c6c
push 0
push 0
push eax
push dword [ebp - 0x2228]
mov ecx, ebx
call dword [0x64689c]
call ebx
jmp 0x5f2c79
push eax
push dword [ebp - 0x2228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x5f2cf0
mov byte [ebp - 4], al
cmp word [edi], 0x7d
jne 0x5f2530
jmp 0x5f2d08
mov esi, 0x80020009
jmp 0x5f2d08
jmp 0x5f2d08
jmp 0x5f2d08
jmp 0x5f2d08
push eax
call fcn.005ef7c0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x10
test ebx, ebx
je 0x5f2d08
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5f2d08
push eax
call fcn.005ef7c0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x225c]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x5f2d08
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5f2d08
push eax
call fcn.005ef7c0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2234]
mov dword [ebp - 0x2220], eax
jmp 0x5f2d08
push eax
call fcn.005ef7c0
add esp, 4
mov esi, eax
jmp 0x5f2d08
push eax
call fcn.005ef7c0
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 4], 0x1a
test eax, eax
je 0x5f2d20
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.005ce525
mov esp, ebp
pop ebp
ret 0x10