Function at 0x427610
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d21fc
push eax
mov dword fs:[0], esp
sub esp, 0xcc
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
xor ebp, ebp
push 0x2001f
push ebp
push str.software
mov ebx, ecx
push 0x80000001
call esi
test eax, eax
jne 0x427911
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push ebp
push str.SmartCarve43
push edx
call esi
test eax, eax
jne 0x42784c
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebp
push str.EnableUser
push ecx
call esi
test eax, eax
jne 0x427795
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edi
push edx
lea eax, [esp + 0x34]
push ebp
push eax
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x20]
inc edx
push edx
call fcn.005b449a
mov esi, eax
mov eax, dword [esp + 0x24]
mov edi, esi
add esp, 4
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push esi
push ecx
push ebp
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x20
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebp
call fcn.0041b410
push esi
lea eax, [esp + 0x28]
push 0x642b90
push eax
mov dword [esp + 0xf0], ebp
call fcn.00427c90
push esi
call fcn.005b44c3
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov al, byte [ecx]
pop edi
cmp al, 0x74
je 0x427752
cmp al, 0x54
je 0x427752
cmp al, 0x66
je 0x42774e
cmp al, 0x46
je 0x42774e
lea ecx, [esp + 0x20]
call fcn.00428540
neg eax
sbb eax, eax
neg eax
jmp 0x427757
xor eax, eax
jmp 0x427757
mov eax, 1
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov dword [ebx + 0x164c], eax
call esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0xe0], 0xffffffff
push eax
call fcn.005b44c3
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
jmp 0x427911
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x34]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.Admin
push eax
call esi
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x38]
push ecx
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.Designer
push eax
call esi
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x30]
push ecx
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push 0x642b60
push eax
call esi
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.EnableUser
push eax
call esi
mov ecx, dword [esp + 0x14]
push 1
push 0x642b5c
push 4
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov dword [ebx + 0x164c], ebp
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
jmp 0x427911
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.SmartCarve43
push eax
call esi
test eax, eax
jne 0x427911
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x34]
push ecx
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.Admin
push eax
call esi
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x38]
push ecx
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.Designer
push eax
call esi
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x30]
push ecx
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push 0x642b60
push eax
call esi
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push str.EnableUser
push eax
call esi
mov ecx, dword [esp + 0x14]
push 1
push 0x642b5c
push 4
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebx + 0x164c], ebp
mov eax, dword [ebx + 0x164c]
mov esi, 1
cmp eax, esi
mov dword [ebx + 0x1890], ebp
jne 0x427983
push ebp
lea ecx, [esp + 0x40]
call fcn.0046bb70
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe0], esi
call fcn.005b02e3
cmp eax, esi
jne 0x42799d
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe0], 3
call fcn.005b4761
lea ecx, [esp + 0x98]
mov byte [esp + 0xe0], 2
call fcn.005c64cd
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe0], 0xffffffff
call fcn.005afeed
mov eax, esi
mov ecx, dword [esp + 0xd8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe0], 5
call fcn.005b4761
lea ecx, [esp + 0x98]
mov byte [esp + 0xe0], 4
call fcn.005c64cd
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe0], 0xffffffff
call fcn.005afeed
xor eax, eax
jmp 0x427985