Function at 0x7ff649560550
Capabilities:
Access the windows event log

Disassembly:
push rbp
push r12
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x7ff6495ce010]
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.7ff64954cc30
cmp dword [rax + 8], 2
jne 0x7ff649560fdf
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.7ff64955fd00
mov edi, eax
test eax, eax
je 0x7ff6495605db
lea rcx, str.Error:_JhiGetRegistryValues___failed
call fcn.7ff649543170
jmp 0x7ff649560f42
call fcn.7ff64954cc30
mov r12d, dword [rax + 0x58]
call fcn.7ff64954cc30
mov r15, 0xffffffffffffffff
mov esi, dword [rax + 0x5c]
cmp esi, r15d
jne 0x7ff64956074c
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 0x7ff64956062b
lea rcx, str.discoverVmType___transport_type_invalid._Aborting_discovery.
call fcn.7ff649543170
jmp 0x7ff649560722
lea rcx, str.Starting_VM_type_discovery...
call fcn.7ff6495431b0
lea rdx, [rsp + 0x60]
mov ecx, r12d
call sym.jhi_service.exe_TEE_Transport_Create
test eax, eax
je 0x7ff64956065b
mov edx, eax
lea rcx, str.AppletsManager::discoverVmType____failure_in_TEE_Transport_Create____teeCommStatus___d_n
call fcn.7ff649543170
jmp 0x7ff649560722
mov rax, qword [rsp + 0x68]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov edx, 0x2711
call qword [0x7ff6495a9610]
test eax, eax
jne 0x7ff649560688
lea esi, [rax + 2]
lea rcx, str.BHv2_detected.
jmp 0x7ff6495606be
mov rax, qword [rsp + 0x68]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov edx, 0x2710
cmp r12d, 1
je 0x7ff6495606aa
mov edx, 0x2712
call qword [0x7ff6495a9610]
test eax, eax
jne 0x7ff6495606ec
lea esi, [rax + 1]
lea rcx, str.BHv1_detected.
call fcn.7ff6495431b0
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [0x7ff6495a9610]
test eax, eax
je 0x7ff6495606f8
mov edx, eax
lea rcx, str.AppletsManager::discoverVmType____failure_in_pfnDisconnect____teeCommStatus___d_n
call fcn.7ff6495431b0
jmp 0x7ff6495606f8
lea rcx, str.AppletsManager::discoverVmType____Couldnt_connect_to_either_BHv1_or_BHv2.
call fcn.7ff649543170
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call qword [0x7ff6495a9610]
test eax, eax
je 0x7ff64956071d
mov edx, eax
lea rcx, str.AppletsManager::discoverVmType____failure_in_pfnTeardown____teeCommStatus___d_n
mov esi, r15d
call fcn.7ff6495431b0
cmp esi, r15d
jne 0x7ff64956073f
lea rcx, str.Error:_discoverVmType___failed
call fcn.7ff649543170
mov r12d, dword [rbp + 0x140]
mov edi, 0x300
jmp 0x7ff649560f42
call fcn.7ff64954cc30
cmp esi, r15d
jle 0x7ff64956074c
mov dword [rax + 0x5c], esi
cmp r12d, 1
je 0x7ff64956093f
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.7ff64957d8e0
mov ebx, r14d
cmp qword [0x7ff6495d1810], rbx
jne 0x7ff649560931
lea rdx, [rbp + 0x170]
call fcn.7ff64955efd0
test al, al
jne 0x7ff6495607c1
lea rcx, str.failed_getting_heci_device_details_n
jmp 0x7ff6495608bf
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 0x7ff649560869
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.error:__d
call fcn.7ff6495431b0
mov qword [0x7ff6495d1810], r15
mov rdi, r15
cmp ebx, 0x63
jge 0x7ff649560844
lea rcx, str.JHI_SERVICE__Failed_to_get_heci_device_handle._nSleeping_then_retrying..._n
call fcn.7ff6495431b0
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.7ff6495431b0
mov rdi, qword [0x7ff6495d1810]
inc ebx
cmp ebx, 0x64
jl 0x7ff6495607c1
cmp rdi, r15
jne 0x7ff649560870
lea rcx, str.failed_to_get_heci_device_handle_n
call fcn.7ff6495431b0
mov qword [0x7ff6495d1810], r14
jmp 0x7ff6495608c4
mov qword [0x7ff6495d1810], rax
xor edx, edx
mov qword [0x7ff6495d1808], r14
mov r8d, 0x1a0
lea rcx, [rbp - 0x60]
call fcn.7ff64957d8e0
lea r9, [0x7ff6495d1808]
mov dword [rbp - 0x60], 0x1a0
lea r8, [0x7ff6495686a0]
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 0x7ff649560931
lea rcx, str.failed_to_register_heci_device_notification_n
call fcn.7ff6495431b0
lea rcx, str.failed_to_register_for_HECI_events
call fcn.7ff649543170
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x7ff649560920
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 0x7ff649560f42
lea rax, vtable.intel_dal::IFirmwareInfo.0
mov qword [rbp + 0x148], rax
mov ecx, esi
sub ecx, 1
je 0x7ff649560a73
cmp ecx, 1
jne 0x7ff649560f27
lea rcx, str.pluginRegister_start
call fcn.7ff6495431b0
mov rax, qword gs:[0x58]
mov r13d, 4
add r13, qword [rax]
mov eax, dword [r13]
cmp dword [0x7ff6495d3dec], eax
jle 0x7ff649560a67
lea rcx, [0x7ff6495d3dec]
call fcn.7ff649578d08
cmp dword [0x7ff6495d3dec], r15d
jne 0x7ff649560a67
xorps xmm0, xmm0
mov qword [0x7ff6495d3e70], 0xf
movups xmmword [0x7ff6495d3e00], xmm0
lea rax, vtable.Jhi_Plugin_2::BeihaiPlugin.0
mov dword [0x7ff6495d3e00], 3
movups xmmword [0x7ff6495d3e10], xmm0
lea rcx, [0x7ff6495a81a0]
movups xmmword [0x7ff6495d3e20], xmm0
movups xmmword [0x7ff6495d3e30], xmm0
movups xmmword [0x7ff6495d3df0], xmm0
mov qword [0x7ff6495d3df0], rax
xor eax, eax
xorps xmm1, xmm1
mov qword [0x7ff6495d3e38], rax
movups xmmword [0x7ff6495d3e50], xmm0
mov byte [0x7ff6495d3e58], r14b
movups xmmword [0x7ff6495d3e60], xmm0
mov qword [0x7ff6495d3e68], r14
movups xmmword [0x7ff6495d3e40], xmm0
mov qword [0x7ff6495d3e48], r14
movups xmmword [0x7ff6495d3e08], xmm0
movups xmmword [0x7ff6495d3e18], xmm1
movups xmmword [0x7ff6495d3e28], xmm1
movups xmmword [0x7ff6495d1860], xmm0
movups xmmword [0x7ff6495d1870], xmm0
movups xmmword [0x7ff6495d1880], xmm0
mov byte [0x7ff6495d3e40], al
mov byte [0x7ff6495d3e50], al
call fcn.7ff64957908c
lea rcx, [0x7ff6495d3dec]
call fcn.7ff649578ca8
lea r14, [0x7ff6495d3df0]
jmp 0x7ff649560b39
lea rcx, str.pluginRegister_start
call fcn.7ff6495431b0
mov rax, qword gs:[0x58]
mov r13d, 4
add r13, qword [rax]
mov eax, dword [r13]
cmp dword [0x7ff6495d3de8], eax
jle 0x7ff649560b32
lea rcx, [0x7ff6495d3de8]
call fcn.7ff649578d08
cmp dword [0x7ff6495d3de8], r15d
jne 0x7ff649560b32
xorps xmm0, xmm0
mov qword [0x7ff6495d3dc4], r14
xorps xmm1, xmm1
mov qword [0x7ff6495d3dd4], r14
lea rax, vtable.Jhi_Plugin_1::BeihaiPlugin.0
mov qword [0x7ff6495d3db4], r14
lea rcx, [0x7ff6495a8180]
mov qword [0x7ff6495d3da0], rax
movups xmmword [0x7ff6495d3db8], xmm0
mov qword [0x7ff6495d3da8], r14
movups xmmword [0x7ff6495d3dc8], xmm0
mov dword [0x7ff6495d3db0], 2
movups xmmword [0x7ff6495d3dd8], xmm0
movups xmmword [0x7ff6495d1820], xmm1
movups xmmword [0x7ff6495d1830], xmm1
movups xmmword [0x7ff6495d1840], xmm1
call fcn.7ff64957908c
lea rcx, [0x7ff6495d3de8]
call fcn.7ff649578ca8
lea r14, [0x7ff6495d3da0]
xor edx, edx
lea rcx, str.pluginRegister_end__result__0x_X
call fcn.7ff6495431b0
test r14, r14
je 0x7ff649560f27
call fcn.7ff64954cc30
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 [0x7ff6495d17e0]
lea rax, [fcn.7ff6495489c0]
mov edx, dword [0x7ff6495cec40]
mov rcx, r14
mov qword [rbp - 0x70], rax
lea rax, [fcn.7ff6495489f0]
mov qword [rbp - 0x68], rax
mov rax, qword [r14]
mov rax, qword [rax + 0xb0]
call qword [0x7ff6495a9610]
mov rax, qword [r14]
lea r8, [rbp - 0x70]
mov edx, r12d
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [0x7ff6495a9610]
mov edi, eax
test eax, eax
je 0x7ff649560bd7
lea rcx, str.Error:_pfnSetTransport___failed
call fcn.7ff6495431b0
jmp 0x7ff649560f38
cmp r12d, 3
jne 0x7ff649560bfc
call fcn.7ff64954cc30
mov r12d, dword [rbp + 0x140]
mov ebx, 0
movzx r12d, r12b
cmp dword [rax + 0x5c], 2
cmove r12d, ebx
jmp 0x7ff649560c05
mov r12d, dword [rbp + 0x140]
xor ebx, ebx
mov rax, qword [r14]
movzx edx, r12b
mov rcx, r14
mov rax, qword [rax]
call qword [0x7ff6495a9610]
mov edi, eax
test eax, eax
je 0x7ff649560c31
mov edx, eax
lea rcx, str.VM_plugin_Init_failure__with_ret_code:__08x
call fcn.7ff6495431b0
jmp 0x7ff649560f3f
call fcn.7ff64954cc30
cmp word [rax + 0x60], 0
jne 0x7ff649560de3
mov qword [rsp + 0x50], rbx
xor dil, dil
call fcn.7ff64954cc30
cmp dword [rax + 0x5c], 2
jne 0x7ff649560d51
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 [0x7ff6495a9610]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x7ff649560d5f
mov r8d, dword [rbp + 0x140]
cmp r8d, 0xa0
je 0x7ff649560cc0
mov edx, 0xa0
lea rcx, str.Unexpected_metadata_size._Expected:__d._Got:__d
call fcn.7ff649543170
mov rcx, qword [rsp + 0x58]
call fcn.7ff6495489f0
jmp 0x7ff649560d5f
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.7ff6495489f0
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 0x7ff649560d6b
lea rcx, [rsp + 0x50]
call fcn.7ff649560390
test al, al
jne 0x7ff649560d6b
lea rcx, str.Failed_to_get_FW_properties_from_FW.
call fcn.7ff649543170
cmp word [rsp + 0x50], 0
jne 0x7ff649560d7f
lea rcx, str.Got_0_as_major_version.
call fcn.7ff649543170
call fcn.7ff64954cc30
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x60], rcx
call fcn.7ff64954cc30
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.7ff6495431b0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
call fcn.7ff64954cc30
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 [0x7ff6495d3c1c], eax
jle 0x7ff649560e2f
lea rcx, [0x7ff6495d3c1c]
call fcn.7ff649578d08
cmp dword [0x7ff6495d3c1c], 0xffffffff
jne 0x7ff649560e2f
xorps xmm0, xmm0
lea rcx, [0x7ff6495a76f0]
xor eax, eax
movups xmmword [0x7ff6495d3c20], xmm0
mov qword [0x7ff6495d3c30], rax
call fcn.7ff64957908c
lea rcx, [0x7ff6495d3c1c]
call fcn.7ff649578ca8
lea rcx, [0x7ff6495d3c20]
call fcn.7ff64955e360
mov edi, eax
test eax, eax
je 0x7ff649560ea9
lea rcx, str.EventManager_Initialize_failed
call fcn.7ff6495431b0
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x7ff649560f3f
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 0x7ff649560f42
cmp esi, 2
jne 0x7ff649560ebb
call fcn.7ff649559930
mov rcx, rax
call fcn.7ff64954ae50
call fcn.7ff64954cc30
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.7ff649578b50
add rsp, 0x490
pop r14
pop r12
pop rbp
ret
lea rcx, str.Error:_pluginRegister___failed
call fcn.7ff649543170
mov edi, 0x601
mov r12d, dword [rbp + 0x140]
xor r14d, r14d
call fcn.7ff64954cc30
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 0x7ff649560f7e
mov rax, qword [rsi]
movzx edx, r12b
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x7ff6495a9610]
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x7ff649560fce
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.7ff649543170
jmp 0x7ff649560ee1
mov eax, r14d
jmp 0x7ff649560f0b