Function at 0x140030870
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 [0x1400ab070]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea r8, str.SetDefaultBrowserUserChoice
lea rdi, [rsp + 0x50]
mov rcx, rdi
xor edx, edx
call fcn.14002dfd0
cmp dword [rdi + 4], 0
jne 0x140030a93
movzx eax, word [rsp + 0x50]
cmp eax, 0x100
jb 0x140030a93
movzx eax, al
test ax, ax
je 0x140030a93
mov rcx, rsi
xor edx, edx
call fcn.140030be0
test eax, eax
js 0x140030a93
lea rdx, str.firefox.exe
lea rsi, [rsp + 0x110]
mov rcx, rsi
call fcn.140031080
cmp dword [rsi + 0x20], 0
jne 0x140030a6e
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 0x140030938
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.140005740
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 0x1400309b7
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 0x140030ae6
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 0x140030a20
mov rcx, rsi
call fcn.140054b24
mov rax, qword [rsp + 0x108]
cmp rax, 8
jb 0x140030a6e
mov rcx, qword [rsp + 0xf0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140030a69
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140030bce
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140054b24
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140055a90
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, 0x118
call fcn.14002b7d0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140055a90
nop
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140057ce0
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, 0xf3
call fcn.140057a20
cdqe
lea r13, [rax + 1]
lea rbp, [rax + rax]
add rbp, 2
mov rcx, rbp
call fcn.140054b1c
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], 0xf3
mov rcx, rbx
mov rdx, r13
mov r9, r15
call fcn.140057aa0
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140030bc1
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.140054b24
jmp 0x140030a13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x270
movaps xmmword [rsp + 0x260], xmm6
mov rax, qword [0x1400ab070]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov eax, dword [0x1400ab4d0]
cmp eax, 0x55ef
ja 0x140057ffe
mov eax, dword [0x1400ab090]
cmp eax, 0x55f1
jb 0x140057dc1
lea rsi, [rsp + 0x58]
mov r8d, 0x114
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movabs rax, 0xa0000011c
mov qword [rsi - 8], rax
mov dword [rsi + 4], 0x55f0
mov rsi, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 4
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x10
mov r8b, 3
call rsi
lea rcx, [rsp + 0x50]
mov edx, 0x37
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x140057ff3
mov eax, 0x55f0
xchg dword [0x1400ab090], eax
mov eax, dword [0x1400ab4d0]
cmp eax, 0x3a74
ja 0x140057e7a
mov eax, dword [0x1400ab090]
cmp eax, 0x3a76
jb 0x140057f41
lea rsi, [rsp + 0x58]
mov r8d, 0x114
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movabs rax, 0xa0000011c
mov qword [rsi - 8], rax
mov dword [rsi + 4], 0x3a75
mov rsi, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 4
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x10
mov r8b, 3
call rsi
lea rcx, [rsp + 0x50]
mov edx, 0x37
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140057f36
mov eax, 0x3a75
xchg dword [0x1400ab4d0], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400650b0]
lea r9, [0x140065080]
xor edx, edx
mov r8d, 3
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140057f0f
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
js 0x140057efd
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.140055a90
movaps xmm6, xmmword [rsp + 0x260]
add rsp, 0x270
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov eax, 0x3a75
xchg dword [0x1400ab090], 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 0x140057f79
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x18
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
je 0x140057fdd
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 0x140057e7a
cmp dword [rsp + 0x50], 0
je 0x140057e7a
call fcn.140057b20
jmp 0x140057f0f
mov rcx, qword [rsp + 0x40]
mov edi, dword [rcx]
call sub.NETAPI32.dll_NetApiBufferFree
test edi, edi
jne 0x140057e7a
jmp 0x140057f79
mov eax, 0x55f0
xchg dword [0x1400ab4d0], eax
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140058127
lea rdx, str.GetCurrentPackageId
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [rsp + 0x50], 0
test rax, rax
je 0x140058127
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [0x1400af010]
cmp eax, 0x7a
jne 0x140058127
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140058127
lea rdx, str.GetCurrentPackageFamilyName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140058127
mov rdi, rax
lea rcx, [rsp + 0x50]
mov dword [rcx], 0
xor edx, edx
call qword [0x1400af010]
cmp eax, 0x7a
jne 0x140058127
lea rbx, [rsp + 0x50]
mov r14d, dword [rbx]
add r14, r14
mov rcx, r14
call fcn.140054b1c
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, r14
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
mov rdx, rsi
mov rax, rdi
call qword [0x1400af010]
test eax, eax
jne 0x14005811f
lea rbx, str.ms_settings:defaultapps_registeredAUMID_s_App
mov rcx, rbx
mov rdx, rsi
call fcn.140057a20
cdqe
lea r14, [rax + 1]
lea r15, [rax + rax]
add r15, 2
mov rcx, r15
call fcn.140054b1c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, r14
mov r9, rbx
call fcn.140057aa0
jmp 0x14005820c
mov rcx, rsi
call fcn.140054b24
lea rsi, [rsp + 0x50]
mov qword [rsi], 0
mov rcx, rsi
call fcn.140057900
mov rsi, qword [rsi]
lea rdi, [rsp + 0x40]
mov dword [rdi], 4
mov qword [rsp + 0x30], rdi
xorps xmm6, xmm6
movups xmmword [rsp + 0x20], xmm6
lea rdx, str.SoftwareRegisteredApplications
mov rcx, 0xffffffff80000001
mov r8, rsi
mov r9d, 0xffff
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140058180
lea rbx, str.ms_settings:defaultapps_registeredAppUser_s
jmp 0x1400581c3
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x20], xmm6
lea rdx, str.SoftwareRegisteredApplications
mov rcx, 0xffffffff80000002
mov r8, rsi
mov r9d, 0xffff
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
lea rax, str.ms_settings:defaultapps_registeredAppMachine_s
lea rbx, str.ms_settings:defaultapps_registeredAppUser_s
cmove rbx, rax
mov rcx, rbx
mov rdx, rsi
call fcn.140057a20
cdqe
lea r14, [rax + 1]
lea r15, [rax + rax]
add r15, 2
mov rcx, r15
call fcn.140054b1c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, r14
mov r9, rbx
call fcn.140057aa0
test rsi, rsi
je 0x140058214
mov rcx, rsi
call fcn.140054b24
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
movaps xmmword [rcx], xmm0
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx + 0x30], xmm0
movaps xmmword [rcx + 0x60], xmm0
movaps xmmword [rcx + 0x50], xmm0
movaps xmmword [rcx + 0x40], xmm0
movaps xmmword [rcx + 0x20], xmm0
mov dword [rcx], 0x70
mov qword [rcx + 0x18], rdi
mov dword [rcx + 0x30], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, rdi
call fcn.140054b24
jmp 0x140057f0f