Function at 0x40a1b0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41199f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0
call fcn.004105a4
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 1
call sub.MFC42.DLL_CString::MakeLower
mov ebp, dword [esp + 0x14]
xor edi, edi
xor eax, eax
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x40a21d
mov dl, byte [eax + ebp]
mov byte [esp + 0x18], dl
mov edx, dword [esp + 0x18]
rol edi, 5
and edx, 0xff
xor edi, edx
inc eax
cmp eax, ecx
jl 0x40a202
push str.SOFTWARE_
lea ecx, [esp + 0x1c]
call fcn.004105a4
push esi
push eax
lea eax, [esp + 0x54]
mov byte [esp + 0x48], 2
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push edi
lea ecx, [esp + 0x14]
push str._08X
push ecx
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x58]
push 0
push 0
push edx
lea eax, [esp + 0x34]
push 0x80000001
push eax
call fcn.0040a700
mov edi, dword [eax]
mov eax, dword [esp + 0x30]
add esp, 0x20
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x40a2b1
test cl, cl
je 0x40a2ad
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x40a2b1
add eax, 2
add edi, 2
test cl, cl
jne 0x40a289
xor eax, eax
jmp 0x40a2b6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x1c]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40a3c1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x54]
push 1
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push str.Software_
lea ecx, [esp + 0x34]
call fcn.004105a4
push esi
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x4c], 6
call sub.MFC42.DLL_operator
push 0x417d60
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_operator
push esi
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x48], 8
push eax
call sub.MFC42.DLL_operator
mov edi, dword [eax]
push str.SoftwareVitas_
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 9
call fcn.004105a4
push esi
lea ecx, [esp + 0x20]
mov bl, 0xa
push eax
push ecx
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push edi
push 0x80000001
push eax
push 0x80000001
mov byte [esp + 0x50], 0xb
call fcn.0040a140
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x4c]
push 0
push 0x4180e0
push edx
push 0x80000001
call fcn.0040a950
mov ebx, dword [sym.imp.MSVCRT.dll_time]
add esp, 0x10
test eax, eax
jne 0x40a418
mov edi, dword [esp + 0x4c]
push 0
call ebx
push eax
push 0x4180e0
push edi
push 0x80000001
call fcn.0040a9e0
mov eax, dword [esp + 0x60]
push 0
push 0x4180dc
push eax
push 0x80000001
call fcn.0040a9e0
add esp, 0x24
jmp 0x40a447
mov ecx, dword [esp + 0x4c]
push 0
push 0x4180dc
push ecx
push 0x80000001
call fcn.0040a950
mov edx, dword [esp + 0x5c]
inc eax
push eax
push 0x4180dc
push edx
push 0x80000001
call fcn.0040a9e0
add esp, 0x20
mov edi, dword [esp + 0x4c]
push 0
call ebx
push eax
push 0x4180d8
push edi
push 0x80000001
call fcn.0040a9e0
mov eax, dword [esp + 0x60]
push 0x550
push 0x4180d4
push eax
push 0x80000001
call fcn.0040a9e0
mov edi, dword [esp + 0x70]
push 0
call fcn.0040b080
push eax
push 0x4180d0
push edi
push 0x80000001
call fcn.0040a9e0
push 0
call fcn.0040b080
add esp, 0x3c
lea ecx, [esp + 0x30]
push eax
push str.pv_d
push ecx
call fcn.0040bc30
mov eax, dword [eax]
mov edx, dword [esp + 0x58]
push 0x550
push eax
push edx
push 0x80000001
mov byte [esp + 0x5c], 0xc
call fcn.0040a9e0
add esp, 0x1c
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::CString
push esi
mov esi, dword [esp + 0x4c]
mov ecx, esi
call fcn.004105a4
mov dword [esp + 0x34], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret