Function at 0x140008190
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov r12, qword [0x1400f74a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r15, qword [rdx + 0x20]
test r15, r15
je 0x1400081da
movzx ecx, byte [rdi + 0xa0]
mov eax, ecx
and al, 1
je 0x140008241
mov rcx, qword [rdi + 0xa8]
jmp 0x140008244
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
lea rdx, str.SOFTWARETor_ProjectFirefoxLauncher
mov rcx, 0xffffffff80000001
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000839b
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0xa5
jmp 0x1400083cc
shr rcx, 1
lea r14, [rdi + 0xa0]
test rcx, rcx
jne 0x14000827e
lea rdx, [rdi + 0x28]
mov rcx, r14
call fcn.14007ef80
lea rdx, str.Blocklist
mov r8d, 0xa
mov rcx, r14
call fcn.14007dda0
mov r15, qword [rdi + 0x20]
movzx eax, byte [rdi + 0xa0]
and al, 1
lea rbx, [rdi + 0xa2]
mov r8, rbx
test al, al
je 0x140008293
mov r8, qword [rdi + 0xb0]
lea r13, [rsp + 0x50]
mov qword [rsp + 0x30], r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, r15
xor edx, edx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, 2
je 0x140008346
test eax, eax
jne 0x14000836f
mov r15d, dword [rsp + 0x50]
and r15d, 0xfffffffe
mov rcx, r15
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.ntdll.dll_memset
mov rcx, qword [rdi + 0x20]
test byte [rdi + 0xa0], 1
je 0x1400082fd
mov rbx, qword [rdi + 0xb0]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
xor edx, edx
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400083e5
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, r14
call sub.mozglue.dll_free
mov eax, 0x5c
jmp 0x140008382
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.14000dd20
cmp byte [rsp + 0x68], 0
je 0x14000841e
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], 1
jmp 0x14000854d
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x54
mov byte [rsi + 0x18], 1
lea rcx, str._var_tmp_build_firefox_d8b47d80163d_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rcx
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], edi
jmp 0x14000854d
mov r15, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400083af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x20], r15
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
jbe 0x1400081c4
mov ecx, 0x80070507
mov eax, 0xb4
mov byte [rsi + 0x18], 1
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rdx
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], ecx
jmp 0x14000854d
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdi, rax
movabs rax, 0x7ffffffffffffff0
cmp rdi, rax
jae 0x1400085bf
cmp rdi, 0xa
ja 0x1400084e9
lea eax, [rdi + rdi]
mov byte [rsp + 0x50], al
lea rbx, [rsp + 0x52]
jmp 0x140008519
movzx eax, byte [rdi + 0xa0]
test al, 1
je 0x140008437
mov rax, qword [rdi + 0xa8]
test rax, rax
jne 0x140008460
jmp 0x14000843f
shr rax, 1
test rax, rax
jne 0x140008460
lea rdx, [rdi + 0x28]
mov rcx, r14
call fcn.14007ef80
lea rdx, str.Blocklist
mov r8d, 0xa
mov rcx, r14
call fcn.14007dda0
movzx ecx, byte [rsp + 0x50]
mov eax, ecx
shr eax, 1
test byte [rdi + 0xa0], 1
je 0x140008479
mov rbx, qword [rdi + 0xb0]
test cl, 1
cmovne eax, dword [rsp + 0x58]
lea eax, [rax + rax + 2]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x52]
cmovne rdx, qword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140008574
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x18], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x6a
mov dword [rsi + 0xc], ecx
cmp byte [rsp + 0x68], 0
jne 0x14000854d
jmp 0x1400085ac
mov r15, rdi
or r15, 7
inc r15
js 0x1400085c4
lea rcx, [r15 + r15]
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov qword [rsp + 0x60], rax
or r15, 1
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rdi
mov r8, rdi
add r8, rdi
mov rcx, rbx
mov rdx, r14
call sub.ntdll.dll_memcpy
mov word [rbx + rdi*2], 0
mov byte [rsi + 0x18], 0
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov rcx, r14
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x78]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x1400085ba
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rsp + 0x68]
mov byte [rsi + 0x18], al
test al, al
je 0x14000858a
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
jmp 0x14000854d
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
test byte [rsp + 0x50], 1
je 0x14000854d
mov rcx, qword [rsp + 0x60]
jmp 0x140008548
call fcn.1400c8850
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
call fcn.14000f700
int3