Function at 0x140020550
Capabilities:
Access the windows event log

Disassembly:
push rbp
push r12
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r14d, r14d
mov r12b, 1
mov qword [rsp + 0x58], r14
mov dword [rbp + 0x140], r12d
call fcn.14000cc30
cmp dword [rax + 8], 2
jne 0x140020fdf
mov qword [rsp + 0x4b0], rbx
mov qword [rsp + 0x4b8], rsi
mov qword [rsp + 0x4c0], rdi
mov qword [rsp + 0x488], r13
mov qword [rsp + 0x480], r15
call fcn.14001fd00
mov edi, eax
test eax, eax
je 0x1400205db
lea rcx, str.Error:_JhiGetRegistryValues___failed
call fcn.140003170
jmp 0x140020f42
call fcn.14000cc30
mov r12d, dword [rax + 0x58]
call fcn.14000cc30
mov r15, 0xffffffffffffffff
mov esi, dword [rax + 0x5c]
cmp esi, r15d
jne 0x14002074c
mov qword [rsp + 0x50], r15
xorps xmm0, xmm0
mov esi, r15d
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
test r12d, r12d
jne 0x14002062b
lea rcx, str.discoverVmType___transport_type_invalid._Aborting_discovery.
call fcn.140003170
jmp 0x140020722
lea rcx, str.Starting_VM_type_discovery...
call fcn.1400031b0
lea rdx, [rsp + 0x60]
mov ecx, r12d
call sym.jhi_service.exe_TEE_Transport_Create
test eax, eax
je 0x14002065b
mov edx, eax
lea rcx, str.AppletsManager::discoverVmType____failure_in_TEE_Transport_Create____teeCommStatus___d_n
call fcn.140003170
jmp 0x140020722
mov rax, qword [rsp + 0x68]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov edx, 0x2711
call qword [0x140069610]
test eax, eax
jne 0x140020688
lea esi, [rax + 2]
lea rcx, str.BHv2_detected.
jmp 0x1400206be
mov rax, qword [rsp + 0x68]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov edx, 0x2710
cmp r12d, 1
je 0x1400206aa
mov edx, 0x2712
call qword [0x140069610]
test eax, eax
jne 0x1400206ec
lea esi, [rax + 1]
lea rcx, str.BHv1_detected.
call fcn.1400031b0
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [0x140069610]
test eax, eax
je 0x1400206f8
mov edx, eax
lea rcx, str.AppletsManager::discoverVmType____failure_in_pfnDisconnect____teeCommStatus___d_n
call fcn.1400031b0
jmp 0x1400206f8
lea rcx, str.AppletsManager::discoverVmType____Couldnt_connect_to_either_BHv1_or_BHv2.
call fcn.140003170
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call qword [0x140069610]
test eax, eax
je 0x14002071d
mov edx, eax
lea rcx, str.AppletsManager::discoverVmType____failure_in_pfnTeardown____teeCommStatus___d_n
mov esi, r15d
call fcn.1400031b0
cmp esi, r15d
jne 0x14002073f
lea rcx, str.Error:_discoverVmType___failed
call fcn.140003170
mov r12d, dword [rbp + 0x140]
mov edi, 0x300
jmp 0x140020f42
call fcn.14000cc30
cmp esi, r15d
jle 0x14002074c
mov dword [rax + 0x5c], esi
cmp r12d, 1
je 0x14002093f
xor edx, edx
mov word [rbp + 0x151], r14w
mov r8d, 0x200
mov byte [rbp + 0x153], r14b
lea rcx, [rbp + 0x170]
mov qword [rbp + 0x160], r14
mov byte [rbp + 0x150], r14b
mov dword [rbp + 0x154], r14d
mov qword [rbp + 0x158], r15
call fcn.14003d8e0
mov ebx, r14d
cmp qword [0x140091810], rbx
jne 0x140020931
lea rdx, [rbp + 0x170]
call fcn.14001efd0
test al, al
jne 0x1400207c1
lea rcx, str.failed_getting_heci_device_details_n
jmp 0x1400208bf
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, [rbp + 0x170]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
cmp rax, r15
jne 0x140020869
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.error:__d
call fcn.1400031b0
mov qword [0x140091810], r15
mov rdi, r15
cmp ebx, 0x63
jge 0x140020844
lea rcx, str.JHI_SERVICE__Failed_to_get_heci_device_handle._nSleeping_then_retrying..._n
call fcn.1400031b0
mov ecx, 0x32
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [rbx + 2]
lea rcx, str.JHI_SERVICE__Attempt__i_to_get_heci_device_handle._n
call fcn.1400031b0
mov rdi, qword [0x140091810]
inc ebx
cmp ebx, 0x64
jl 0x1400207c1
cmp rdi, r15
jne 0x140020870
lea rcx, str.failed_to_get_heci_device_handle_n
call fcn.1400031b0
mov qword [0x140091810], r14
jmp 0x1400208c4
mov qword [0x140091810], rax
xor edx, edx
mov qword [0x140091808], r14
mov r8d, 0x1a0
lea rcx, [rbp - 0x60]
call fcn.14003d8e0
lea r9, [0x140091808]
mov dword [rbp - 0x60], 0x1a0
lea r8, [0x1400286a0]
mov dword [rbp - 0x58], 1
xor edx, edx
mov qword [rbp - 0x50], rdi
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Register_Notification]
test eax, eax
je 0x140020931
lea rcx, str.failed_to_register_heci_device_notification_n
call fcn.1400031b0
lea rcx, str.failed_to_register_for_HECI_events
call fcn.140003170
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140020920
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov r9d, 0xc0000005
mov dword [rsp + 0x30], r14d
mov rcx, rax
mov word [rsp + 0x28], r14w
lea edx, [r8 + 1]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.DLL_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_DeregisterEventSource]
mov r12d, dword [rbp + 0x140]
mov edi, 0x300
jmp 0x140020f42
lea rax, vtable.intel_dal::IFirmwareInfo.0
mov qword [rbp + 0x148], rax
mov ecx, esi
sub ecx, 1
je 0x140020a73
cmp ecx, 1
jne 0x140020f27
lea rcx, str.pluginRegister_start
call fcn.1400031b0
mov rax, qword gs:[0x58]
mov r13d, 4
add r13, qword [rax]
mov eax, dword [r13]
cmp dword [0x140093dec], eax
jle 0x140020a67
lea rcx, [0x140093dec]
call fcn.140038d08
cmp dword [0x140093dec], r15d
jne 0x140020a67
xorps xmm0, xmm0
mov qword [0x140093e70], 0xf
movups xmmword [0x140093e00], xmm0
lea rax, vtable.Jhi_Plugin_2::BeihaiPlugin.0
mov dword [0x140093e00], 3
movups xmmword [0x140093e10], xmm0
lea rcx, [0x1400681a0]
movups xmmword [0x140093e20], xmm0
movups xmmword [0x140093e30], xmm0
movups xmmword [0x140093df0], xmm0
mov qword [0x140093df0], rax
xor eax, eax
xorps xmm1, xmm1
mov qword [0x140093e38], rax
movups xmmword [0x140093e50], xmm0
mov byte [0x140093e58], r14b
movups xmmword [0x140093e60], xmm0
mov qword [0x140093e68], r14
movups xmmword [0x140093e40], xmm0
mov qword [0x140093e48], r14
movups xmmword [0x140093e08], xmm0
movups xmmword [0x140093e18], xmm1
movups xmmword [0x140093e28], xmm1
movups xmmword [0x140091860], xmm0
movups xmmword [0x140091870], xmm0
movups xmmword [0x140091880], xmm0
mov byte [0x140093e40], al
mov byte [0x140093e50], al
call fcn.14003908c
lea rcx, [0x140093dec]
call fcn.140038ca8
lea r14, [0x140093df0]
jmp 0x140020b39
lea rcx, str.pluginRegister_start
call fcn.1400031b0
mov rax, qword gs:[0x58]
mov r13d, 4
add r13, qword [rax]
mov eax, dword [r13]
cmp dword [0x140093de8], eax
jle 0x140020b32
lea rcx, [0x140093de8]
call fcn.140038d08
cmp dword [0x140093de8], r15d
jne 0x140020b32
xorps xmm0, xmm0
mov qword [0x140093dc4], r14
xorps xmm1, xmm1
mov qword [0x140093dd4], r14
lea rax, vtable.Jhi_Plugin_1::BeihaiPlugin.0
mov qword [0x140093db4], r14
lea rcx, [0x140068180]
mov qword [0x140093da0], rax
movups xmmword [0x140093db8], xmm0
mov qword [0x140093da8], r14
movups xmmword [0x140093dc8], xmm0
mov dword [0x140093db0], 2
movups xmmword [0x140093dd8], xmm0
movups xmmword [0x140091820], xmm1
movups xmmword [0x140091830], xmm1
movups xmmword [0x140091840], xmm1
call fcn.14003908c
lea rcx, [0x140093de8]
call fcn.140038ca8
lea r14, [0x140093da0]
xor edx, edx
lea rcx, str.pluginRegister_end__result__0x_X
call fcn.1400031b0
test r14, r14
je 0x140020f27
call fcn.14000cc30
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx]
mov qword [rbx + 0x50], r14
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov r8d, dword [0x1400917e0]
lea rax, [fcn.1400089c0]
mov edx, dword [reloc.WS2_32.dll_accept]
mov rcx, r14
mov qword [rbp - 0x70], rax
lea rax, [fcn.1400089f0]
mov qword [rbp - 0x68], rax
mov rax, qword [r14]
mov rax, qword [rax + 0xb0]
call qword [0x140069610]
mov rax, qword [r14]
lea r8, [rbp - 0x70]
mov edx, r12d
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [0x140069610]
mov edi, eax
test eax, eax
je 0x140020bd7
lea rcx, str.Error:_pfnSetTransport___failed
call fcn.1400031b0
jmp 0x140020f38
cmp r12d, 3
jne 0x140020bfc
call fcn.14000cc30
mov r12d, dword [rbp + 0x140]
mov ebx, 0
movzx r12d, r12b
cmp dword [rax + 0x5c], 2
cmove r12d, ebx
jmp 0x140020c05
mov r12d, dword [rbp + 0x140]
xor ebx, ebx
mov rax, qword [r14]
movzx edx, r12b
mov rcx, r14
mov rax, qword [rax]
call qword [0x140069610]
mov edi, eax
test eax, eax
je 0x140020c31
mov edx, eax
lea rcx, str.VM_plugin_Init_failure__with_ret_code:__08x
call fcn.1400031b0
jmp 0x140020f3f
call fcn.14000cc30
cmp word [rax + 0x60], 0
jne 0x140020de3
mov qword [rsp + 0x50], rbx
xor dil, dil
call fcn.14000cc30
cmp dword [rax + 0x5c], 2
jne 0x140020d51
mov rax, qword [r14]
lea r8, [rbp + 0x140]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], rbx
mov rcx, r14
mov dword [rbp + 0x140], ebx
mov rax, qword [rax + 0x88]
call qword [0x140069610]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140020d5f
mov r8d, dword [rbp + 0x140]
cmp r8d, 0xa0
je 0x140020cc0
mov edx, 0xa0
lea rcx, str.Unexpected_metadata_size._Expected:__d._Got:__d
call fcn.140003170
mov rcx, qword [rsp + 0x58]
call fcn.1400089f0
jmp 0x140020d5f
movups xmm0, xmmword [rcx]
lea rdx, [rbp - 0x60]
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.1400089f0
movzx eax, word [rbp - 8]
movzx edi, byte [rbp]
mov r15d, dword [rbp - 0x60]
mov word [rsp + 0x50], ax
movzx eax, word [rbp - 6]
mov word [rsp + 0x52], ax
movzx eax, word [rbp - 4]
mov word [rsp + 0x54], ax
movzx eax, word [rbp - 2]
mov word [rsp + 0x56], ax
jmp 0x140020d6b
lea rcx, [rsp + 0x50]
call fcn.140020390
test al, al
jne 0x140020d6b
lea rcx, str.Failed_to_get_FW_properties_from_FW.
call fcn.140003170
cmp word [rsp + 0x50], 0
jne 0x140020d7f
lea rcx, str.Got_0_as_major_version.
call fcn.140003170
call fcn.14000cc30
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x60], rcx
call fcn.14000cc30
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
movsx edx, dil
lea rcx, str.The_signature_version_is:__d
mov byte [rbx + 0x68], dil
call fcn.1400031b0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
call fcn.14000cc30
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx]
mov dword [rbx + 0x6c], r15d
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov eax, dword [r13]
cmp dword [0x140093c1c], eax
jle 0x140020e2f
lea rcx, [0x140093c1c]
call fcn.140038d08
cmp dword [0x140093c1c], 0xffffffff
jne 0x140020e2f
xorps xmm0, xmm0
lea rcx, [0x1400676f0]
xor eax, eax
movups xmmword [0x140093c20], xmm0
mov qword [0x140093c30], rax
call fcn.14003908c
lea rcx, [0x140093c1c]
call fcn.140038ca8
lea rcx, [0x140093c20]
call fcn.14001e360
mov edi, eax
test eax, eax
je 0x140020ea9
lea rcx, str.EventManager_Initialize_failed
call fcn.1400031b0
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140020f3f
xor r14d, r14d
xor r8d, r8d
mov qword [rsp + 0x40], r14
mov r9d, 0xc0000004
mov qword [rsp + 0x38], r14
mov rcx, rax
mov dword [rsp + 0x30], r14d
lea edx, [r8 + 1]
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.DLL_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_DeregisterEventSource]
jmp 0x140020f42
cmp esi, 2
jne 0x140020ebb
call fcn.140019930
mov rcx, rax
call fcn.14000ae50
call fcn.14000cc30
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx]
mov dword [rbx + 8], 0
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov r13, qword [rsp + 0x488]
mov eax, edi
mov rdi, qword [rsp + 0x4c0]
mov rsi, qword [rsp + 0x4b8]
mov rbx, qword [rsp + 0x4b0]
mov r15, qword [rsp + 0x480]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140038b50
add rsp, 0x490
pop r14
pop r12
pop rbp
ret
lea rcx, str.Error:_pluginRegister___failed
call fcn.140003170
mov edi, 0x601
mov r12d, dword [rbp + 0x140]
xor r14d, r14d
call fcn.14000cc30
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx]
mov rsi, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
test rsi, rsi
je 0x140020f7e
mov rax, qword [rsi]
movzx edx, r12b
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x140069610]
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140020fce
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov r9d, 0xc000000c
mov dword [rsp + 0x30], r14d
mov rcx, rax
mov word [rsp + 0x28], r14w
lea edx, [r8 + 1]
mov qword [rsp + 0x20], r14
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.140003170
jmp 0x140020ee1
mov eax, r14d
jmp 0x140020f0b