Function at 0x76e56924
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
je 0x76e56952
mov dword [ebp - 0x14], eax
jmp 0x76e56ad7
lea eax, [ebp - 8]
push eax
push 1
push ebx
push 0x76e49e50
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x76e5697f
push eax
push 0x76e57044
call fcn.76e42867
pop ecx
pop ecx
jmp 0x76e56ae0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x76e5702c
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x76e56a76
cmp dword [ebp - 4], ebx
je 0x76e56a76
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x76e56c51
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x76e569d9
push eax
push 0x76e56ff8
jmp 0x76e56c12
push dword [ebp - 0x14]
push 0x76e56fcc
call fcn.76e42867
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x76e569f9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push 1
push ebx
push 0x76e56f70
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x76e56afe
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x76e56f48
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x76e56afe
cmp dword [ebp - 4], ebx
je 0x76e56afe
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x76e56c51
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x76e56aef
push eax
push 0x76e56f0c
jmp 0x76e56c12
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x76e56ef8
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x76e56ae0
cmp dword [ebp - 4], ebx
je 0x76e56ae0
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x76e56c51
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x76e56ac8
push eax
push 0x76e56ec4
jmp 0x76e56c12
push dword [ebp - 0x14]
push 0x76e56e9c
call fcn.76e42867
pop ecx
pop ecx
cmp dword [ebp - 0x14], ebx
jne 0x76e569e8
push 0x76e56e70
call fcn.76e42867
jmp 0x76e56c18
push dword [ebp - 0xc]
push 0x76e56e3c
call fcn.76e42867
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x76e56b0f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
jne 0x76e56c7b
lea eax, [ebp - 8]
push eax
push 1
push ebx
push 0x76e49e50
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x76e56c2d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x76e49e18
push dword [ebp - 8]
mov dword [ebp - 4], 4
call esi
test eax, eax
jne 0x76e56c2d
cmp dword [ebp - 0x1c], ebx
jne 0x76e56c2d
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x76e56e28
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x76e56bc9
cmp dword [ebp - 4], ebx
je 0x76e56bc9
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x76e56c51
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x76e56bb5
push eax
push 0x76e56df4
jmp 0x76e56c12
push dword [ebp - 0xc]
push 0x76e56dc8
call fcn.76e42867
pop ecx
pop ecx
jmp 0x76e56c7b
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x76e56db8
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x76e56c2d
cmp dword [ebp - 4], ebx
je 0x76e56c2d
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x76e56c51
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x76e56c23
push eax
push 0x76e56d88
call fcn.76e42867
pop ecx
pop ecx
mov esi, 0x4ba
jmp 0x76e56cdc
push dword [ebp - 0xc]
push 0x76e56d60
jmp 0x76e56bbd
mov esi, dword [ebp + 0xc]
push esi
push 0x76e56d18
call fcn.76e42867
movzx eax, word [esi]
pop ecx
inc eax
pop ecx
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x76e56c59
push 8
pop esi
jmp 0x76e56cdc
movzx ecx, word [esi]
mov esi, dword [esi + 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx]
shr ecx, 1
mov word [eax + ecx*2], bx
push dword [ebp - 0xc]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call esi
add eax, edi
pop ecx
lea eax, [eax + eax + 4]
push eax
call sub.NETAPI32.dll_NetApiBufferAllocate
mov esi, eax
cmp esi, ebx
jne 0x76e56cdc
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_wcscpy]
cmp edi, ebx
pop ecx
pop ecx
je 0x76e56cd2
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x76e56d14
push dword [ebp - 0x18]
call esi
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call esi
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
cmp dword [ebp - 8], ebx
je 0x76e56cea
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x76e56d00
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
je 0x76e56d00
push eax
call edi
cmp dword [ebp - 0xc], ebx
je 0x76e56d0a
push dword [ebp - 0xc]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc