Function at 0x424880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x10]
push str.SYSTEMCurrentControlSetServices_
lea eax, [ebp - 0xa2c]
push 0x104
push eax
mov dword [ebp - 0xa48], edx
mov esi, ecx
mov dword [ebp - 0xa44], edi
mov dword [ebp - 0xa40], ebx
mov dword [ebp - 0xa4c], 0
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
push dword [esi]
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0xa3c]
push eax
mov eax, dword [ebp + 8]
or eax, 1
push eax
push 0
lea eax, [ebp - 0xa2c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x424959
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x43f69c
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0xa2c]
push eax
mov eax, ebx
push 0
or eax, 0x3010000
push eax
call edi
test eax, eax
jne 0x424ffe
jmp 0x42495c
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xa30]
push eax
push 0
push str.DisplayName
push dword [ebp - 0xa3c]
mov dword [ebp - 0xa34], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
je 0x4249d5
cmp word [edi], 0
je 0x4249d5
cmp eax, 2
jne 0x4249a5
lea ebx, [eax - 1]
jmp 0x4249de
test eax, eax
jne 0x4249d9
mov eax, dword [ebp - 0xa30]
cmp eax, 1
je 0x4249be
cmp eax, 7
je 0x4249be
cmp eax, 2
jne 0x4249d9
lea eax, [ebp - 0x61c]
push edi
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x424a37
jmp 0x4249d9
test eax, eax
jne 0x424a37
mov ebx, 2
push str.DisplayName
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x441074
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push 0
push eax
push dword [esi + 4]
movzx eax, bl
mov ebx, dword [ebp + 0xc]
shl eax, 0x10
or eax, ebx
push 1
or eax, 0x1000001
push eax
call dword [ebp - 0xa44]
test eax, eax
jne 0x424ffe
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xa30]
push eax
push 0
push str.Group
push dword [ebp - 0xa3c]
mov dword [ebp - 0xa34], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
je 0x424ab0
cmp word [edi], 0
je 0x424ab0
cmp eax, 2
jne 0x424a80
lea ebx, [eax - 1]
jmp 0x424ab9
test eax, eax
jne 0x424ab4
mov eax, dword [ebp - 0xa30]
cmp eax, 1
je 0x424a99
cmp eax, 7
je 0x424a99
cmp eax, 2
jne 0x424ab4
lea eax, [ebp - 0x61c]
push edi
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x424b12
jmp 0x424ab4
test eax, eax
jne 0x424b12
mov ebx, 2
push str.Group
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x441074
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push 0
push eax
push dword [esi + 0x18]
movzx eax, bl
mov ebx, dword [ebp + 0xc]
shl eax, 0x10
or eax, ebx
push 1
or eax, 0x3000002
push eax
call dword [ebp - 0xa44]
test eax, eax
jne 0x424ffe
mov edx, dword [esi + 0x14]
mov ecx, edx
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424b20
sub ecx, edi
sar ecx, 1
lea eax, [edx - 8]
push str..sys
lea eax, [eax + ecx*2]
push eax
mov dword [ebp - 0xa34], eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
push str.Start
push dword [ebp - 0xa3c]
lea edi, [esi + 0xc]
mov dword [ebp - 0xa30], 0x410
je 0x424c03
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
jne 0x424b94
test eax, eax
je 0x424bbd
jmp 0x424cd6
cmp eax, 2
je 0x424bbd
test eax, eax
jne 0x424bbd
cmp dword [ebp - 0xa38], 4
jne 0x424bbd
cmp dword [ebp - 0xa30], 4
jne 0x424bbd
mov eax, dword [ebp - 0x61c]
cmp eax, dword [edi]
je 0x424cd6
push str.Start
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x441074
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push 0
push eax
mov eax, ebx
push 0x44109c
or eax, 0x3020003
jmp 0x424cc5
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
jne 0x424c17
test eax, eax
jne 0x424cd6
jmp 0x424c45
cmp eax, 2
jne 0x424c21
lea ebx, [eax - 1]
jmp 0x424c4a
test eax, eax
jne 0x424c45
cmp dword [ebp - 0xa38], 4
jne 0x424c45
cmp dword [ebp - 0xa30], 4
jne 0x424c45
mov eax, dword [ebp - 0x61c]
cmp eax, dword [edi]
je 0x424cd6
mov ebx, 2
push str.Start
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x441074
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
push 0xa
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.MSVCR110.dll__itow_s]
add esp, 0x34
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push 0
push eax
lea eax, [ebp - 0x414]
push eax
movzx eax, bl
shl eax, 0x10
or eax, dword [ebp + 0xc]
or eax, 0x3000003
push 4
push eax
call dword [ebp - 0xa44]
test eax, eax
jne 0x424ffe
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
push str.Type
push dword [ebp - 0xa3c]
lea edi, [esi + 8]
mov dword [ebp - 0xa30], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
jne 0x424d66
test eax, eax
je 0x424d90
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call sub.MSVCR110.dll_memset
push str..sys
push dword [ebp - 0xa34]
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 0x14
push dword [esi + 0x14]
test eax, eax
push dword [ebp - 0xa48]
lea eax, [ebp - 0x824]
je 0x424e28
push 0x43f69c
jmp 0x424e2d
cmp eax, 2
jne 0x424d70
lea ebx, [eax - 1]
jmp 0x424d95
test eax, eax
jne 0x424d90
cmp dword [ebp - 0xa38], 4
jne 0x424d90
cmp dword [ebp - 0xa30], 4
jne 0x424d90
mov eax, dword [ebp - 0x61c]
cmp eax, dword [edi]
je 0x424d13
mov ebx, 2
push str.Type
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x441074
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
push 0xa
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call dword [sym.imp.MSVCR110.dll__itow_s]
mov edi, dword [ebp + 0xc]
add esp, 0x34
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push 0
push eax
lea eax, [ebp - 0x414]
push eax
movzx eax, bl
shl eax, 0x10
or eax, edi
push 4
or eax, 0x3000004
push eax
call dword [ebp - 0xa44]
test eax, eax
jne 0x424ffe
jmp 0x424d16
push 0x4410a0
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
mov ecx, dword [ebp - 0xa3c]
add esp, 0x14
lea eax, [ebp - 0x824]
push eax
push 2
mov edx, str.ImagePath
call fcn.00424740
mov ebx, eax
test ebx, ebx
je 0x424eb9
push str.ImagePath
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x441074
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push 0
push eax
lea eax, [ebp - 0x824]
push eax
movzx eax, bl
mov ebx, dword [ebp - 0xa44]
shl eax, 0x10
or eax, edi
push 2
or eax, 0x3000005
push eax
call ebx
test eax, eax
jne 0x424ffe
jmp 0x424ebf
mov ebx, dword [ebp - 0xa44]
push str..sys
push dword [ebp - 0xa34]
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xa34]
push eax
push 0
push str.ObjectName
push dword [ebp - 0xa3c]
mov dword [ebp - 0xa38], 0x410
je 0x424fa4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x424f17
lea ebx, [eax - 1]
jmp 0x424f52
test eax, eax
jne 0x424f4d
mov eax, dword [ebp - 0xa34]
cmp eax, 1
je 0x424f30
cmp eax, 7
je 0x424f30
cmp eax, 2
jne 0x424f4d
lea eax, [ebp - 0x61c]
push str.LocalSystem
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x424ff4
mov ebx, 2
push str.ObjectName
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x441074
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push 0
push eax
movzx eax, bl
shl eax, 0x10
push str.LocalSystem
or eax, edi
push 1
or eax, 0x3000006
push eax
call dword [ebp - 0xa44]
jmp 0x424ff0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424ff4
push str.ObjectName
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x441074
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
or edi, 0x3020006
push 0
push eax
push 0
push 1
push edi
call ebx
test eax, eax
jne 0x424ffe
mov dword [ebp - 0xa4c], 1
push dword [ebp - 0xa3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa4c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 0x14