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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4d85
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
mov dword [ebp - 4], 0
push 0x80000001
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [ebp + 0xc]
push 0x5be714
push dword [esi]
call fcn.00566ed2
add esp, 8
test eax, eax
jne 0x4bda5c
cmp dword [ebp + 0x18], eax
je 0x4bda21
mov byte [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4bdb66
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov ebx, dword [eax]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bda09
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push ebx
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4bd96c
cmp eax, 2
jne 0x4bda09
lea ecx, [ebp - 0x10]
call fcn.00429bc0
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x4bdb70
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4bd9a2
push edx
lea ecx, [ebp - 0x10]
call fcn.00429e50
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4bda09
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.00566c13
add esp, 8
test eax, eax
js 0x4bdb70
cmp eax, dword [esi - 8]
jg 0x4bdb70
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bdb46
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4bdb46
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bda21
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bdb54
mov edx, esi
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4bda36
sub edx, edi
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
mov ecx, dword [ebp + 0x10]
push esi
push 1
push 0
push dword [ecx]
jmp 0x4bdb3f
push 0x5c6598
push dword [esi]
call fcn.00566ed2
add esp, 8
test eax, eax
jne 0x4bdacf
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], eax
je 0x4bdaaa
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x4bdaaa
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bdaaa
cmp dword [ebp - 0x18], 4
je 0x4bdb46
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.0056e22d
mov dword [ebp - 0x1c], eax
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bdb54
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 4
jmp 0x4bdb3b
push str.qword
push dword [esi]
call fcn.00566ed2
add esp, 8
test eax, eax
jne 0x4bdb46
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], eax
je 0x4bdb19
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 8
test eax, eax
je 0x4bdb19
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bdb19
cmp dword [ebp - 0x18], 0xb
je 0x4bdb46
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.0056e250
mov dword [ebp - 0x20], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x4bdb54
push 8
lea ecx, [ebp - 0x20]
push ecx
push 0xb
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bdb54
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
push 0x80070057
call fcn.00429b00
int3