Function at 0x427990
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x47fc14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
lea edi, [ecx + 4]
push edi
push 0
push 0x20006
push 0
push 0
push 0
push dword [ecx]
mov dword [ebp - 0x28], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x427b4f
cmp dword [esi], eax
je 0x427b47
add esi, 0xc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2c], esi
nop word [eax + eax]
mov eax, dword [esi - 8]
cmp eax, 7
ja case.default.0x4279fc
jmp dword [eax*4 + 0x427c08]
mov eax, dword [esi]
push 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 4
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x4279fc
mov eax, dword [esi]
push 4
movzx eax, byte [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x4279fc
mov eax, dword [esi]
push 8
movsd xmm0, qword [eax]
lea eax, [ebp - 0x48]
push eax
push 3
push 0
push dword [esi - 0xc]
movsd qword [ebp - 0x48], xmm0
push dword [edi]
call ebx
jmp case.default.0x4279fc
mov eax, dword [esi]
push 4
movsx eax, word [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x4279fc
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427a84
sub ecx, edi
mov edi, dword [ebp - 0x28]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x4279fc
mov ebx, dword [esi - 4]
lea eax, [ebp - 0x30]
mov edi, dword [esi]
push 0
push eax
mov eax, dword [ebp - 0x28]
push 0
push 0x20006
push 0
push 0
push 0
push dword [esi - 0xc]
shr ebx, 2
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x427b2d
xor esi, esi
test ebx, ebx
je 0x427b21
nop
push esi
push 0x469cdc
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.0040ebb0
add esp, 0x10
lea eax, [ebp - 0x24]
cmp dword [edi], 0
je 0x427b0f
push 4
push edi
push 4
push 0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x427b19
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
add edi, 4
cmp esi, ebx
jb 0x427ae0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [ebp - 0x28]
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp dword [esi - 0xc], 0
jne 0x4279f0
pop ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00438d70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
mov edi, dword [esi - 4]
push 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
push 0
push 0x20006
push 0
push 0
push 0
push dword [esi - 0xc]
shr edi, 1
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x427b33
xor esi, esi
test edi, edi
je 0x427be2
push esi
push 0x469cdc
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.0040ebb0
mov eax, dword [ebp - 0x3c]
add esp, 0x10
movzx ecx, word [eax + esi*2]
mov eax, ecx
mov dword [ebp - 0x40], eax
test cx, cx
je 0x427bd0
push 4
lea eax, [ebp - 0x40]
push eax
push 4
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call ebx
jmp 0x427bdd
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
cmp esi, edi
jb 0x427b96
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x2c]
jmp 0x427b33
push dword [esi - 4]
push dword [esi]
push 3
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x4279fc