Function at 0x14000ba20
Capabilities:
Create directory
Get common file path
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm6
mov r13, r8
mov ebx, edx
mov rdi, rcx
mov rsi, qword [0x1400f74a8]
mov rax, qword [rsi]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], 0
movups xmmword [rsp + 0x188], xmm0
mov dword [rsp + 0xd8], 0
mov word [rsp + 0xdc], 0x500
movups xmmword [rsp + 0xf8], xmm0
movups xmmword [rsp + 0x108], xmm0
movups xmmword [rsp + 0x118], xmm0
movups xmmword [rsp + 0x128], xmm0
movups xmmword [rsp + 0x138], xmm0
movups xmmword [rsp + 0x148], xmm0
movups xmmword [rsp + 0x158], xmm0
movups xmmword [rsp + 0x168], xmm0
movups xmmword [rsp + 0x178], xmm0
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xd8]
mov dl, 2
mov r8d, 0x20
mov r9d, 0x221
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ebp, eax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], rax
test rcx, rcx
je 0x14000bb5e
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebp, ebp
je 0x14000bd8f
movabs r14, 0x2001f01ff
mov qword [rsp + 0xf8], r14
mov dword [rsp + 0x100], 3
movabs r15, 0x200000000
mov qword [rsp + 0x114], r15
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0xc0], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xd8]
mov dl, 2
mov r8d, 0x20
mov r9d, 0x220
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ebp, eax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], rax
test rcx, rcx
je 0x14000bc2f
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebp, ebp
je 0x14000be6d
mov qword [rsp + 0x128], r14
mov dword [rsp + 0x130], 3
mov qword [rsp + 0x144], r15
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xd8]
mov dl, 1
mov r8d, 0x12
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ebp, eax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], rax
test rcx, rcx
je 0x14000bce9
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebp, ebp
je 0x14000be6d
lea rdx, [rsp + 0xf8]
mov qword [rsp + 0x158], r14
mov dword [rsp + 0x160], 3
movabs rax, 0x100000000
mov qword [rsp + 0x174], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov ecx, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebp, eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x188], rax
test rcx, rcx
je 0x14000bd6c
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x14000bdb9
movzx r12d, bp
or r12d, 0x80070000
test ebp, ebp
cmovle r12d, ebp
test r12d, r12d
jns 0x14000be97
jmp 0x14000c310
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
call r14
mov ebp, eax
call r14
mov r12d, eax
test ebp, ebp
jle 0x14000be8e
movzx r12d, r12w
or r12d, 0x80070000
jmp 0x14000c310
mov ecx, 0x28
call qword [sym.imp.mozglue.dll_moz_xmalloc]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], 0
mov rcx, qword [rsp + 0x190]
mov qword [rsp + 0x190], rax
test rcx, rcx
je 0x14000be01
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x190]
test rax, rax
je 0x14000c171
mov qword [rsp + 0x198], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14000be6d
mov rcx, qword [rsp + 0x198]
mov r8, qword [rsp + 0x70]
xor r12d, r12d
mov edx, 1
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14000be6d
mov dword [rsp + 0x1a0], 0x18
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x1b0], 0
test r12d, r12d
jns 0x14000be97
jmp 0x14000c310
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
call r14
mov ebp, eax
call r14
mov r12d, eax
test ebp, ebp
jle 0x14000be8e
movzx r12d, r12w
or r12d, 0x80070000
test r12d, r12d
js 0x14000c310
mov rcx, qword [0x1400f8128]
lea r9, [rsp + 0xb8]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
mov r14, qword [rsp + 0xb8]
test eax, eax
js 0x14000bf01
cmp ebx, 1
mov qword [rsp + 0x58], r13
jne 0x14000bf12
mov ecx, 0x10
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
movabs rax, 0x69007a006f004d
mov qword [r15], rax
mov dword [r15 + 8], 0x6c006c
mov word [r15 + 0xc], 0x61
mov rax, r15
add rax, 0xe
mov ebp, 8
jmp 0x14000bf70
mov r12d, eax
test r14, r14
jne 0x14000c307
jmp 0x14000c310
mov ecx, 0x5a
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
movaps xmm0, xmmword [0x1400f7560]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x1400f7570]
movups xmmword [rax + 0x10], xmm0
movaps xmm0, xmmword [0x1400f7580]
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x1400f7590]
movups xmmword [rax + 0x30], xmm0
movaps xmm0, xmmword [0x1400f75a0]
movups xmmword [rax + 0x40], xmm0
movabs rax, 0x38003300620066
mov qword [r15 + 0x50], rax
mov rax, r15
add rax, 0x58
mov ebp, 0x2d
mov word [rax], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov r12, qword [rsp + 0xb8]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r13, rax
add r13, rbp
mov qword [rsp + 0x20], r15
lea r8, str._s_s
lea rcx, [rsp + 0xa0]
mov rdx, r13
mov r9, r12
call fcn.140015dd0
mov r12d, 0x80004005
cmp qword [rsp + 0xa0], r13
jne 0x14000c2dc
test ebx, ebx
jne 0x14000bff8
mov rcx, qword [rsp + 0xa8]
lea rdx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000bff8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000c258
movaps xmm0, xmmword [str.updates]
movaps xmmword [rsp + 0xc0], xmm0
mov rbx, qword [rsp + 0xa0]
mov r9, qword [rsp + 0xa8]
add rbx, 8
xorps xmm6, xmm6
movaps xmmword [rsp + 0x90], xmm6
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x90]
mov rdx, rbx
call fcn.140015dd0
mov r12d, 0x80004005
cmp qword [rsp + 0x90], rbx
jne 0x14000c2be
mov qword [rsp + 0x88], 0
movaps xmmword [rsp + 0x70], xmm6
lea rdx, str.SOFTWAREMozilla_STaskBarIDs
lea r8, str.Firefox
lea rcx, [rsp + 0x70]
call fcn.140015ef0
cmp qword [rsp + 0x70], 0
je 0x14000c151
mov rdx, qword [rsp + 0x78]
lea r13, [rsp + 0x60]
mov qword [rsp + 0x30], r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, 0xffffffff80000002
mov r8, rdi
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000c11f
mov r12d, dword [rsp + 0x60]
add r12, r12
mov rcx, r12
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.ntdll.dll_memset
mov qword [rsp + 0x88], rbx
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
mov r8, rdi
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x14000c147
lea r8, [rsp + 0x70]
lea r9, [rsp + 0x88]
mov rcx, rdi
mov rdx, 0xffffffff80000001
call fcn.140016080
test al, al
je 0x14000c151
mov rbx, qword [rsp + 0x88]
mov r13, qword [rsp + 0x58]
jmp 0x14000c1e3
cmp word [rdi], 0
je 0x14000c185
xor eax, eax
mov r13, qword [rsp + 0x58]
nop
lea rdx, [rax + 2]
cmp word [rdi + rax + 2], 0
mov rax, rdx
jne 0x14000c160
jmp 0x14000c18c
mov r12d, 0x8007000e
test r12d, r12d
jns 0x14000be97
jmp 0x14000c310
xor edx, edx
mov r13, qword [rsp + 0x58]
mov rcx, rdi
call fcn.14000ad10
mov rdi, rax
mov ecx, 0x22
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov word [rax + 0x20], 0
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000c1c7
call sub.mozglue.dll_free
mov rcx, rbx
mov r9, rdi
call fcn.14000b990
dec eax
mov r12d, 0x80004005
cmp eax, 0xf
ja 0x14000c28d
mov rdi, qword [rsp + 0x90]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add rdi, rax
inc rdi
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov r9, qword [rsp + 0x98]
mov qword [rsp + 0x20], rbx
lea r8, str._s_s
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140015dd0
mov rax, qword [rsp + 0x68]
mov r12d, 0x80004005
cmp qword [rsp + 0x60], rdi
jne 0x14000c253
mov rdi, qword [r13]
mov qword [rsp + 0x68], rdi
mov qword [r13], rax
xor r12d, r12d
test rdi, rdi
je 0x14000c270
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
jmp 0x14000c272
mov rdi, rax
jmp 0x14000c277
mov r12d, eax
test eax, eax
jle 0x14000c3dc
movzx r12d, r12w
or r12d, 0x80070000
jmp 0x14000c2dc
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
test rdi, rdi
je 0x14000c28d
mov rcx, rdi
call sub.mozglue.dll_free
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
test rcx, rcx
je 0x14000c2a5
call sub.mozglue.dll_free
mov qword [rsp + 0x88], 0
test rbx, rbx
je 0x14000c2be
mov rcx, rbx
call sub.mozglue.dll_free
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x98], 0
test rcx, rcx
je 0x14000c2dc
call sub.mozglue.dll_free
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x14000c2fa
call sub.mozglue.dll_free
mov rcx, r15
call sub.mozglue.dll_free
test r14, r14
je 0x14000c310
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x190]
mov qword [rsp + 0x190], 0
test rcx, rcx
je 0x14000c32e
call sub.mozglue.dll_free
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x188], 0
test rcx, rcx
je 0x14000c34d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], 0
test rcx, rcx
je 0x14000c36c
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], 0
test rcx, rcx
je 0x14000c38b
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], 0
test rcx, rcx
je 0x14000c3aa
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rax, qword [rsp + 0x1b8]
xor rax, rsp
mov rcx, qword [rsi]
cmp rcx, rax
jne 0x14000c3e7
mov eax, r12d
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jns 0x14000bff8
jmp 0x14000c2dc
call fcn.1400c8850
int3