Function at 0x4f94c0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x448
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x18], di
mov ebx, dword [0x6fca90]
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401070
cmp esi, edi
je 0x4f9574
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4f9554
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push ebx
call edi
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4f9554
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4f9557
mov ecx, dword [ebp - 0x14]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
mov cl, byte [ebp + 0x20]
test cl, cl
jne 0x4f9579
cmp eax, edi
jne 0x4f9567
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4f957c
mov eax, dword [ebp - 0x1c]
jmp 0x4f9559
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x24], di
mov eax, dword [0x6fca20]
mov byte [ebp - 4], 4
cmp eax, edi
jne 0x4f9598
mov eax, 0x6fca24
mov edx, dword [ebp + 0x1c]
push edi
push edx
push eax
push 0x6c900c
lea ecx, [ebp - 0x28]
call fcn.00410d70
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x44]
push edi
lea ecx, [ebp - 0x3c]
push eax
push ecx
push edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4f96b6
cmp dword [ebp - 0x3c], edi
je 0x4f96b6
xor esi, esi
test esi, esi
jne 0x4f96b4
lea edx, [ebp - 0x24c]
push 0x104
push edx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x4f96ae
lea eax, [ebp - 0x2c]
lea ecx, [ebp + 8]
push eax
push ecx
push esi
push 0xf003f
push esi
push 0x6fc41c
lea edx, [ebp - 0x24c]
push esi
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4f96ae
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x1c]
lea ecx, [ebp - 0x454]
push eax
push ecx
push esi
push esi
push esi
push edx
mov dword [ebp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f96a4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4f9654
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x454]
push ecx
push eax
call fcn.0060c3d3
add esp, 8
test eax, eax
jne 0x4f96a4
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4f9672
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x24c]
push edx
push eax
call fcn.0060a1a4
add esp, 8
test eax, eax
je 0x4f96a4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24c]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
inc edi
jmp 0x4f95d6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x4f95d6
xor edi, edi
mov al, byte [ebp + 0x20]
test al, al
je 0x4f9815
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x4f96cb
lea eax, [ebp - 0x18]
lea ecx, [ebp + 0x20]
push edi
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x4f9815
mov ecx, dword [ebp + 0x20]
lea edx, [ebp + 0x1c]
lea eax, [ebp - 0x454]
push edx
push eax
push edi
push edi
push edi
push ecx
mov dword [ebp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f972a
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x4f9716
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x454]
push edx
push eax
call fcn.0060c3d3
add esp, 8
test eax, eax
je 0x4f9758
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x4f97d8
lea eax, [ebp - 0x24]
lea esi, [ebp - 0x24]
push eax
call fcn.00609a4e
mov ecx, dword [ebp + 0x20]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0x20]
lea edx, [ebp + 8]
lea eax, [ebp - 0x40]
push edx
push eax
push edi
push edi
push str.contexts
push ecx
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f9785
cmp dword [ebp - 0x40], 0xf3
je 0x4f97a4
mov eax, dword [ebp + 0x20]
lea edx, [ebp - 0x2c]
push 4
push edx
push 4
push edi
push str.contexts
push eax
mov dword [ebp - 0x2c], 0xf3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x18]
push edi
push edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x34], di
call fcn.004027e0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4f980b
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4f97df
lea eax, [ebp - 0x18]
jmp 0x4f97e3
mov esi, eax
jmp 0x4f973b
mov ebx, eax
jmp 0x4f97e6
lea ebx, [ebp - 0x18]
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x4f97f0
lea esi, [ebp - 0x34]
push eax
call fcn.00609a4e
add esp, 4
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x38]
call fcn.00401070
xor edi, edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401070
jmp 0x4f9837
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], edi
call fcn.00622d8a
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c