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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b3033
push eax
mov eax, dword [0x67e58c]
mov dword fs:[0], esp
sub esp, 0x2e8
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x436267
call fcn.004341d0
test al, al
je 0x436910
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xf0]
mov edx, dword [0x67e58c]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0xf0]
push eax
push ecx
push esi
push esi
push str.LocalPathW
push edx
mov dword [esp + 0x30], 0x208
call ebx
test eax, eax
jne 0x4362c1
mov ecx, dword [esp + 0x308]
lea eax, [esp + 0xf0]
push eax
call fcn.00401fc0
mov al, 1
jmp 0x436912
mov ecx, dword [0x679a04]
mov dword [esp + 0x28], ecx
mov eax, dword [0x67e58c]
lea edx, [esp + 0x18]
push edx
push esi
push esi
push esi
push 0x656d64
push eax
mov dword [esp + 0x318], esi
call ebx
test eax, eax
jne 0x43633d
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0059e30d
lea edx, [esp + 0x18]
mov edi, eax
mov eax, dword [0x67e58c]
push edx
push edi
push esi
push esi
push 0x656d64
push eax
call ebx
test eax, eax
jne 0x43633d
mov ecx, dword [esp + 0x308]
push esi
push edi
call fcn.004028e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x300], 0xffffffff
call fcn.0059df40
mov al, 1
jmp 0x436912
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, dword [esp + 0x308]
test eax, eax
je 0x4365a9
cmp dword [esp + 0x6c], 2
jne 0x4365a9
cmp dword [esp + 0x60], 6
jb 0x4365a9
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x3c], ebp
je 0x4365a9
push str.SHGetKnownFolderPath
push ebp
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x43657f
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x44], 0x374de290
mov word [esp + 0x48], 0x123f
mov word [esp + 0x4a], 0x4565
mov byte [esp + 0x4c], 0x91
mov byte [esp + 0x4d], 0x64
mov byte [esp + 0x4e], 0x39
mov byte [esp + 0x4f], 0xc4
mov byte [esp + 0x50], 0x92
mov byte [esp + 0x51], 0x5e
mov byte [esp + 0x52], 0x46
mov byte [esp + 0x53], 0x7b
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push esi
push esi
push eax
call edi
cmp eax, esi
jne 0x436579
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x436579
push eax
call fcn.00581b1a
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, 0x67df5c
cmp word [ebp + eax*2 - 2], 0x5c
je 0x436433
mov edi, 0x653058
mov ecx, 0x653050
test ecx, ecx
je 0x436569
cmp ebp, esi
je 0x436569
cmp edi, esi
je 0x436569
push esi
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov word [esp + 0x28], si
call fcn.004028e0
push ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x304], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov word [esp + 0x34], si
call fcn.00401fc0
push edi
lea ecx, [esp + 0x54]
mov byte [esp + 0x304], 2
call fcn.00403bb0
mov ecx, ebx
mov byte [esp + 0x300], 3
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x50]
call fcn.00401fb0
push eax
call fcn.00581b1a
add esp, 4
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.00401fb0
push eax
call fcn.00581b1a
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.0059a2da
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebx], edi
je 0x436530
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x50]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x30]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x24]
call fcn.00401fb0
push eax
mov eax, dword [ebx]
push esi
push eax
call fcn.00581aaa
mov ecx, dword [ebx]
push ecx
call fcn.00581b1a
add esp, 0x18
mov dword [ebx + 8], eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x300], 2
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x300], 1
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x300], 0
call fcn.00401070
mov ebp, dword [esp + 0x14]
xor esi, esi
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebp, dword [esp + 0x3c]
mov byte [esp + 0x13], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
test al, al
je 0x4365a9
lea ecx, [esp + 0x28]
mov dword [esp + 0x300], 0xffffffff
call fcn.0059df40
mov al, 1
jmp 0x436912
lea edx, [esp + 0x38]
push edx
push 0xf003f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4368fc
mov ecx, dword [esp + 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
push eax
push esi
push esi
push esi
push str.Personal
push ecx
call edi
test eax, eax
jne 0x4368f1
mov edx, dword [esp + 0x18]
lea eax, [edx*4 + 4]
push eax
call fcn.0059a2da
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x4368f1
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
push ebp
push esi
push esi
push str.Personal
push edx
call edi
test eax, eax
jne 0x4368e8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
mov word [esp + 0x30], si
push ebp
mov byte [esp + 0x304], 4
call fcn.00581b1a
add esp, 4
cmp word [ebp + eax*2 - 2], 0x5c
mov edi, 0x67df5c
je 0x436658
mov edi, 0x653058
mov eax, str._s_sDownloads_
test eax, eax
je 0x436787
cmp edi, esi
je 0x436787
push esi
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov word [esp + 0x28], si
call fcn.004028e0
push ebp
lea ecx, [esp + 0x54]
mov byte [esp + 0x304], 5
call fcn.00403bb0
push edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x304], 6
call fcn.00403bb0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x300], 7
call fcn.00401070
mov edi, dword [esp + 0x50]
cmp edi, esi
jne 0x4366c6
lea edi, [esp + 0x54]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x40]
call fcn.00401fb0
push eax
call fcn.00581b1a
mov edx, eax
push edi
mov dword [esp + 0x44], edx
call fcn.00581b1a
mov ecx, dword [esp + 0x44]
add esi, ecx
lea esi, [eax + esi + 3]
lea eax, [esi + esi]
push eax
call fcn.0059a2da
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x2c], edi
je 0x436752
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x40]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x54]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x24]
call fcn.00401fb0
push eax
mov eax, dword [esp + 0x38]
push esi
push eax
call fcn.00581aaa
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00581b1a
add esp, 0x18
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x300], 6
call fcn.00401070
lea ecx, [esp + 0x50]
mov byte [esp + 0x300], 5
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x300], 4
call fcn.00401070
xor esi, esi
mov edx, dword [esp + 0x2c]
mov ecx, ebx
push edx
call fcn.00401fc0
mov eax, dword [ebx]
cmp eax, esi
jne 0x43679c
lea eax, [ebx + 4]
push esi
push eax
call fcn.0046f3f0
mov eax, dword [0x656724]
add esp, 8
xor edi, edi
cmp eax, esi
mov eax, dword [ebx]
je 0x4367cc
cmp eax, esi
jne 0x4367ba
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4368b4
jmp 0x436803
cmp eax, esi
jne 0x4367d3
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.0059e000
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4367f2
mov edi, 1
lea ecx, [esp + 0x14]
call fcn.0059df40
cmp edi, esi
je 0x4368b4
cmp dword [ebx], esi
je 0x436872
push ebp
call fcn.00581b1a
add esp, 4
test eax, eax
je 0x436872
mov eax, dword [ebx]
cmp eax, ebp
ja 0x436872
push eax
call fcn.00581b1a
mov ecx, dword [ebx]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, ebp
jb 0x436872
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov word [esp + 0x24], si
call fcn.00401fc0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x300], 8
cmp eax, esi
jne 0x436857
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00401fc0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x300], 4
call fcn.00401070
jmp 0x4368b4
mov ecx, ebx
call fcn.00401070
push ebp
call fcn.00581b1a
add esp, 4
test eax, eax
je 0x4368b4
push ebp
call fcn.00581b1a
lea eax, [eax + eax + 2]
push eax
call fcn.0059a2da
add esp, 8
cmp eax, esi
mov dword [ebx], eax
je 0x4368b4
push ebp
call fcn.00581b1a
mov ecx, dword [ebx]
push ebp
push ecx
mov dword [ebx + 8], eax
call fcn.00581cba
add esp, 0xc
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x300], 0
call fcn.00401070
lea ecx, [esp + 0x28]
mov dword [esp + 0x300], 0xffffffff
call fcn.0059df40
mov al, 1
jmp 0x436912
push ebp
call fcn.0059a303
add esp, 4
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov dword [esp + 0x300], 0xffffffff
call fcn.0059df40
xor al, al
mov ecx, dword [esp + 0x2f8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f4
ret