Function at 0x50c963
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1028
call fcn.005106b0
lea ecx, [ebp - 0x828]
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc34]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0xc34]
push edx
call fcn.00401fca
add esp, 4
lea eax, [ebp - 0xc34]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x82c], eax
mov ecx, dword [ebp - 0x82c]
movsx edx, byte [ebp + ecx - 0xc38]
cmp edx, 0x2e
jne 0x50ca3c
mov eax, dword [ebp - 0x82c]
movsx ecx, byte [ebp + eax - 0xc37]
cmp ecx, 0x56
jne 0x50ca3c
mov edx, dword [ebp - 0x82c]
movsx eax, byte [ebp + edx - 0xc36]
cmp eax, 0x49
jne 0x50ca3c
mov ecx, dword [ebp - 0x82c]
movsx edx, byte [ebp + ecx - 0xc35]
cmp edx, 0x52
jne 0x50ca3c
mov eax, dword [ebp - 0x82c]
mov byte [ebp + eax - 0xc38], 0
lea ecx, [ebp - 0x828]
call fcn.0050f5b0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x828]
call fcn.0050f680
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x828]
call fcn.0050f680
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerRun
lea ecx, [ebp - 0x828]
call fcn.0050f680
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerRunOnce
lea ecx, [ebp - 0x828]
call fcn.0050f680
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x828]
call fcn.0050f680
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x828]
call fcn.0050f680
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionPoliciesExplorerRun
lea ecx, [ebp - 0x828]
call fcn.0050f680
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionPoliciesExplorerRunOnce
lea ecx, [ebp - 0x828]
call fcn.0050f680
mov dword [0x5b84b8], 0
jmp 0x50cae2
mov ecx, dword [0x5b84b8]
add ecx, 1
mov dword [0x5b84b8], ecx
lea ecx, [ebp - 0x828]
call fcn.0050f110
cmp dword [0x5b84b8], eax
jge 0x50cd5b
mov edx, dword [0x5b84b8]
push edx
lea ecx, [ebp - 0x828]
call fcn.0050f5d0
mov ecx, eax
call fcn.0050f0b0
push eax
lea eax, [ebp - 0x80c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x834]
push ecx
push 0x20119
push 0
lea edx, [ebp - 0x80c]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50cc3c
mov dword [ebp - 0x830], 0
jmp 0x50cb65
mov eax, dword [ebp - 0x830]
add eax, 1
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x814], 0x400
mov byte [ebp - 0x40c], 0
mov dword [ebp - 0x810], 0x400
mov byte [ebp - 0x1034], 0
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0x1034]
push edx
push 0
push 0
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x40c]
push ecx
mov edx, dword [ebp - 0x830]
push edx
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x50cc28
lea ecx, [ebp - 0x40c]
push ecx
call fcn.00401fca
add esp, 4
lea edx, [ebp - 0x1034]
push edx
call fcn.00401fca
add esp, 4
lea eax, [ebp - 0xc34]
push eax
lea ecx, [ebp - 0x1034]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x50cc26
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x80c]
push eax
push 0x80000001
call fcn.00402ed5
add esp, 0xc
test eax, eax
jne 0x50cc26
mov ecx, dword [ebp - 0x830]
sub ecx, 1
mov dword [ebp - 0x830], ecx
jmp 0x50cc2a
jmp 0x50cc2f
jmp 0x50cb56
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
lea ecx, [ebp - 0x80c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50cd56
mov dword [ebp - 0x830], 0
jmp 0x50cc7f
mov edx, dword [ebp - 0x830]
add edx, 1
mov dword [ebp - 0x830], edx
mov dword [ebp - 0x814], 0x400
mov byte [ebp - 0x40c], 0
mov dword [ebp - 0x810], 0x400
mov byte [ebp - 0x1034], 0
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1034]
push ecx
push 0
push 0
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x40c]
push eax
mov ecx, dword [ebp - 0x830]
push ecx
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x50cd42
lea eax, [ebp - 0x40c]
push eax
call fcn.00401fca
add esp, 4
lea ecx, [ebp - 0x1034]
push ecx
call fcn.00401fca
add esp, 4
lea edx, [ebp - 0xc34]
push edx
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x50cd40
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x80c]
push edx
push 0x80000002
call fcn.00402ed5
add esp, 0xc
test eax, eax
jne 0x50cd40
mov eax, dword [ebp - 0x830]
sub eax, 1
mov dword [ebp - 0x830], eax
jmp 0x50cd44
jmp 0x50cd49
jmp 0x50cc70
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50cad3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.0051046c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret