Function at 0x401e80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x260
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0x5c]
push edi
push 0
mov ecx, esi
call fcn.00412c90
push 1
mov ecx, esi
mov dword [ebx + 0xe4], eax
call fcn.00412c90
push 2
mov ecx, esi
mov dword [ebx + 0xf4], eax
call fcn.00412c90
push 3
mov ecx, esi
mov dword [ebx + 0xe8], eax
call fcn.00412c90
push 4
mov ecx, esi
mov dword [ebx + 0xec], eax
call fcn.00412c90
mov ecx, 0xf
mov esi, str.SoftwareMicrosoftOfficeWordAddinsWordAddIn.KSWordAddIn.1
lea edi, [esp + 0x18]
mov dword [ebx + 0xf0], eax
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x80000001
mov dword [esp + 0x1c], 0
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401f49
mov edi, dword [ebx + 0xe4]
mov ecx, dword [esp + 0x10]
xor edx, edx
lea eax, [esp + 0x14]
test edi, edi
push 4
push eax
setne dl
push 4
push 0
add edx, 2
push str.LoadBehavior
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
mov esi, str.SoftwareMicrosoftOfficeOutlookAddinsOutlkAddin.KSOutlkAddIn.1
lea edi, [esp + 0xe0]
lea eax, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0xe0]
push eax
push ecx
push 0x80000001
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401fb1
mov edi, dword [ebx + 0xec]
mov ecx, dword [esp + 0x10]
xor edx, edx
lea eax, [esp + 0x14]
test edi, edi
push 4
push eax
setne dl
push 4
push 0
add edx, 2
push str.LoadBehavior
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
mov esi, str.SoftwareMicrosoftOfficeExcelAddinsExcelAddin.KSExcelAddin.1
lea edi, [esp + 0x58]
lea eax, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x58]
push eax
push ecx
push 0x80000001
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402011
mov edi, dword [ebx + 0xf4]
mov ecx, dword [esp + 0x10]
xor edx, edx
lea eax, [esp + 0x14]
test edi, edi
push 4
push eax
setne dl
push 4
push 0
add edx, 2
push str.LoadBehavior
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
mov esi, str.SoftwareMicrosoftOfficePowerPointAddinsPPTAddin.KSPPTAddIn.1
lea edi, [esp + 0x9c]
lea eax, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x9c]
push eax
push ecx
push 0x80000001
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402078
mov edi, dword [ebx + 0xe8]
mov ecx, dword [esp + 0x10]
xor edx, edx
lea eax, [esp + 0x14]
test edi, edi
push 4
push eax
setne dl
push 4
push 0
add edx, 2
push str.LoadBehavior
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x11
mov esi, str.SoftwareMicrosoftOfficeFrontPageAddinsFontPGAddin.KSFontPGAddin.1
lea edi, [esp + 0x124]
lea eax, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x124]
push eax
push ecx
push 0x80000001
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4020e0
mov edi, dword [ebx + 0xf0]
mov ecx, dword [esp + 0x10]
xor edx, edx
lea eax, [esp + 0x14]
test edi, edi
push 4
push eax
setne dl
push 4
push 0
add edx, 2
push str.LoadBehavior
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebx + 0xa0]
push 0
mov ecx, esi
call fcn.00412c90
push 1
mov ecx, esi
mov dword [ebx + 0xf8], eax
call fcn.00412c90
mov dword [ebx + 0xfc], eax
lea eax, [esp + 0x16c]
push 0x104
push eax
call fcn.004012e0
add esp, 8
test eax, eax
je 0x4021bc
mov edi, str.KAddin.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x16c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0xf8]
mov ecx, ebp
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40216b
lea eax, [esp + 0x16c]
push eax
push 0x41c1cc
jmp 0x402178
lea ecx, [esp + 0x16c]
push ecx
push 0x41c1c8
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.Word
push str.Office
call esi
mov eax, dword [ebx + 0xfc]
test eax, eax
je 0x4021a3
lea edx, [esp + 0x16c]
push edx
push 0x41c1cc
jmp 0x4021b0
lea eax, [esp + 0x16c]
push eax
push 0x41c1c8
push str.Outlook
push str.Office
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret