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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcac
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00468450
xor edi, edi
cmp dword [esi + 0xc04], edi
je 0x46aa32
cmp dword [esi + 0xf670], edi
je 0x46aa32
cmp dword [esi + 0x4c30], 7
mov dword [esp + 0x20], 0x4775a4
mov word [esp + 0x30], di
mov dword [esp + 0x24], edi
mov dword [esp + 0x230], edi
mov dword [esp + 0x2c], 1
jne 0x46aa11
lea ebx, [esi + 0x4e3e]
mov eax, 0xff
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 2
call fcn.0045fe00
xor edi, edi
lea eax, [esp + 0x20]
call fcn.00402080
mov eax, dword [esp + 0x24]
cmp eax, edi
mov dword [esp + 0x20], 0x4775a4
je 0x46aa32
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esi + 0x4c30], 6
jne 0x46aa4a
push esi
call fcn.00469000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [esp + 0x44e]
push edi
push eax
mov word [esp + 0x454], di
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, str.userenv.dll
mov dword [esp + 0x18], 0x104
call fcn.00460340
push str.GetProfilesDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x46aa99
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x44c]
push edx
call eax
mov ebx, dword [esi + 0x4c30]
cmp ebx, 3
jne 0x46aaf5
lea edx, [esi + 0x4c34]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46aab0
sub eax, edi
sar eax, 1
cmp eax, 0x104
jl 0x46aacb
mov eax, 0x103
lea edi, [eax + eax]
push edi
push edx
lea eax, [esp + 0x450]
push eax
call sub.msvcrt.dll_memcpy
mov word [esp + edi + 0x454], 0
add esp, 0xc
xor edi, edi
cmp ebx, 3
je 0x46abcb
cmp ebx, 1
je 0x46abcb
cmp ebx, 7
jne 0x46abe2
push 0x208
lea ecx, [esp + 0x23e]
push edi
push ecx
mov word [esp + 0x244], di
call sub.msvcrt.dll_memset
lea ebx, [esi + 0x4e3e]
add esp, 0xc
cmp word [ebx], 0x5c
je 0x46ab57
xor eax, eax
jmp 0x46ab40
movzx ecx, word [eax + 0x46fa8c]
mov word [esp + eax + 0x238], cx
add eax, 2
cmp cx, di
jne 0x46ab40
push 0x104
lea eax, [esp + 0x23c]
call fcn.0045f310
add esp, 4
push 0x104
mov ebx, 0x46fa94
call fcn.0045f310
add esp, 4
push 0x104
push str.Documents_and_Settings
lea eax, [esp + 0x450]
lea ecx, [esp + 0x240]
call fcn.00460d00
add esp, 8
lea edx, [esp + 0x448]
push edx
push esi
call fcn.0046a840
push 0x104
push str.Users
lea eax, [esp + 0x450]
lea ecx, [esp + 0x240]
call fcn.00460d00
add esp, 8
lea eax, [esp + 0x448]
push eax
push esi
call fcn.0046a840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 5
jne 0x46ac17
mov edx, dword [ebp + 8]
add esi, 0x5048
mov ecx, 0x187
lea edi, [esp + 0x698]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x698]
push ecx
push edx
movsw word es:[edi], word [esi]
call fcn.004695a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [esp + 0x26]
push edi
push eax
mov word [esp + 0x2c], di
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [0x47c2f8], edi
jne 0x46ac5b
mov ebx, 0x471824
call fcn.00460340
cmp eax, edi
mov dword [0x47c2f8], eax
je 0x46ac5b
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47c2f4], eax
cmp dword [0x47c2f4], edi
je 0x46ac94
cmp dword [0x47bbac], edi
jne 0x46ac80
push 0x47bba8
mov dword [0x47bba8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x28
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [0x47c2f4]
jmp 0x46ad45
push 0x206
lea edx, [esp + 0x23e]
push edi
push edx
mov word [esp + 0x244], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x46ad2b
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x23c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x668]
push ecx
push edx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ad20
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x46ad18
shr eax, 1
mov word [esp + eax*2 + 0x238], di
jmp 0x46ad20
mov word [esp + 0x238], di
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [esp + eax + 0x238]
mov word [esp + eax + 0x20], cx
add eax, 2
cmp cx, di
jne 0x46ad30
cmp dword [esi + 0x4c30], 4
jne 0x46ad64
lea ebx, [esi + 0x4c34]
mov eax, 0x104
lea edi, [esp + 0x20]
call fcn.0045fe00
xor edi, edi
lea ecx, [esp + 0x698]
mov word [esp + 0x698], di
mov word [esp + 0x8a2], di
mov word [esp + 0xaac], di
push ecx
lea edi, [esp + 0x24]
call fcn.0046e0e0
test eax, eax
je 0x46abd9
mov edx, edi
call fcn.0045fb50
mov ebx, eax
lea edi, [esi + 0x4c4]
mov eax, 0x104
call fcn.0045fe00
lea edx, [esp + 0x698]
push edx
push esi
call fcn.004695a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4