Function at 0x42f6e0
Capabilities:
Access the windows event log
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x84
mov edi, edx
mov dword [ebp - 0x8c], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x4a1088]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
cmp eax, 7
ja 0x42f99e
lea eax, [ebp - 0x28]
mov dword [eax + 0x10], esi
mov ecx, esi
add ecx, esi
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebp + esi*2 - 0x28], 0
movsd xmm0, qword [ebp - 0x18]
movsd qword [ebp - 0x30], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [ebp - 0x40], xmm0
lea ecx, [ebp - 0x58]
mov edx, ebx
call fcn.00432350
xor edi, edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], 0
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x42f9bc
mov esi, eax
lea edi, [eax + eax]
xor eax, eax
dec eax
test esi, esi
cmovs edi, eax
push edi
call fcn.004484b7
add esp, 4
mov ebx, eax
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp esi, 0xffffffff
je 0x42fc8d
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [ebp - 0x88], ebx
je 0x42fb75
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
cmp eax, 7
ja 0x42fc62
lea eax, [ebp - 0x28]
mov dword [eax + 0x10], esi
mov ecx, esi
add ecx, esi
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebp + esi*2 - 0x28], 0
mov esi, dword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x24]
movsd qword [ebp - 0x7c], xmm0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x74], eax
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x84], 0
push dword [ebp - 0x88]
call fcn.004484c0
add esp, 4
mov edx, ebx
mov eax, dword [ebp - 0x84]
test eax, eax
lea ebx, [ebp - 0x58]
jne 0x42fc80
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x70], esi
movsd xmm0, qword [ebp - 0x7c]
movsd qword [ebp - 0x6c], xmm0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edi
cmp dword [ebp - 0x2c], 8
jb 0x42f891
mov eax, dword [ebp - 0x40]
jmp 0x42f894
lea eax, [ebp - 0x40]
cmp ecx, 8
jb 0x42f89c
mov ebx, dword [ebp - 0x58]
lea ecx, [edx + edx]
add ecx, 2
cmp edi, 8
lea edx, [ebp - 0x70]
cmovae edx, esi
push ecx
push edx
push 1
push eax
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x42faa2
mov edi, dword [ebp - 0x8c]
mov dword [edi], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x42f90d
mov ecx, dword [ebp - 0x70]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42f903
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42fc98
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004484f5
add esp, 8
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x42f94a
mov ecx, dword [ebp - 0x58]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42f940
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42fc98
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004484f5
add esp, 8
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42f987
mov ecx, dword [ebp - 0x40]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42f97d
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42fc98
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004484f5
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b70
mov eax, edi
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0xc
mov al, byte [ebp - 0x40]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
lea ecx, [ebp - 0x28]
call fcn.0044fdb0
jmp 0x42f746
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, dword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [ebp - 0x84], eax
mov ecx, 0x29
mov edx, str.Utf8ToUtf16
mov eax, str.0x_X_in__S:_d
push ecx
push edx
push ebx
push eax
call fcn.0044eb90
add esp, 0x10
lea ecx, [eax + 1]
mov dword [ebp - 0x88], ecx
lea ecx, [eax + eax]
add ecx, 2
xor esi, esi
dec esi
cmp eax, 0xffffffff
cmovge esi, ecx
push esi
call fcn.004484b7
add esp, 4
push esi
push edi
mov esi, eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x29
push eax
mov eax, str.Utf8ToUtf16
push eax
push ebx
mov eax, str.0x_X_in__S:_d
push eax
push 0xffffffffffffffff
push dword [ebp - 0x88]
push esi
call fcn.0044ebf0
add esp, 0x1c
push dword [ebp - 0x84]
push edi
mov edi, ebx
mov ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x42fa7f
mov esi, eax
lea eax, [ebp - 0x28]
mov dword [eax], ebx
xor ecx, ecx
xor edx, edx
inc edx
push ecx
push eax
push ecx
push edx
push ecx
push edi
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [ebp - 0x84], edi
push ebx
call fcn.004484c0
add esp, 4
xor esi, esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], esi
xor edx, edx
xor edi, edi
jmp 0x42f859
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, dword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [ebp - 0x84], eax
mov ecx, 0x7a
mov edx, str.RegistrySetValueString
mov eax, str.0x_X_in__S:_d
push ecx
push edx
push ebx
push eax
call fcn.0044eb90
add esp, 0x10
lea ecx, [eax + 1]
mov dword [ebp - 0x88], ecx
lea ecx, [eax + eax]
add ecx, 2
xor esi, esi
dec esi
cmp eax, 0xffffffff
cmovge esi, ecx
push esi
call fcn.004484b7
add esp, 4
mov edi, eax
xor eax, eax
push esi
push eax
xor esi, esi
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x7a
push eax
mov eax, str.RegistrySetValueString
push eax
push ebx
mov eax, str.0x_X_in__S:_d
push eax
push 0xffffffffffffffff
push dword [ebp - 0x88]
push edi
call fcn.0044ebf0
add esp, 0x1c
push dword [ebp - 0x84]
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x42fb5f
mov esi, eax
lea eax, [ebp - 0x28]
mov dword [eax], edi
xor ecx, ecx
inc ecx
xor edx, edx
push edx
push eax
push edx
push ecx
push edx
push ebx
push edx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call fcn.004484c0
add esp, 4
mov edi, dword [ebp - 0x8c]
mov dword [edi], ebx
jmp 0x42f8d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, dword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [ebp - 0x84], eax
mov ecx, 0x32
mov edx, str.Utf8ToUtf16
mov eax, str.0x_X_in__S:_d
push ecx
push edx
push esi
push eax
call fcn.0044eb90
add esp, 0x10
lea ecx, [eax + 1]
mov dword [ebp - 0x90], ecx
lea edi, [eax + eax]
add edi, 2
cmp eax, 0xffffffff
mov eax, 0xffffffff
cmovl edi, eax
push edi
call fcn.004484b7
add esp, 4
mov ebx, eax
push edi
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x32
push eax
mov eax, str.Utf8ToUtf16
push eax
push esi
mov eax, str.0x_X_in__S:_d
push eax
push 0xffffffffffffffff
push dword [ebp - 0x90]
push ebx
call fcn.0044ebf0
add esp, 0x1c
push dword [ebp - 0x84]
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x42fc3f
lea edx, [ebp - 0x28]
mov dword [edx], ebx
xor ecx, ecx
inc ecx
push edi
push edx
push edi
push ecx
push edi
push esi
push edi
push ecx
push eax
mov dword [ebp - 0x84], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [ebp - 0x84], esi
push ebx
call fcn.004484c0
add esp, 4
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
xor ebx, ebx
mov dword [ebp - 0x74], edi
xor esi, esi
xor edi, edi
jmp 0x42f849
sub esp, 0xc
mov al, byte [ebp - 0x80]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], esi
lea ecx, [ebp - 0x28]
call fcn.0044fdb0
jmp 0x42f826
mov edi, dword [ebp - 0x8c]
mov dword [edi], eax
jmp 0x42f8d0
int3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3