Function at 0x406290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a638
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x42465c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
xor esi, esi
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov dword [ebp - 4], esi
test eax, 0xffff0000
jne 0x4062fd
mov ecx, eax
movzx edi, cx
push edi
call fcn.00401080
add esp, 4
cmp eax, esi
je 0x406313
push eax
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00401aa0
jmp 0x406310
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea edx, [ebp - 0x10]
push edx
mov ebx, 0x39
call fcn.00401cd0
mov ebx, dword [ebp - 0x10]
mov eax, 1
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esi
cmp dword [ebx - 4], eax
jle 0x406342
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00401c40
mov ebx, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x20019
push esi
push ebx
push 0x80000002
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40646a
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x30], edi
call fcn.004064f0
test eax, eax
je 0x406447
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
push str.ConsentPromptBehaviorAdmin
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 4
call ebx
cmp eax, esi
jne 0x4063a8
cmp dword [ebp - 0x24], 4
je 0x4063ce
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
push str.PromptOnSecureDesktop
push edi
mov dword [ebp - 0x24], 4
call ebx
cmp eax, esi
jne 0x4063ff
cmp dword [ebp - 0x20], 4
jne 0x4063ff
cmp dword [ebp - 0x14], esi
jne 0x4063ff
cmp dword [ebp - 0x18], esi
jne 0x4063ff
cmp edi, esi
je 0x4063e3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.00401750
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, esi
je 0x40640a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
push esi
push str.EnableLUA
push edi
mov dword [ebp - 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0x30]
xor ecx, ecx
cmp dword [ebp - 0x1c], 1
sete cl
mov dword [ebp - 0x20], ecx
cmp edi, esi
je 0x406481
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4064a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret