Function at 0x1400080e0
Capabilities:
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xba0]
sub rsp, 0xca0
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov ebx, ecx
test ecx, ecx
jne 0x1400081b3
xor edx, edx
mov r8d, 0x106
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140008760
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140008194
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rsp + 0x70]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x140008760
lea r9, [0x14000e528]
lea r8, str.CustomActionInfo:_ERROR:__CreateChromeExtRegForReprompt__:_:_CHROMEEXT_REG_STATUS_:
lea rdx, str._s_____s_n
call fcn.140001040
jmp 0x140008760
lea rax, vtable.RegUtil.0
mov qword [rsp + 0x50], rax
xor r15d, r15d
mov qword [rsp + 0x58], r15
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x980]
call sub.VCRUNTIME140.dll_memset
lea r8, str.HKEY_LOCAL_MACHINESOFTWAREGoogleChromeExtensionsefaidnbmnnnibpcajpcglclefindmkaj
mov edx, 0x104
lea rcx, [rbp + 0x980]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor edx, edx
mov r8d, 0x106
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp ebx, 1
jne 0x1400083a1
test eax, eax
je 0x140008285
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x14000826b
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rsp + 0x70]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x140008285
lea r9, [0x14000e5d8]
lea r8, str.CustomActionInfo:_ERROR:__CreateChromeExtRegForReprompt__:_:_CHROMEEXT_REG_STATUS_:
lea rdx, str._s_____s_n
call fcn.140001040
lea r9, str.https:__clients2.google.com_service_update2_crx
lea r8, str.update_url
lea rdx, [rbp + 0x980]
call fcn.140009440
xor edx, edx
mov r8d, 0x106
lea rcx, [rsp + 0x70]
test eax, eax
jne 0x14000832c
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140008760
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140008319
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rsp + 0x70]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x140008760
lea r9, str.Failed_to_re_create_chrome_ext_reg_in_32bit_HKLM
lea r8, str.CustomActionInfo:_ERROR:__CreateChromeExtRegForReprompt__:_:
jmp 0x140008753
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140008760
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140008395
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rsp + 0x70]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x140008760
lea r9, str.Successfully_re_created_chrome_ext_reg_in_HKLM
jmp 0x14000874c
cmp ebx, 2
jne 0x1400086f9
test eax, eax
je 0x140008410
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x1400083f6
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rsp + 0x70]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x140008410
lea r9, [0x14000e80c]
lea r8, str.CustomActionInfo:_ERROR:__CreateChromeExtRegForReprompt__:_:_CHROMEEXT_REG_STATUS_:
lea rdx, str._s_____s_n
call fcn.140001040
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x770]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x70]
call fcn.140001b00
mov edx, 0x104
lea rcx, [rbp + 0x770]
test eax, eax
je 0x140008464
lea r8, str.HKEY_USERS_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x70]
mov edx, 0x104
lea rcx, [rbp + 0x770]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x140008471
lea r8, [0x14000b8d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.SOFTWAREGoogleChromeExtensionsefaidnbmnnnibpcajpcglclefindmkaj
mov edx, 0x104
lea rcx, [rbp + 0x770]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp + 0x770]
call fcn.140008c60
mov r14, rax
mov ecx, 0x208
call fcn.140009e10
mov rdi, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x208
call fcn.140009e10
mov rbx, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x208
call fcn.140009e10
mov rsi, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x770]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0x5c
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x140008520
lea rdx, [rax + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call fcn.140009914
mov rcx, rsi
call fcn.140009914
lea rbx, str.https:__clients2.google.com_service_update2_crx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000866f
lea eax, [rsi + rsi]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.update_url
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.140009914
xor edx, edx
mov r8d, 0x106
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140008760
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140008663
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rsp + 0x70]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x140008760
lea r9, str.Successfully_re_created_chrome_ext_reg_in_HKCU
jmp 0x14000874c
mov rcx, rdi
call fcn.140009914
xor edx, edx
mov r8d, 0x106
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140008760
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x1400086e9
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rsp + 0x70]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x140008760
lea r9, [0x14000e810]
lea r8, str.CustomActionInfo:_ERROR:__CreateChromeExtRegForReprompt__:_:
jmp 0x140008753
test eax, eax
je 0x140008760
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140008745
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rsp + 0x70]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x140008760
lea r9, str.CHROMEEXT_REG_STATUS_neither_1_nor_2__skipping
lea r8, str.CustomActionInfo:_INFO:__CreateChromeExtRegForReprompt__:_:
lea rdx, str._s_____s_n
call fcn.140001040
nop
xor eax, eax
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.1400098f0
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret