Function at 0x4371e0
Capabilities:
Check os version
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov eax, dword [0x46500c]
cmp eax, 0x46500c
lea ebx, [edi + 1]
je 0x437227
test byte [eax + 0x3c], bl
je 0x437227
cmp byte [eax + 0x39], 5
jb 0x437227
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
push ecx
push 0x45fbac
push 0x38
push edx
push eax
call fcn.00401260
mov eax, dword [0x46500c]
cmp dword [0x471c2c], edi
jne 0x43725f
cmp eax, 0x46500c
je 0x437255
test byte [eax + 0x3c], bl
je 0x437255
cmp byte [eax + 0x39], 5
jb 0x437255
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x45fbac
push 0x39
push ecx
push edx
call fcn.0041b140
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
je 0x4372b6
mov ecx, dword [0x46500c]
cmp ecx, 0x46500c
je 0x4376dc
test byte [ecx + 0x3c], bl
je 0x4376dc
cmp byte [ecx + 0x39], 5
jb 0x4376dc
mov edx, dword [ecx + 0x34]
push eax
mov eax, dword [ecx + 0x30]
push 0x45fbac
push 0x3a
push edx
push eax
call fcn.00401230
jmp 0x4376dc
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and eax, 0xff
cmp eax, 6
jb 0x437370
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp + 8]
push eax
push 0
push str.LoadAppInit_DLLs
push ecx
mov dword [ebp - 0x10], 4
call esi
test eax, eax
je 0x43732f
mov ecx, dword [0x46500c]
cmp ecx, 0x46500c
je 0x4376db
test byte [ecx + 0x3c], bl
je 0x4376db
cmp byte [ecx + 0x39], 5
jb 0x4376db
mov edx, dword [ecx + 0x34]
push eax
mov eax, dword [ecx + 0x30]
push 0x45fbac
push 0x3b
push edx
push eax
jmp 0x4376d6
cmp dword [ebp - 0x14], edi
jne 0x437370
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4376db
test byte [eax + 0x3c], bl
je 0x4376db
cmp byte [eax + 0x39], 5
jb 0x4376db
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x45fbac
push 0x3c
push ecx
push edx
call fcn.0041b140
jmp 0x4376db
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push str.AppInit_DLLs
push edx
call esi
test eax, eax
jne 0x4376ad
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4373cf
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4376db
test byte [eax + 0x3c], bl
je 0x4376db
cmp byte [eax + 0x39], 5
jb 0x4376db
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0
push 0x45fbac
push 0x3d
push ecx
push edx
jmp 0x4376d6
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x43740e
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4376db
test byte [eax + 0x3c], bl
je 0x4376db
cmp byte [eax + 0x39], 5
jb 0x4376db
mov edx, dword [eax + 0x30]
push ecx
mov ecx, dword [eax + 0x34]
push 0x45fbac
push 0x3e
push ecx
push edx
jmp 0x4376d6
push eax
call fcn.0043c073
mov edi, eax
add esp, 4
test edi, edi
je 0x43745d
lea ecx, [ecx]
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push edi
lea ecx, [ebp + 8]
push ecx
push 0
push str.AppInit_DLLs
push edx
call esi
test eax, eax
je 0x4374dc
cmp eax, 0xea
jne 0x437499
push edi
call fcn.0043c1ba
mov eax, dword [ebp - 4]
push eax
call fcn.0043c073
mov edi, eax
add esp, 8
test edi, edi
jne 0x437420
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4376db
test byte [eax + 0x3c], bl
je 0x4376db
cmp byte [eax + 0x39], 5
jb 0x4376db
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x45fbac
push 0x3f
push ecx
push edx
call fcn.0041b140
jmp 0x4376db
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4376db
test byte [eax + 0x3c], bl
je 0x4376db
cmp byte [eax + 0x39], 5
jb 0x4376db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x46500c]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x45fbac
push 0x41
push ecx
push edx
jmp 0x4376d6
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x43751b
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4376db
test byte [eax + 0x3c], bl
je 0x4376db
cmp byte [eax + 0x39], 5
jb 0x4376db
mov edx, dword [eax + 0x30]
push ecx
mov ecx, dword [eax + 0x34]
push 0x45fbac
push 0x40
push ecx
push edx
jmp 0x4376d6
mov eax, dword [ebp - 4]
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x437564
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4376db
test byte [eax + 0x3c], bl
je 0x4376db
cmp byte [eax + 0x39], 5
jb 0x4376db
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x45fbac
push 0x42
push ecx
push edx
call fcn.0041b140
jmp 0x4376db
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x437590
test byte [eax + 0x3c], bl
je 0x437590
cmp byte [eax + 0x39], 5
jb 0x437590
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push edi
push 0x45fbac
push 0x43
push ecx
push edx
call fcn.00401260
mov ecx, dword [0x471c2c]
push edi
call fcn.00438870
cmp al, bl
jne 0x43762a
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4375cf
test byte [eax + 0x3c], bl
je 0x4375cf
cmp byte [eax + 0x39], 5
jb 0x4375cf
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x45fbac
push 0x44
push ecx
push edx
call fcn.0041b140
mov ecx, dword [0x471c2c]
push edi
call fcn.00438fc0
cmp al, bl
jne 0x4375ff
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x43762a
test byte [eax + 0x3c], bl
je 0x43762a
cmp byte [eax + 0x39], 5
jb 0x43762a
push 0x45fbac
push 0x45
jmp 0x43761d
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x43762a
test byte [eax + 0x3c], bl
je 0x43762a
cmp byte [eax + 0x39], 5
jb 0x43762a
push 0x45fbac
push 0x46
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push ecx
push edx
call fcn.0041b140
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [0x471c2c]
call fcn.004388d0
cmp al, bl
jne 0x437679
mov dword [ebp - 0xc], ebx
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4376db
test byte [eax + 0x3c], bl
je 0x4376db
cmp byte [eax + 0x39], 5
jb 0x4376db
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
push 0x45fbac
push 0x47
push edx
push eax
call fcn.0041b140
jmp 0x4376db
mov dword [ebp - 0xc], 0
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x4376db
test byte [eax + 0x3c], bl
je 0x4376db
cmp byte [eax + 0x39], 5
jb 0x4376db
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x45fbac
push 0x48
push ecx
push edx
call fcn.0041b140
jmp 0x4376db
mov ecx, dword [0x46500c]
cmp ecx, 0x46500c
je 0x4376db
test byte [ecx + 0x3c], bl
je 0x4376db
cmp byte [ecx + 0x39], 5
jb 0x4376db
push eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
push 0x45fbac
push 0x49
push eax
push ecx
call fcn.00401230
pop esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x4376ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4376f7
push edi
call fcn.0043c1ba
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc