Function at 0x410640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f718
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x450398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x452bb0], 2
mov ebx, dword [0x452bec]
sete byte [ebp - 0xd]
mov dword [ebp - 0x14], ebx
cmp ebx, dword [0x452bf0]
je 0x410981
jmp 0x410693
mov ebx, dword [ebp - 0x14]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
add ebx, 8
mov dword [ebp - 4], 0
mov edi, dword [ebx]
mov ecx, str.11.0
mov eax, edi
jmp 0x4106c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4106e6
test dx, dx
je 0x4106e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4106e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4106c0
xor eax, eax
jmp 0x4106eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x410720
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
mov edx, 0x4484a0
cmp byte [ecx], al
je 0x410708
mov edx, str.SOFTWAREWow6432NodeMicrosoftOffice11.0ExcelSecurity
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410710
jmp 0x41084c
mov ecx, str.12.0
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41074d
test dx, dx
je 0x410749
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41074d
add eax, 4
add ecx, 4
test dx, dx
jne 0x410727
xor eax, eax
jmp 0x410752
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x410784
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
mov edx, 0x448580
cmp byte [ecx], al
je 0x41076f
mov edx, str.SoftwareWow6432NodeMicrosoftOffice12.0ExcelSecurity
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410774
jmp 0x41084c
mov ecx, str.14.0
mov eax, edi
jmp 0x410790
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4107b6
test dx, dx
je 0x4107b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4107b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x410790
xor eax, eax
jmp 0x4107bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4107ed
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
mov edx, 0x4487a0
cmp byte [ecx], al
je 0x4107d8
mov edx, str.SoftwareWow6432NodeMicrosoftOffice14.0ExcelSecurity
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4107e0
jmp 0x41084c
mov ecx, str.15.0
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41081a
test dx, dx
je 0x410816
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41081a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4107f4
xor eax, eax
jmp 0x41081f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x41085e
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
mov edx, 0x448990
cmp byte [ecx], al
je 0x41083c
mov edx, str.SoftwareWow6432NodeMicrosoftOffice15.0ExcelSecurity
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410841
sub eax, edi
push edx
sar eax, 1
lea edx, [ebp - 0x18]
push edx
mov ebx, eax
call fcn.00416d10
jmp 0x410890
push ebx
mov ecx, str.16.0
call fcn.00414360
add esp, 4
test al, al
je 0x410962
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
mov edx, 0x448b80
cmp byte [ecx], al
je 0x410888
mov edx, str.SoftwareWow6432NodeMicrosoftOffice16.0ExcelSecurity
lea edi, [ebp - 0x18]
call fcn.00413c90
mov edi, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push edi
push 0x80000002
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41093a
mov edx, dword [ebp - 0x1c]
push 4
lea ecx, [ebp - 0x24]
push ecx
push 4
push str.AccessVBOM
push 0x4498c4
push edx
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x41093f
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410913
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 0x14], eax
cmp eax, dword [0x452bf0]
jne 0x410690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0x10]
jmp 0x410965
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x410975
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret