Function at 0x140021ea0
Capabilities:
Access the windows event log

Disassembly:
push rbp
push rsi
push r12
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x140093008]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor esi, esi
mov r12b, 1
mov qword [rsp + 0x78], rsi
call fcn.14000bb40
cmp dword [rax + 8], 2
jne 0x1400227db
mov qword [rsp + 0x500], rbx
mov qword [rsp + 0x508], rdi
mov qword [rsp + 0x510], r13
mov qword [rsp + 0x4d8], r14
mov qword [rsp + 0x4d0], r15
call fcn.1400213e0
mov edi, eax
test eax, eax
je 0x140021f22
lea rcx, str.Error:_JhiGetRegistryValues___failed
call fcn.140003010
jmp 0x140022745
call fcn.14000bb40
mov r14d, dword [rax + 0x58]
call fcn.14000bb40
mov r15d, dword [rax + 0x5c]
cmp r15d, 0xffffffff
jne 0x140021f6f
mov ecx, r14d
call fcn.140021c00
mov r15d, eax
cmp eax, 0xffffffff
jne 0x140021f60
lea rcx, str.Error:_discoverVmType___failed
call fcn.140003010
mov edi, 0x300
jmp 0x140022745
call fcn.14000bb40
cmp r15d, 2
ja 0x140021f6f
mov dword [rax + 0x5c], r15d
mov r13, 0xffffffffffffffff
cmp r14d, 1
je 0x1400220e7
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x200
call fcn.1400426d0
mov ebx, esi
cmp qword [0x140096690], rbx
jne 0x1400220e7
lea rdx, [rbp + 0x1c0]
call fcn.140020340
test al, al
jne 0x140021fc0
lea rcx, str.failed_getting_heci_device_details_n
jmp 0x1400220bd
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rbp + 0x1c0]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rdi, rax
cmp rax, r13
jne 0x140022067
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.error:__d
call fcn.140003050
mov qword [0x140096690], r13
mov rdi, r13
cmp ebx, 0x63
jge 0x140022042
lea rcx, str.JHI_SERVICE__Failed_to_get_heci_device_handle._nSleeping_then_retrying..._n
call fcn.140003050
mov ecx, 0x32
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea edx, [rbx + 2]
lea rcx, str.JHI_SERVICE__Attempt__i_to_get_heci_device_handle._n
call fcn.140003050
mov rdi, qword [0x140096690]
inc ebx
cmp ebx, 0x64
jl 0x140021fc0
cmp rdi, r13
jne 0x14002206e
lea rcx, str.failed_to_get_heci_device_handle_n
call fcn.140003050
mov qword [0x140096690], rsi
jmp 0x1400220c2
mov qword [0x140096690], rax
xor edx, edx
mov qword [0x140096688], rsi
mov r8d, 0x1a0
lea rcx, [rbp - 0x80]
call fcn.1400426d0
lea r9, [0x140096688]
mov dword [rbp - 0x80], 0x1a0
lea r8, [0x14002ce20]
mov dword [rbp - 0x78], 1
xor edx, edx
mov qword [rbp - 0x70], rdi
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Register_Notification]
test eax, eax
je 0x1400220e7
lea rcx, str.failed_to_register_heci_device_notification_n
call fcn.140003050
lea rcx, str.failed_to_register_for_HECI_events
call fcn.140003010
mov edx, 0xc0000005
mov ecx, 1
call fcn.14001eee0
mov edi, 0x300
jmp 0x140022745
mov ecx, r15d
sub ecx, 1
je 0x140022206
cmp ecx, 1
jne 0x140022734
lea rcx, str.pluginRegister_start
call fcn.140003050
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140098c8c], eax
jle 0x1400221fa
lea rcx, [0x140098c8c]
call fcn.14003d9a0
cmp dword [0x140098c8c], r13d
jne 0x1400221fa
mov qword [0x140098d08], rsi
lea rax, vtable.Jhi_Plugin_2::BeihaiPlugin.0
mov qword [0x140098c90], rax
lea rcx, [0x14006a340]
xor eax, eax
mov qword [0x140098d10], 0xf
mov qword [0x140098ca8], rax
mov qword [0x140098cb0], rax
mov qword [0x140098cb8], rax
mov qword [0x140098cc0], rax
mov qword [0x140098cc8], rax
mov qword [0x140098cd0], rax
mov qword [0x140096768], rax
mov qword [0x140096770], rax
mov qword [0x140096778], rax
mov qword [0x140096780], rax
mov qword [0x140096788], rax
mov qword [0x140096790], rax
mov qword [0x140098cd8], rax
mov byte [0x140098cf8], sil
mov byte [0x140098ce0], al
mov byte [0x140098cf0], al
mov qword [0x140098ce8], rsi
mov dword [0x140098ca0], 3
call fcn.14003ddd0
lea rcx, [0x140098c8c]
call fcn.14003d940
lea rsi, [0x140098c90]
jmp 0x1400222d8
lea rcx, str.pluginRegister_start
call fcn.140003050
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140098c88], eax
jle 0x1400222d1
lea rcx, [0x140098c88]
call fcn.14003d9a0
cmp dword [0x140098c88], r13d
jne 0x1400222d1
lea rax, vtable.Jhi_Plugin_1::BeihaiPlugin.0
mov dword [0x140098c50], 2
mov qword [0x140098c40], rax
lea rcx, [0x14006a300]
xor eax, eax
mov qword [0x140098c58], rax
mov qword [0x140098c60], rax
mov qword [0x140098c68], rax
mov qword [0x140098c70], rax
mov qword [0x140098c78], rax
mov qword [0x140098c80], rax
mov qword [0x1400966e0], rax
mov qword [0x1400966e8], rax
mov qword [0x1400966f0], rax
mov qword [0x1400966f8], rax
mov qword [0x140096700], rax
mov qword [0x140096708], rax
call fcn.14003ddd0
lea rcx, [0x140098c88]
call fcn.14003d940
lea rsi, [0x140098c40]
xor edx, edx
lea rcx, str.pluginRegister_end__result__0x_X
call fcn.140003050
test rsi, rsi
je 0x140022734
call fcn.14000bb40
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx]
mov qword [rbx + 0x50], rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
mov r8d, dword [0x140096680]
lea rax, [fcn.140007e80]
mov edx, dword [reloc.WS2_32.dll_accept]
mov rcx, rsi
mov qword [rsp + 0x68], rax
lea rax, [fcn.140007ec0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsi]
call qword [rax + 0xb0]
mov rax, qword [rsi]
lea r8, [rsp + 0x68]
mov edx, r14d
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
mov edi, eax
test eax, eax
je 0x14002236b
lea rcx, str.Error:_pfnSetTransport___failed
call fcn.140003050
jmp 0x140022745
cmp r14d, 3
jne 0x140022389
call fcn.14000bb40
movzx r12d, r12b
mov ebx, 0
cmp dword [rax + 0x5c], 2
cmove r12d, ebx
jmp 0x14002238b
xor ebx, ebx
mov rax, qword [rsi]
movzx edx, r12b
mov rcx, rsi
call qword [rax]
mov edi, eax
test eax, eax
je 0x1400223b0
mov edx, eax
lea rcx, str.VM_plugin_Init_failure__with_ret_code:__08x
call fcn.140003050
jmp 0x140022745
call fcn.14000bb40
cmp word [rax + 0x60], 0
jne 0x140022683
xor eax, eax
xor r14b, r14b
mov qword [rsp + 0x50], rax
call fcn.14000bb40
cmp dword [rax + 0x5c], 2
jne 0x1400224b4
xor edx, edx
lea rcx, [rbp + 0x120]
mov r8d, 0xa0
call fcn.1400426d0
mov rax, qword [rsi]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
mov rcx, rsi
mov dword [rsp + 0x58], ebx
call qword [rax + 0x88]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140022540
mov r8d, dword [rsp + 0x58]
cmp r8d, 0xa0
je 0x140022454
mov edx, 0xa0
lea rcx, str.Unexpected_metadata_size._Expected:__d._Got:__d
call fcn.140003010
mov rcx, qword [rsp + 0x60]
call fcn.140007ec0
lea rcx, str.Failed_to_get_FW_properties_from_FW.
call fcn.140003010
jmp 0x14002260b
mov r8d, 0xa0
lea rcx, [rbp + 0x120]
call fcn.140041940
mov rcx, qword [rsp + 0x60]
call fcn.140007ec0
movzx eax, word [rbp + 0x178]
movzx r14d, byte [rbp + 0x180]
mov r13d, dword [rbp + 0x120]
mov word [rsp + 0x50], ax
movzx eax, word [rbp + 0x17a]
mov word [rsp + 0x52], ax
movzx eax, word [rbp + 0x17c]
mov word [rsp + 0x54], ax
movzx eax, word [rbp + 0x17e]
mov word [rsp + 0x56], ax
jmp 0x14002260b
call fcn.14000bb40
lea rdx, [0x14006ba50]
cmp dword [rax + 0x58], 1
jne 0x1400224eb
mov ecx, 0x40
call fcn.14003de1c
mov rbx, rax
test rax, rax
je 0x1400224e4
lea rax, vtable.intel_dal::FWInfoWin32Sockets.0
mov qword [rbx], rax
jmp 0x14002252c
mov edx, 0x40
jmp 0x14002251e
mov ecx, 0x20
call fcn.14003de1c
mov rbx, rax
test rax, rax
je 0x140022519
lea rax, vtable.intel_dal::FWInfoWin32.0
mov byte [rbx + 8], 0
mov qword [rbx], rax
xor eax, eax
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x18], eax
mov qword [rbx + 0x10], r13
jmp 0x14002252c
mov edx, 0x20
xor ebx, ebx
lea rcx, str.JHI_memory_allocation_of_size__d_failed_.
call fcn.140003010
xor sil, sil
test rbx, rbx
jne 0x140022551
lea rcx, str.Failed_to_create_IFirmwareInfo_instance_n
call fcn.140003050
lea rcx, str.Failed_to_get_FW_properties_from_FW.
call fcn.140003010
jmp 0x14002260b
xor dil, dil
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
test al, al
jne 0x14002256e
lea rcx, str.Failed_to_connect_to_FU_client_n
call fcn.140003050
jmp 0x1400225bb
mov rax, qword [rbx]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x14002258d
cmp word [rsp + 0x50], 0
je 0x14002258d
mov sil, 1
jmp 0x14002259d
movzx edx, dil
lea rcx, str.Failed_to_get_FW_Version__attempt_number__d_n
call fcn.140003050
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
jne 0x1400225b6
lea rcx, str.Failed_to_disconnect_from_FU_client_n
call fcn.140003050
test sil, sil
jne 0x1400225c4
inc dil
cmp dil, 3
jb 0x140022554
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x18]
test sil, sil
jne 0x1400225e5
lea rcx, str.Failed_getting_FW_version_from_FW
call fcn.140003050
jmp 0x14002260b
movzx eax, word [rsp + 0x56]
lea rcx, str.FW_Version:_nMajor:__d_nMinor:__d_nHotfix:__d_nBuild:__d
movzx r9d, word [rsp + 0x54]
movzx r8d, word [rsp + 0x52]
movzx edx, word [rsp + 0x50]
mov dword [rsp + 0x20], eax
call fcn.140003050
cmp word [rsp + 0x50], 0
jne 0x14002261f
lea rcx, str.Got_0_as_major_version.
call fcn.140003010
mov rbx, qword [rsp + 0x50]
call fcn.14000bb40
mov qword [rax + 0x60], rbx
call fcn.14000bb40
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
movsx edx, r14b
lea rcx, str.The_signature_version_is:__d
mov byte [rbx + 0x68], r14b
call fcn.140003050
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
call fcn.14000bb40
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx]
mov dword [rbx + 0x6c], r13d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
call fcn.14001d560
mov rcx, rax
call fcn.14001f900
mov edi, eax
test eax, eax
je 0x1400226b6
lea rcx, str.EventManager_Initialize_failed
call fcn.140003050
mov edx, 0xc0000004
mov ecx, 1
call fcn.14001eee0
jmp 0x140022745
cmp r15d, 2
jne 0x1400226c9
call fcn.14001aac0
mov rcx, rax
call fcn.14000a7c0
call fcn.14000bb40
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx]
mov dword [rbx + 8], 0
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
mov r14, qword [rsp + 0x4d8]
mov eax, edi
mov rdi, qword [rsp + 0x508]
mov r13, qword [rsp + 0x510]
mov rbx, qword [rsp + 0x500]
mov r15, qword [rsp + 0x4d0]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.14003d770
add rsp, 0x4e0
pop r12
pop rsi
pop rbp
ret
lea rcx, str.Error:_pluginRegister___failed
call fcn.140003010
mov edi, 0x601
call fcn.14000bb40
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx]
mov rsi, qword [rbx + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test rsi, rsi
je 0x14002277a
mov rax, qword [rsi]
movzx edx, r12b
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x1400227ca
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov r9d, 0xc000000c
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], eax
mov word [rsp + 0x28], ax
lea edx, [r8 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, str.JHI_init_failed
call fcn.140003010
jmp 0x1400226ef
mov eax, esi
jmp 0x140022719