Function at 0x409660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa50
mov eax, dword [0x420034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
push str.SYSTEMCurrentControlSetServices_
mov dword [ebp - 0xa40], eax
lea eax, [ebp - 0xa2c]
push 0x104
push eax
mov dword [ebp - 0xa50], edx
mov esi, ecx
mov dword [ebp - 0xa44], edi
mov dword [ebp - 0xa48], 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 0x409746
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x4141dc
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push ebx
mov ebx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xa2c]
push eax
mov eax, ebx
push 0
or eax, 0x3010000
push eax
call edi
test eax, eax
jne 0x409e06
jmp 0x409749
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 0x4097c2
cmp word [edi], 0
je 0x4097c2
cmp eax, 2
jne 0x409792
lea ebx, [eax - 1]
jmp 0x4097cb
test eax, eax
jne 0x4097c6
mov eax, dword [ebp - 0xa30]
cmp eax, 1
je 0x4097ab
cmp eax, 7
je 0x4097ab
cmp eax, 2
jne 0x4097c6
lea eax, [ebp - 0x61c]
push edi
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409828
jmp 0x4097c6
test eax, eax
jne 0x409828
mov ebx, 2
push str.DisplayName
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x414200
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push dword [ebp - 0xa48]
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 0x409e06
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 0x4098a1
cmp word [edi], 0
je 0x4098a1
cmp eax, 2
jne 0x409871
lea ebx, [eax - 1]
jmp 0x4098aa
test eax, eax
jne 0x4098a5
mov eax, dword [ebp - 0xa30]
cmp eax, 1
je 0x40988a
cmp eax, 7
je 0x40988a
cmp eax, 2
jne 0x4098a5
lea eax, [ebp - 0x61c]
push edi
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409907
jmp 0x4098a5
test eax, eax
jne 0x409907
mov ebx, 2
push str.Group
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x414200
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push dword [ebp - 0xa48]
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 0x409e06
mov edx, dword [esi + 0x14]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409910
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 0x4099f7
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
jne 0x409984
test eax, eax
je 0x4099ad
jmp 0x409ace
cmp eax, 2
je 0x4099ad
test eax, eax
jne 0x4099ad
cmp dword [ebp - 0xa38], 4
jne 0x4099ad
cmp dword [ebp - 0xa30], 4
jne 0x4099ad
mov eax, dword [ebp - 0x61c]
cmp eax, dword [edi]
je 0x409ace
push str.Start
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x414200
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push dword [ebp - 0xa48]
push eax
mov eax, ebx
push 0x414234
or eax, 0x3020003
jmp 0x409abd
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
jne 0x409a0b
test eax, eax
jne 0x409ace
jmp 0x409a39
cmp eax, 2
jne 0x409a15
lea ebx, [eax - 1]
jmp 0x409a3e
test eax, eax
jne 0x409a39
cmp dword [ebp - 0xa38], 4
jne 0x409a39
cmp dword [ebp - 0xa30], 4
jne 0x409a39
mov eax, dword [ebp - 0x61c]
cmp eax, dword [edi]
je 0x409ace
mov ebx, 2
push str.Start
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x414200
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 dword [ebp - 0xa48]
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 0x409e06
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
push 0x414238
push dword [ebp - 0xa3c]
lea edi, [esi + 8]
mov dword [ebp - 0xa30], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
jne 0x409b5e
test eax, eax
je 0x409b88
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 - 0xa50]
lea eax, [ebp - 0x824]
je 0x409c24
push 0x4141dc
jmp 0x409c29
cmp eax, 2
jne 0x409b68
lea ebx, [eax - 1]
jmp 0x409b8d
test eax, eax
jne 0x409b88
cmp dword [ebp - 0xa38], 4
jne 0x409b88
cmp dword [ebp - 0xa30], 4
jne 0x409b88
mov eax, dword [ebp - 0x61c]
cmp eax, dword [edi]
je 0x409b0b
mov ebx, 2
push 0x414238
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x414200
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 dword [ebp - 0xa48]
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 0x409e06
jmp 0x409b0e
push str.___s_s
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.00409520
mov ebx, eax
test ebx, ebx
je 0x409cb9
push str.ImagePath
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x414200
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push dword [ebp - 0xa48]
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 0x409e06
jmp 0x409cbf
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 0x409da8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x409d17
lea ebx, [eax - 1]
jmp 0x409d52
test eax, eax
jne 0x409d4d
mov eax, dword [ebp - 0xa34]
cmp eax, 1
je 0x409d30
cmp eax, 7
je 0x409d30
cmp eax, 2
jne 0x409d4d
lea eax, [ebp - 0x61c]
push str.LocalSystem
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409dfc
mov ebx, 2
push str.ObjectName
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x414200
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0xa40]
push dword [ebp - 0xa48]
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 0x409df8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409dfc
push str.ObjectName
push dword [esi]
lea eax, [ebp - 0x20c]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices_
push 0x414200
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 dword [ebp - 0xa48]
push eax
push 0
push 1
push edi
call ebx
test eax, eax
jne 0x409e06
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.0040dc0a
mov esp, ebp
pop ebp
ret 0x14