Function at 0x7cf9e570
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
test byte [ebp + 9], 0xdf
push ebx
mov eax, 0x80070057
push esi
push edi
mov dword [ebp - 4], eax
jne 0x7cf9e895
xor esi, esi
cmp dword [ebp + 0x10], esi
jne 0x7cf9e895
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x7cf9e895
cmp word [edi], si
je 0x7cf9e895
mov eax, dword [ebp + 8]
and ah, 0
push eax
mov dword [ebp - 0x18], eax
call fcn.7cf4dbca
mov ebx, eax
cmp ebx, esi
mov dword [ebp + 0x14], ebx
je 0x7cf9e892
test byte [ebx + 0x11], 0x13
jne 0x7cf9e892
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x10], esi
jne 0x7cf9e603
cmp dword [ebx + 0xc], reloc.SHLWAPI.dll_ParseURLA
jne 0x7cf9e603
lea eax, [ebp + 0xc]
push eax
push 1
push 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x7cf9e603
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp word [edi], 0
mov esi, 0x104
jne 0x7cf9e668
push 1
pop eax
test eax, eax
je 0x7cf9e668
and dword [ebp + 0x10], 0
lea eax, [ebp - 8]
push eax
push 0x7cf3791c
push 0xffffffffffffffff
push ebx
call fcn.7cf9e0a3
test eax, eax
jl 0x7cf9e671
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push dword [ebx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cf9e65d
lea eax, [ebp - 0x220]
mov dword [ebp + 0x10], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7cf9e671
test byte [ebp + 9], 0x20
je 0x7cf9e676
mov dword [ebp + 0x10], edi
push 1
pop eax
jmp 0x7cf9e6a5
cmp dword [ebx + 0xc], reloc.SHLWAPI.dll_ParseURLA
jne 0x7cf9e699
lea eax, [ebp - 0x220]
push esi
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_Ordinal_466]
neg eax
sbb eax, eax
neg eax
jmp 0x7cf9e69c
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x7cf9e883
lea eax, [ebp - 0x428]
push esi
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_Ordinal_464]
mov esi, eax
neg esi
sbb esi, esi
xor edi, edi
neg esi
cmp dword [ebp + 0xc], edi
je 0x7cf9e6e6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.7cfa6336
test eax, eax
je 0x7cf9e6e6
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x7cf9e6ef
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push edi
push 0x7cf37cb4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x7cf9e769
cmp dword [ebp + 0x10], 0
je 0x7cf9e739
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 8]
push eax
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
push 2
push 0
push dword [eax + 8]
push dword [ebp - 0x14]
call ebx
jmp 0x7cf9e748
mov eax, dword [ebp + 0x14]
push dword [eax + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.7cf9e4ea
push dword [0x7d04ce88]
call dword [sym.imp.SHLWAPI.dll_Ordinal_224]
mov dword [0x7d04ce8c], eax
test edi, edi
jne 0x7cf9e85a
test esi, esi
je 0x7cf9e7d7
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push edi
push 0x7cf37c30
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7cf9e7d7
cmp dword [ebp + 0x10], eax
je 0x7cf9e7bf
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 8]
push eax
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp + 0x14]
push 1
push edi
push dword [eax + 8]
push dword [ebp - 0xc]
call ebx
jmp 0x7cf9e7ce
mov eax, dword [ebp + 0x14]
push dword [eax + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x7cf9e85a
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0xc], 0x80000001
jne 0x7cf9e85a
cmp dword [ebp - 0x18], 0x1a
jne 0x7cf9e85a
lea eax, [ebp + 0x10]
push eax
push 0x2001f
push edi
push 0x7cf37c04
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x7cf9e85a
lea eax, [ebp - 0x220]
xor esi, esi
push eax
mov eax, dword [ebp + 8]
push esi
or ah, 0x40
push dword [ebp + 0xc]
push eax
push esi
call sym.SHELL32.dll_SHGetFolderPathW
test eax, eax
jl 0x7cf9e851
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 8]
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push esi
push 0x7cf37bf4
push dword [ebp + 0x10]
call ebx
mov edi, eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x7cf9e869
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x7cf9e872
and dword [ebp - 4], edi
jmp 0x7cf9e883
jle 0x7cf9e880
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10], 0
je 0x7cf9e892
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10