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

Disassembly:
push 0x20
mov eax, 0x480275
call fcn.004542d2
mov ebx, ecx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push str.HandleRegistry
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], edi
call fcn.0041e3a4
mov dword [ebp - 4], edi
push str.advapi32.dll
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x430cac
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebx + 0x28]
mov esi, dword [ecx]
cmp esi, ecx
jne 0x430cce
mov edi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041e418
mov eax, edi
call fcn.004542a0
ret
xor edi, edi
cmp byte [esi + 0x1d], 0
mov ebx, 0xf003f
mov dword [ebp - 0x14], edi
je 0x430eb5
cmp dword [0x4a76e4], 0
je 0x430cf2
mov ebx, dword [esi + 0xc]
or ebx, 0xf003f
cmp byte [esi + 8], 0
je 0x430dbf
push dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x14]
call fcn.0041f852
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
test edi, edi
je 0x430d71
cmp edi, 0x490
jne 0x430e88
cmp byte [esi + 0x1c], 0
jne 0x430e88
cmp byte [esi + 0x1d], 0
je 0x430e88
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push 0
push 0
push 0
push dword [esi + 0x14]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x430e88
cmp dword [ebp - 0x18], 1
sete al
mov byte [esi + 0x1e], al
jmp 0x430e85
cmp byte [esi + 0x1c], 0
je 0x430e88
cmp byte [esi + 0x1d], 0
je 0x430e88
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x430d99
push 0
push ebx
push dword [esi + 0x14]
push dword [esi + 0x10]
call eax
jmp 0x430da5
push dword [esi + 0x14]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x430e88
cmp edi, 2
jne 0x430e88
xor edi, edi
jmp 0x430e11
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push eax
push ebx
push 0
push dword [esi + 0x14]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x430e88
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push dword [esi + 0x20]
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x430e49
push dword [ebp - 0x18]
call fcn.00461b84
mov dword [esi + 0x28], eax
pop ecx
test eax, eax
jne 0x430e16
push 8
pop edi
mov dword [ebp - 0x10], edi
jmp 0x430e88
push dword [ebp - 0x18]
push 0
push eax
call fcn.004557e0
add esp, 0xc
lea ecx, [ebp - 0x18]
lea eax, [esi + 0x34]
push ecx
push dword [esi + 0x28]
push eax
push 0
push dword [esi + 0x20]
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x430e4d
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x3c], eax
mov byte [esi + 0x40], 1
jmp 0x430e4d
and dword [ebp - 0x10], 0
cmp byte [esi + 0x1c], 0
je 0x430e61
push dword [esi + 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x430e81
push dword [esi + 0x38]
push dword [esi + 0x2c]
push dword [esi + 0x30]
push 0
push dword [esi + 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x430e88
mov byte [esi + 0x41], 1
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x14], 0
je 0x430e9a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x430cb8
mov eax, dword [ebp - 0x20]
mov esi, dword [esi]
cmp esi, dword [eax + 0x28]
jne 0x430ccc
jmp 0x430cb8
push 0x52
pop edi
mov dword [ebp - 0x10], edi
jmp 0x430cb8