Function at 0x100119c0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e950
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x10028018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push str.SOFTWAREMicrosoftVBA
push 0x80000002
call fcn.10011380
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push str.VBA7.1
mov edx, dword [ebp - 0x24]
push edx
call fcn.10011380
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push str.InstalledBy
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10011380
add esp, 0xc
call fcn.10010e80
mov byte [ebp - 0x11], al
movzx edx, byte [ebp - 0x11]
test edx, edx
je 0x10011a73
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDisableReflectionKey]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDisableReflectionKey]
cmp dword [ebp + 8], 0
je 0x10011b00
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10011afe
mov dword [ebp - 0x3c], 0
push 4
lea ecx, [ebp - 0x3c]
push ecx
push 4
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10011afe
cmp dword [ebp - 0x18], 0
jg 0x10011ad2
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
jmp 0x10011aea
mov edx, dword [ebp - 0x18]
and edx, 0xffff
or edx, 0x70000
or edx, 0x80000000
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
push 0x100241d0
lea ecx, [ebp - 0x40]
push ecx
call sub.MSVCR110.dll__CxxThrowException
jmp 0x10011b70
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10011b70
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10011b70
cmp dword [ebp - 0x18], 0
jg 0x10011b44
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
jmp 0x10011b5c
mov ecx, dword [ebp - 0x18]
and ecx, 0xffff
or ecx, 0x70000
or ecx, 0x80000000
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], edx
push 0x100241d0
lea eax, [ebp - 0x44]
push eax
call sub.MSVCR110.dll__CxxThrowException
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x18], eax
call fcn.10010e80
mov byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x10011bb9
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnableReflectionKey]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnableReflectionKey]
cmp dword [ebp - 0x18], 0
je 0x10011bf9
cmp dword [ebp - 0x18], 0
jg 0x10011bcd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
jmp 0x10011be5
mov ecx, dword [ebp - 0x18]
and ecx, 0xffff
or ecx, 0x70000
or ecx, 0x80000000
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], edx
push 0x100241d0
lea eax, [ebp - 0x48]
push eax
call sub.MSVCR110.dll__CxxThrowException
cmp dword [ebp - 0x4c], 0
jbe 0x10011c08
mov dword [ebp - 0x34], 1
jmp 0x10011c0f
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
jmp 0x10011c55
mov dword [ebp - 4], 0xffffffff
jmp 0x10011c65
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10011410
add esp, 4
lea edx, [ebp - 0x20]
push edx
call fcn.10011410
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.10011410
add esp, 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret