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

Disassembly:
push 0x20
mov eax, 0x47aa3d
call fcn.00450508
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.0041dfa0
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 0x4302e1
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 0x430303
mov edi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041e015
mov eax, edi
call fcn.004504d1
ret
xor edi, edi
cmp byte [esi + 0x1d], 0
mov ebx, 0xf003f
mov dword [ebp - 0x14], edi
je 0x4304ea
cmp dword [0x4a0604], 0
je 0x430327
mov ebx, dword [esi + 0xc]
or ebx, 0xf003f
cmp byte [esi + 8], 0
je 0x4303f4
push dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x14]
call fcn.0041f486
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
test edi, edi
je 0x4303a6
cmp edi, 0x490
jne 0x4304bd
cmp byte [esi + 0x1c], 0
jne 0x4304bd
cmp byte [esi + 0x1d], 0
je 0x4304bd
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 0x4304bd
cmp dword [ebp - 0x18], 1
sete al
mov byte [esi + 0x1e], al
jmp 0x4304ba
cmp byte [esi + 0x1c], 0
je 0x4304bd
cmp byte [esi + 0x1d], 0
je 0x4304bd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4303ce
push 0
push ebx
push dword [esi + 0x14]
push dword [esi + 0x10]
call eax
jmp 0x4303da
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 0x4304bd
cmp edi, 2
jne 0x4304bd
xor edi, edi
jmp 0x430446
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push ecx
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 0x4304bd
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 0x43047e
push dword [ebp - 0x18]
call fcn.00454c58
mov dword [esi + 0x28], eax
pop ecx
test eax, eax
jne 0x43044b
push 8
pop edi
mov dword [ebp - 0x10], edi
jmp 0x4304bd
push dword [ebp - 0x18]
push 0
push eax
call fcn.00451b90
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 0x430482
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x3c], eax
mov byte [esi + 0x40], 1
jmp 0x430482
and dword [ebp - 0x10], 0
cmp byte [esi + 0x1c], 0
je 0x430496
push dword [esi + 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4304b6
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 0x4304bd
mov byte [esi + 0x41], 1
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x14], 0
je 0x4304cf
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x4302ed
mov eax, dword [ebp - 0x20]
mov esi, dword [esi]
cmp esi, dword [eax + 0x28]
jne 0x430301
jmp 0x4302ed
push 0x52
pop edi
mov dword [ebp - 0x10], edi
jmp 0x4302ed