Function at 0x14003d910
Capabilities:
Access the windows event log
Create a process with modified i/o handles and window
Create process on windows
Get session user name
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x1400ab080]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea r8, str.SetDefaultBrowserUserChoice
lea rdi, [rsp + 0x50]
mov rcx, rdi
xor edx, edx
call fcn.140030d10
cmp dword [rdi + 4], 0
jne 0x14003db33
movzx eax, word [rsp + 0x50]
cmp eax, 0x100
jb 0x14003db33
movzx eax, al
test ax, ax
je 0x14003db33
mov rcx, rsi
xor edx, edx
call fcn.140034f80
test eax, eax
js 0x14003db33
lea rdx, str.firefox.exe
lea rsi, [rsp + 0x110]
mov rcx, rsi
call fcn.14003ac90
cmp dword [rsi + 0x20], 0
jne 0x14003db0e
movups xmm0, xmmword [rsp + 0x110]
movups xmm1, xmmword [rsp + 0x120]
lea rbx, [rsp + 0xf0]
movaps xmmword [rbx + 0x10], xmm1
movaps xmmword [rbx], xmm0
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x14003d9d8
mov rax, qword [rsp + 0xf0]
lea r8, [rsp + 0xe0]
mov qword [r8], rax
lea rax, str._to_handle_default_browser_agent
mov qword [r8 + 8], rax
lea rsi, [rsp + 0xd8]
mov rcx, rsi
mov edx, 2
call fcn.140005c40
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0x68
mov rsi, qword [rsi]
cmp qword [rsp + 0x108], 8
jb 0x14003da57
mov rbx, qword [rsp + 0xf0]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x28
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14003db86
mov rcx, qword [rsp + 0xc8]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsp + 0xc0]
call rdi
test rsi, rsi
je 0x14003dac0
mov rcx, rsi
call fcn.140056c84
mov rax, qword [rsp + 0x108]
cmp rax, 8
jb 0x14003db0e
mov rcx, qword [rsp + 0xf0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14003db09
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14003dc83
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140056c84
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140057bf0
nop
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [rsp + 0x20], eax
lea rdx, str.Failed_to_SetDefaultBrowserUserChoice:__X
lea r8, str.SetDefaultBrowserFromNotification
mov r9d, 0x119
call fcn.14002cba0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140057bf0
nop
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140059d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r14, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r15, str.0x_X_in__S:_d
lea r12, str.LaunchFirefoxToHandleDefaultBrowserAgent
mov rcx, r15
mov edx, edi
mov r8, r12
mov r9d, 0xf4
call fcn.140059a40
cdqe
lea r13, [rax + 1]
lea rbp, [rax + rax]
add rbp, 2
cmp eax, 0xffffffff
mov rax, 0xffffffffffffffff
cmovl rbp, rax
mov rcx, rbp
call fcn.140056c40
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 0xf4
mov rcx, rbx
mov rdx, r13
mov r8, 0xffffffffffffffff
mov r9, r15
call fcn.140059ac0
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14003dc76
mov r14, rax
lea rax, [rsp + 0x138]
mov qword [rax], rbx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, r14
mov dx, 1
xor r8d, r8d
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rbx
call fcn.140056c84
jmp 0x14003dab3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
push rsi
push rdi
push rbx
sub rsp, 0x260
mov rax, qword [0x1400ab080]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov eax, dword [0x1400ab3d8]
cmp eax, 0x3a74
ja 0x140059db3
mov eax, dword [0x1400ab08c]
cmp eax, 0x3a76
jb 0x140059e7b
lea rsi, [rsp + 0x54]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsi - 4], 0x11c
mov dword [rsi + 8], 0x3a75
xor ecx, ecx
mov edx, 4
mov r8b, 3
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x50]
mov edx, 4
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140059e70
mov eax, 0x3a75
xchg dword [0x1400ab3d8], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400660b0]
lea r9, [0x140066080]
xor edx, edx
mov r8d, 3
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140059e6c
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
lea rdx, str.windows.immersivecontrolpanel_cw5n1h2txyewy_microsoft.windows.immersivecontrolpanel
lea r8, str.pageSettingsPageAppsDefaults
xor r9d, r9d
call qword [0x1400af010]
test eax, eax
setns bl
js 0x140059e3d
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rsi
lea rdx, str.windows.immersivecontrolpanel_cw5n1h2txyewy_microsoft.windows.immersivecontrolpanel
lea r8, str.pageSettingsPageAppsDefaultstargetSystemSettings_DefaultApps_Browser
xor r9d, r9d
call qword [0x1400af010]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400af010]
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.140057bf0
mov eax, ebx
add rsp, 0x260
pop rbx
pop rdi
pop rsi
ret
mov bl, 1
jmp 0x140059e4f
mov eax, 0x3a75
xchg dword [0x1400ab08c], eax
lea rdx, [rsp + 0x4c]
mov dword [rdx], 0x101
lea rsi, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140059eb3
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x18
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
je 0x140059f19
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov dword [rax], 4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindowsShellAssociations
lea r8, str.IsConnectedAtLogon
mov rcx, 0xffffffff80000001
mov r9d, 0xffff
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140059db3
cmp dword [rsp + 0x50], 0
je 0x140059db3
call fcn.140059b50
mov ebx, eax
jmp 0x140059e4f
mov rcx, qword [rsp + 0x40]
mov edi, dword [rcx]
call sub.NETAPI32.dll_NetApiBufferFree
test edi, edi
jne 0x140059db3
jmp 0x140059eb3