Function at 0x140021ef0
Capabilities:
Access the windows event log

Disassembly:
push rbp
push r13
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x140092008]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor r13d, r13d
mov r15b, 1
mov qword [rsp + 0x78], r13
call fcn.14000baa0
cmp dword [rax + 8], 2
jne 0x1400226a6
mov qword [rsp + 0x3a0], rbx
mov qword [rsp + 0x3a8], rsi
mov qword [rsp + 0x3b0], rdi
mov qword [rsp + 0x378], r12
mov qword [rsp + 0x370], r14
call fcn.140021290
mov edi, eax
test eax, eax
je 0x140021f74
lea rcx, str.Error:_JhiGetRegistryValues___failed
call fcn.140003010
jmp 0x140022610
call fcn.14000baa0
mov r12d, dword [rax + 0x58]
call fcn.14000baa0
mov r14d, dword [rax + 0x5c]
cmp r14d, 0xffffffff
jne 0x140021fc1
mov ecx, r12d
call fcn.140021ab0
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140021fb2
lea rcx, str.Error:_discoverVmType___failed
call fcn.140003010
mov edi, 0x300
jmp 0x140022610
call fcn.14000baa0
cmp r14d, 2
ja 0x140021fc1
mov dword [rax + 0x5c], r14d
cmp r12d, 1
je 0x140022144
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x200
call fcn.140041d80
mov ebx, r13d
cmp qword [0x140095690], rbx
jne 0x140022144
lea rdx, [rbp + 0x60]
call fcn.1400201f0
test al, al
jne 0x140022010
lea rcx, str.failed_getting_heci_device_details_n
jmp 0x14002211a
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea rcx, [rbp + 0x60]
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]
cmp rax, 0xffffffffffffffff
jne 0x1400220b8
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 rax, 0xffffffffffffffff
mov qword [0x140095690], rax
cmp ebx, 0x63
jge 0x140022092
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 rax, qword [0x140095690]
inc ebx
cmp ebx, 0x64
jl 0x140022010
cmp rax, 0xffffffffffffffff
jne 0x1400220bf
lea rcx, str.failed_to_get_heci_device_handle_n
call fcn.140003050
mov qword [0x140095690], r13
jmp 0x14002211f
mov qword [0x140095690], rax
xor ecx, ecx
mov qword [0x140095688], r13
mov qword [rbp - 0x80], rcx
lea rdx, [rbp - 0x80]
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x68], rcx
lea r8d, [rcx + 1]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], rcx
mov rcx, qword [0x140095698]
mov dword [rbp - 0x80], 0x38
mov dword [rbp - 0x7c], 6
mov qword [rbp - 0x70], rax
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [0x140095688], rax
test rax, rax
jne 0x140022144
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.14001ed90
mov edi, 0x300
jmp 0x140022610
mov ecx, r14d
sub ecx, 1
je 0x140022263
cmp ecx, 1
jne 0x1400225ff
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 [0x140097c8c], eax
jle 0x140022257
lea rcx, [0x140097c8c]
call fcn.14003d050
cmp dword [0x140097c8c], 0xffffffff
jne 0x140022257
mov qword [0x140097d08], r13
lea rax, vtable.Jhi_Plugin_2::BeihaiPlugin.0
mov qword [0x140097c90], rax
lea rcx, [0x1400699f0]
xor eax, eax
mov qword [0x140097d10], 0xf
mov qword [0x140097ca8], rax
mov qword [0x140097cb0], rax
mov qword [0x140097cb8], rax
mov qword [0x140097cc0], rax
mov qword [0x140097cc8], rax
mov qword [0x140097cd0], rax
mov qword [0x140095768], rax
mov qword [0x140095770], rax
mov qword [0x140095778], rax
mov qword [0x140095780], rax
mov qword [0x140095788], rax
mov qword [0x140095790], rax
mov qword [0x140097cd8], rax
mov byte [0x140097cf8], r13b
mov byte [0x140097ce0], al
mov byte [0x140097cf0], al
mov qword [0x140097ce8], r13
mov dword [0x140097ca0], 3
call fcn.14003d480
lea rcx, [0x140097c8c]
call fcn.14003cff0
lea rsi, [0x140097c90]
jmp 0x140022335
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 [0x140097c88], eax
jle 0x14002232e
lea rcx, [0x140097c88]
call fcn.14003d050
cmp dword [0x140097c88], 0xffffffff
jne 0x14002232e
lea rax, vtable.Jhi_Plugin_1::BeihaiPlugin.0
mov dword [0x140097c50], 2
mov qword [0x140097c40], rax
lea rcx, [0x1400699b0]
xor eax, eax
mov qword [0x140097c58], rax
mov qword [0x140097c60], rax
mov qword [0x140097c68], rax
mov qword [0x140097c70], rax
mov qword [0x140097c78], rax
mov qword [0x140097c80], rax
mov qword [0x1400956e0], rax
mov qword [0x1400956e8], rax
mov qword [0x1400956f0], rax
mov qword [0x1400956f8], rax
mov qword [0x140095700], rax
mov qword [0x140095708], rax
call fcn.14003d480
lea rcx, [0x140097c88]
call fcn.14003cff0
lea rsi, [0x140097c40]
xor edx, edx
lea rcx, str.pluginRegister_end__result__0x_X
call fcn.140003050
test rsi, rsi
je 0x1400225ff
call fcn.14000baa0
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 [0x140095680]
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, r12d
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
mov edi, eax
test eax, eax
je 0x1400223c8
lea rcx, str.Error:_pfnSetTransport___failed
call fcn.140003050
jmp 0x140022610
cmp r12d, 3
jne 0x1400223df
call fcn.14000baa0
movzx r15d, r15b
cmp dword [rax + 0x5c], 2
cmove r15d, r13d
mov rax, qword [rsi]
movzx edx, r15b
mov rcx, rsi
call qword [rax]
mov edi, eax
test eax, eax
je 0x140022404
mov edx, eax
lea rcx, str.VM_plugin_Init_failure__with_ret_code:__08x
call fcn.140003050
jmp 0x140022610
call fcn.14000baa0
cmp word [rax + 0x60], r13w
jne 0x140022550
call fcn.14000baa0
cmp dword [rax + 0x5c], 2
jne 0x14002252e
mov rax, qword [rsi]
lea r8, [rsp + 0x50]
xor ebx, ebx
mov qword [rsp + 0x60], r13
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x58], rbx
mov rcx, rsi
mov dword [rsp + 0x50], r13d
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140022536
mov r8d, dword [rsp + 0x50]
cmp r8d, 0xa0
je 0x140022486
mov edx, 0xa0
lea rcx, str.Unexpected_metadata_size._Expected:__d._Got:__d
call fcn.140003010
mov rcx, qword [rsp + 0x60]
call fcn.140007ec0
jmp 0x140022536
movups xmm0, xmmword [rcx]
lea rdx, [rbp - 0x40]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmm1, xmmword [rcx + 0x80]
movups xmmword [rdx + 0x60], xmm0
movups xmm0, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x70], xmm0
movups xmm0, xmmword [rcx + 0x90]
movups xmmword [rdx + 0x80], xmm1
movups xmmword [rdx + 0x90], xmm0
call fcn.140007ec0
movzx edx, word [rbp + 0x1c]
lea rcx, str.Successfully_retrieved_FW_version_from_FW:__d._d._d._d
movzx r10d, word [rbp + 0x18]
mov r9d, edx
movzx eax, word [rbp + 0x1e]
movzx r8d, word [rbp + 0x1a]
mov word [rsp + 0x5c], dx
mov edx, r10d
mov word [rsp + 0x58], r10w
mov word [rsp + 0x5a], r8w
mov word [rsp + 0x5e], ax
mov dword [rsp + 0x20], eax
call fcn.140003050
mov rbx, qword [rsp + 0x58]
jmp 0x140022536
call fcn.140021d50
mov rbx, rax
test bx, bx
jne 0x140022547
lea rcx, str.Failed_getting_FW_version_from_FW_or_got_0_as_major_version.
call fcn.140003010
call fcn.14000baa0
mov qword [rax + 0x60], rbx
call fcn.14001d410
mov rcx, rax
call fcn.14001f7b0
mov edi, eax
test eax, eax
je 0x140022583
lea rcx, str.EventManager_Initialize_failed
call fcn.140003050
mov edx, 0xc0000004
mov ecx, 1
call fcn.14001ed90
jmp 0x140022610
cmp r14d, 2
jne 0x140022596
call fcn.14001a950
mov rcx, rax
call fcn.14000a720
call fcn.14000baa0
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], r13d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
mov r12, qword [rsp + 0x378]
mov eax, edi
mov rdi, qword [rsp + 0x3b0]
mov rsi, qword [rsp + 0x3a8]
mov rbx, qword [rsp + 0x3a0]
mov r14, qword [rsp + 0x370]
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14003ce20
add rsp, 0x380
pop r15
pop r13
pop rbp
ret
lea rcx, str.Error:_pluginRegister___failed
call fcn.140003010
mov edi, 0x601
call fcn.14000baa0
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 0x140022645
mov rax, qword [rsi]
movzx edx, r15b
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 0x140022695
mov qword [rsp + 0x40], r13
xor r8d, r8d
mov qword [rsp + 0x38], r13
mov r9d, 0xc000000c
mov dword [rsp + 0x30], r13d
mov rcx, rax
mov word [rsp + 0x28], r13w
lea edx, [r8 + 1]
mov qword [rsp + 0x20], r13
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 0x1400225b9
mov eax, r13d
jmp 0x1400225e3