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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3950
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4d044c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
cmp dword [0x4d6948], 0
jne 0x42ac59
cmp dword [0x4d6944], 0
je 0x42a848
test edi, edi
je 0x42ac59
cmp dword [0x4d3e04], 1
mov dword [0x4d6948], 1
jne 0x42ac4f
push 0
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 0
call fcn.0045e060
mov esi, eax
test esi, esi
je 0x42a893
lea eax, [ebp - 0x1c]
push eax
push str.SubscriptionStatus
push esi
call fcn.0045e500
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x42a8ac
test edi, edi
jne 0x42a8ac
mov dword [0x4d6944], 1
jmp 0x42ac4f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1be4
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42ac4f
lea ebx, [eax + 0x100]
mov dword [ebp - 0x24], ebx
add ebx, 0x100
cmp dword [0x4d3e00], 0
mov dword [ebp - 0x3c], ebx
je 0x42aa1f
push 0
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045e060
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x42a9da
push 0x8000
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42a9cf
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x8000
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push str.UserInfo
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42a9bf
cmp dword [ebp - 0x28], 3
jne 0x42a9bf
mov eax, dword [ebp - 0x20]
cmp eax, 0xfc
jb 0x42a9bf
mov ecx, dword [edi]
lea edx, [edi + 4]
add eax, edi
mov dword [ebp - 0x14], edx
mov esi, eax
xor edx, edx
sub esi, dword [ebp - 0x14]
add esi, 3
shr esi, 2
cmp dword [ebp - 0x14], eax
lea eax, [edi + 4]
cmova esi, edx
test esi, esi
je 0x42a98d
nop word [eax + eax]
xor dword [eax], ecx
lea eax, [eax + 4]
inc edx
add ecx, 7
cmp edx, esi
jb 0x42a980
cmp dword [edi + 4], 0x4b375249
jne 0x42a9bc
push 0x40
lea esi, [edi + 8]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x42a9bc
push 0x3c
lea eax, [esi + 0x90]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [ebp - 0x10]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call edi
jmp 0x42a9e0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045e060
test eax, eax
je 0x42a9f8
push eax
call edi
mov eax, dword [0x4d3e00]
test al, 1
je 0x42aa0d
mov ecx, dword [ebp - 0x18]
cmp byte [ecx], 0
je 0x42ac3d
test al, 2
je 0x42aa25
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0
je 0x42ac3d
jmp 0x42aa25
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
call fcn.0045e060
mov esi, eax
test esi, esi
je 0x42aa55
lea eax, [ebp - 0x10]
push eax
push str.ProductType
push esi
call fcn.0045e500
push esi
call edi
cmp dword [ebp - 0x10], 3
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
je 0x42aa84
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
xor ecx, ecx
push 0
push eax
lea edx, [ebp - 0x2c]
call fcn.004385d0
add esp, 0x18
xor edi, edi
nop word [eax + eax]
cmp dword [ebp + edi*4 - 0x2c], 0
je 0x42ab43
push 0x38c0
call fcn.004609df
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, eax
call fcn.0044a860
mov esi, eax
test esi, esi
je 0x42ab43
mov ecx, dword [ebp + edi*4 - 0x2c]
lea eax, [ebx + 0xbdc]
mov dword [esi + 0x1020], ecx
mov ecx, esi
mov dword [esi + 0x1014], 0
mov dword [esi + 0x1018], 0
mov dword [esi + 0x1004], ebx
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x1024], eax
call fcn.0044d530
mov ebx, dword [esi + 0x101c]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x100c]
test eax, eax
je 0x42ab1c
push eax
call fcn.0048b923
add esp, 4
push 0x38c0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004609d1
add esp, 8
cmp ebx, 1
jne 0x42ab43
mov ebx, dword [ebp - 0x3c]
inc edi
cmp edi, 2
jl 0x42aa90
push 0x4000
push 8
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42ac3d
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.00449df0
cmp byte [0x4d4c92], 0
mov ecx, dword [0x4d3e38]
mov dword [ebp - 0x34], 0xffff
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0x12345677
mov dword [ebp - 0x28], 1
jne 0x42ab9e
call fcn.00449ae0
mov eax, dword [0x4d5a14]
xor ebx, ebx
test eax, eax
je 0x42abad
call eax
mov ebx, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x3c]
mov edx, 0x10010
push eax
lea eax, [ebp - 0x34]
mov ecx, ebx
push 0x10
push eax
call fcn.00449e90
mov eax, dword [ebp - 0x14]
add esp, 0x10
xor esi, esi
test eax, eax
je 0x42ac11
nop word [eax + eax]
mov ecx, dword [edi + esi*4]
cmp ebx, ecx
je 0x42ac0c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x3c]
mov edx, 0x10010
push eax
lea eax, [ebp - 0x34]
push 0x10
push eax
call fcn.00449e90
mov eax, dword [ebp - 0x14]
add esp, 0x10
inc esi
cmp esi, eax
jb 0x42abe0
push edi
push 0x10000
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.0042c220
call fcn.0042f1f0
push 0x10
push 0
push 0x42a6d0
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [0x4d6948], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret