Function at 0x1000c060
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100311cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push esi
mov esi, ecx
push 0x1005197c
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x118]
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1ac], ebx
mov dword [esp + 0x40], 0x100427f0
mov dword [esp + 0x44], 0x100427ec
mov dword [esp + 0x48], 0x100427e8
mov dword [esp + 0x4c], 0x100427e4
mov dword [esp + 0x50], 0x100427e0
mov dword [esp + 0x54], 0x100427dc
mov dword [esp + 0x58], 0x100427d8
mov dword [esp + 0x5c], 0x100427d4
mov dword [esp + 0x60], 0x100427d0
mov dword [esp + 0x64], 0x100427cc
mov dword [esp + 0x68], 0x100427c8
mov dword [esp + 0x6c], 0x100427c4
mov dword [esp + 0x70], 0x100427c0
mov dword [esp + 0x74], 0x100427bc
mov dword [esp + 0x78], 0x100427b8
mov dword [esp + 0x7c], 0x100427b4
mov dword [esp + 0x80], 0x100427b0
mov dword [esp + 0x84], 0x100427ac
mov dword [esp + 0x88], 0x100427a8
mov dword [esp + 0x8c], 0x100427a4
mov dword [esp + 0x90], 0x100427a0
mov dword [esp + 0x94], 0x1004279c
mov dword [esp + 0x98], 0x100415e0
mov dword [esp + 0x9c], str.976432YXWVTRQPMKJHGFDCB
mov dword [esp + 0xa0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c314
push ebp
push edi
push 0xa4
mov dword [esp + 0x18], 0xa4
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x20], esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ebx
push str.DigitalProductId
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c213
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
lea eax, [esi + 0x34]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 8]
mov cx, word [eax + 0xc]
mov dword [esp + 0x2c], edx
mov dl, byte [eax + 0xe]
mov word [esp + 0x30], cx
mov byte [esp + 0x32], dl
mov ebx, dword [sym.imp.MSVCRT.dll__strrev]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
mov ebp, 0x18
xor esi, esi
mov edi, 0xe
shl esi, 8
xor eax, eax
mov ecx, esi
mov al, byte [esp + edi + 0x24]
xor ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov byte [esp + edi + 0x24], dl
mov ecx, 0x18
cdq
idiv ecx
dec edi
mov esi, edx
jns 0x1000c235
lea edx, [esp + 0x98]
push edx
call ebx
mov edi, dword [esp + esi*4 + 0x38]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x9c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov eax, ebp
mov ecx, 5
cdq
idiv ecx
add esp, 8
test edx, edx
jne 0x1000c307
test ebp, ebp
je 0x1000c307
lea edx, [esp + 0x98]
push edx
call ebx
mov edi, 0x10042780
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x9c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
add esp, 8
dec ebp
jns 0x1000c22e
mov esi, dword [esp + 0x1c]
pop edi
pop ebp
lea ecx, [esp + 0x90]
lea edx, [esp + 8]
push ecx
push 0x1004277c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000c34b
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 8]
push ecx
lea ecx, [esi + 0x80]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov dword [esp + 0x198], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x190]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x194
ret