Function at 0x1000ba90
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x1009cbc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x94], 0
push esi
push edi
test eax, eax
je 0x1000bf2b
push 0xfffffffffffffffe
push eax
call fcn.10051b84
add esp, 8
test eax, eax
je 0x1000bf2b
lea eax, [ebp - 0x94]
push eax
push 0xf003f
push 0
push str.SoftwareMalwarebytesAnti_ExploitOfficeMacroSettingsBackup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x90], edi
cmp edi, 2
jne 0x1000bc5c
mov ecx, 0x1e
lea edi, [ebp - 0x88]
mov esi, str.SoftwareMalwarebytesAnti_ExploitOfficeMacroSettingsBackup
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call edx
add eax, 0x1e
mov dword [ebp - 0x98], 0
push 0x1000a
mov dword [ebp - 0x8c], eax
call fcn.1005218a
add esp, 4
mov edi, eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov esi, eax
test edi, edi
je 0x1000bc05
test esi, esi
je 0x1000bc05
lea eax, [ebp - 0x88]
push eax
push str._MM__Creating_backup_tree_for__s...
push 0xffff
push esi
call fcn.1005211a
add esp, 0x10
test eax, eax
jle 0x1000bbeb
xor eax, eax
mov ecx, esi
push 0xffffffffffffffff
push esi
mov word [esi + 0x1fffe], ax
call fcn.10001b80
inc eax
push eax
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1000bbc9
push dword [ebp - 0x8c]
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call ebx
push dword [ebp - 0x8c]
mov edx, 0x13b
mov ecx, str...MacroManager.cpp
push edi
push str._BackUpOfficeMacroSetting
push 4
call fcn.10001cf0
add esp, 0x10
jmp 0x1000bc19
push dword [ebp - 0x8c]
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x1000bc17
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call ebx
test edi, edi
je 0x1000bc26
push edi
call fcn.10052152
add esp, 4
test esi, esi
je 0x1000bc33
push esi
call fcn.10052152
add esp, 4
lea eax, [ebp - 0x90]
push eax
lea edx, [ebp - 0x88]
call fcn.1000bf50
mov edi, dword [ebp - 0x90]
add esp, 4
mov edx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
jmp 0x1000bc62
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x1000bdeb
test edi, edi
jne 0x1000bdeb
call edx
push 0x1000a
mov dword [ebp - 0x98], 0
lea edi, [eax + 0x1e]
call fcn.1005218a
add esp, 4
mov dword [ebp - 0x8c], eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov esi, eax
cmp dword [ebp - 0x8c], 0
je 0x1000bd4b
test esi, esi
je 0x1000bd4b
push str.SoftwareMalwarebytesAnti_ExploitOfficeMacroSettingsBackup
push str._MM__Backup_tree__s_created_or_opened_succesfuly.
push 0xffff
push esi
call fcn.1005211a
add esp, 0x10
test eax, eax
jle 0x1000bd36
xor eax, eax
mov ecx, esi
push 0xffffffffffffffff
push esi
mov word [esi + 0x1fffe], ax
call fcn.10001b80
inc eax
push eax
push dword [ebp - 0x8c]
lea eax, [ebp - 0x98]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1000bd14
push edi
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call ebx
push edi
push dword [ebp - 0x8c]
mov edx, 0x140
mov ecx, str...MacroManager.cpp
push str._BackUpOfficeMacroSetting
push 4
call fcn.10001cf0
add esp, 0x10
jmp 0x1000bd5f
push edi
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x1000bd5d
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call ebx
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x1000bd72
push eax
call fcn.10052152
add esp, 4
test esi, esi
je 0x1000bd7f
push esi
call fcn.10052152
add esp, 4
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 4
push eax
push 0
push esi
push dword [ebp - 0x94]
mov dword [ebp - 0x90], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000bdc3
mov edi, 0x4da
jmp 0x1000bddf
push 4
lea eax, [ebp - 0xa0]
push eax
push 4
push 0
push esi
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e
mov dword [ebp - 0x9c], 0
push 0x1000a
mov dword [ebp - 0x90], eax
call fcn.1005218a
add esp, 4
mov dword [ebp - 0x8c], eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov esi, eax
cmp dword [ebp - 0x8c], 0
je 0x1000bee4
test esi, esi
je 0x1000bee4
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push str._MM__Key__s_succesfully_Backed_up_with_value__d...
push 0xffff
push esi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x1000beca
xor eax, eax
mov ecx, esi
push 0xffffffffffffffff
push esi
mov word [esi + 0x1fffe], ax
call fcn.10001b80
inc eax
push eax
push dword [ebp - 0x8c]
lea eax, [ebp - 0x9c]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x1000bea3
push dword [ebp - 0x90]
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call ebx
push dword [ebp - 0x90]
mov edx, 0x14e
mov ecx, str...MacroManager.cpp
push dword [ebp - 0x8c]
push str._BackUpOfficeMacroSetting
push 4
call fcn.10001cf0
add esp, 0x10
jmp 0x1000bef8
push dword [ebp - 0x90]
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x1000bef6
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call ebx
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x1000bf0b
push eax
call fcn.10052152
add esp, 4
test esi, esi
je 0x1000bf18
push esi
call fcn.10052152
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005132c
mov esp, ebp
pop ebp
ret