Function at 0x4390f0
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 ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa8
mov edi, ecx
mov eax, dword [0x4a0088]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0xa8]
mov ecx, esi
xor edx, edx
push str.SetDefaultBrowserUserChoice
call fcn.0042e150
add esp, 4
cmp dword [esi + 4], 0
jne 0x439289
movzx eax, word [ebp - 0xa8]
cmp eax, 0x100
jb 0x439289
movzx eax, al
test ax, ax
je 0x439289
mov ecx, edi
xor edx, edx
call fcn.00431920
test eax, eax
js 0x439289
lea edi, [ebp - 0x2c]
mov ecx, edi
mov edx, str.firefox.exe
call fcn.00436c30
cmp dword [edi + 0x18], 0
jne 0x439274
movsd xmm0, qword [ebp - 0x1c]
lea ebx, [ebp - 0x44]
movsd qword [ebx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [ebx], xmm0
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x439190
mov eax, dword [ebp - 0x44]
lea edi, [ebp - 0x4c]
mov dword [edi], eax
mov dword [edi + 4], str._to_handle_default_browser_agent
lea ecx, [ebp - 0x54]
mov edx, 2
push edi
call fcn.00405570
add esp, 4
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
movups xmmword [ebp - 0x84], xmm0
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0xa8], 0x44
lea eax, [ebp - 0x54]
mov edi, dword [eax]
cmp dword [ebp - 0x30], 8
jb 0x4391e1
mov ebx, dword [ebp - 0x44]
sub esp, 0x28
lea eax, [ebp - 0x64]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
movaps xmm0, xmmword [0x463500]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x4392c6
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x60]
call esi
push dword [ebp - 0x64]
call esi
test edi, edi
je 0x439237
push edi
call fcn.0044f120
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x439274
mov ecx, dword [ebp - 0x44]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x43926a
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4393a5
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044f9c3
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f7d0
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x118
push str.SetDefaultBrowserFromNotification
push str.Failed_to_SetDefaultBrowserUserChoice:__X
push dword [sym.default_browser_agent.exe_gWinEventLogSourceName]
call fcn.0042a450
add esp, 0x14
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f7d0
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00451fd0
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [ebp - 0xac], ecx
mov eax, dword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [ebp - 0xb4], eax
mov edx, 0xf3
mov ebx, str.LaunchFirefoxToHandleDefaultBrowserAgent
mov eax, str.0x_X_in__S:_d
push edx
push ebx
push ecx
push eax
call fcn.00451d80
add esp, 0x10
lea ecx, [eax + 1]
mov dword [ebp - 0xb0], ecx
lea ecx, [eax + eax]
add ecx, 2
xor ebx, ebx
dec ebx
cmp eax, 0xffffffff
cmovge ebx, ecx
push ebx
call fcn.0044f9c3
add esp, 4
push ebx
push esi
mov ebx, eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0xf3
push eax
mov eax, str.LaunchFirefoxToHandleDefaultBrowserAgent
push eax
push dword [ebp - 0xac]
mov eax, str.0x_X_in__S:_d
push eax
push 0xffffffffffffffff
push dword [ebp - 0xb0]
push ebx
call fcn.00451de0
add esp, 0x1c
push dword [ebp - 0xb4]
push esi
mov esi, ebx
call dword [sym.imp.advapi32.dll_RegisterEventSourceW]
test eax, eax
je 0x439397
mov ebx, eax
lea eax, [ebp - 0x50]
mov dword [eax], esi
xor ecx, ecx
xor edx, edx
inc edx
push ecx
push eax
push ecx
push edx
push ecx
push dword [ebp - 0xac]
push ecx
push edx
push ebx
call dword [sym.imp.advapi32.dll_ReportEventW]
push ebx
call dword [sym.imp.advapi32.dll_DeregisterEventSource]
push esi
call fcn.0044f120
add esp, 4
jmp 0x43922a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3