Function at 0x1009028
Capabilities:
Get system information on windows
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x74
mov eax, 0x1020e7d
call fcn.01013512
mov dword [ebp - 0x34], ecx
xor ebx, ebx
mov esi, 0x1002348
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0x10022d0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x5c], 0x80000002
mov dword [ebp - 0x58], 0x80000001
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, dword [sym.imp.msvcrt.dll_malloc]
push 0x800
call edi
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x100924e
xor ecx, ecx
push 0x800
mov word [eax], cx
call edi
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x1009244
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x80], 6
je 0x10090c6
cmp word [ebp - 0x80], 9
je 0x10090c6
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], ebx
mov edi, 0x80000002
cmp dword [ebp - 0x1c], 1
jne 0x10090ef
cmp dword [ebp - 0x18], 1
je 0x1009213
push ebx
push 0x20019
push dword [ebp - 0x4c]
jmp 0x10090f8
push ebx
push 0x20119
push dword [ebp - 0x28]
push edi
lea ecx, [ebp - 0x44]
call fcn.01004964
test eax, eax
jne 0x1009213
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100920b
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x2c], ebx
jbe 0x100920b
mov esi, dword [ebp - 0x30]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 0x400
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10091fc
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 0x800
call fcn.01007b32
test eax, eax
jne 0x10091fc
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::MakeLower
push 0x10022b0
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::Find
cmp eax, 0xffffffff
jne 0x10091f1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x10091f1
push 0x30
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x10091d2
push dword [ebp - 0x20]
mov ecx, eax
push esi
push esi
push dword [ebp - 0x28]
push edi
call fcn.010085a2
mov esi, eax
jmp 0x10091d4
xor esi, esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x10091f1
mov ecx, dword [ebp - 0x34]
push esi
call fcn.0100823b
test eax, eax
jge 0x10091f1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.01012a9e
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jb 0x1009134
lea ecx, [ebp - 0x44]
call fcn.01004403
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + eax*4 - 0x5c]
cmp edi, ebx
jne 0x10090d4
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x50]
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x10090cc
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea ecx, [ebp - 0x44]
call fcn.01004403
call fcn.010135fe
ret