Function at 0x140022da8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x7f0
mov qword [rax - 0x738], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rsp + 0x7e0], rax
mov rsi, rcx
cmp dword [rcx + 0x378], 0
je 0x140022df2
mov edx, 4
call fcn.140023b00
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1400a4274], eax
mov edx, 0x28
lea r14d, [rdx + 0x18]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea edi, [r14 - 0x3f]
test rax, rax
je 0x140022e84
mov edx, edi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140022e7b
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140022e7b
mov dword [rsp + 0xb8], Ordinal_30
mov qword [rsp + 0xc0], rbx
mov dword [rsp + 0xc8], edi
lea r9, str.GlobalINTEL_WIFI_LAN_ADAPTER_SWITCHING
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400a3e30], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa0], xmm1
and qword [rsp + 0xb0], 0
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.14002020c
and qword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov r8d, edi
mov edx, 0x14
lea rcx, [0x1400a3f00]
call fcn.140021764
lea rcx, [rsp + 0x110]
call fcn.140040098
mov edx, 0x4000
lea rcx, [rsp + 0x110]
call fcn.140040154
test eax, eax
je 0x140022f7a
mov dword [rsp + 0x60], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400a3e28], rax
test rax, rax
je 0x140022f7a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [0x140019af4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400a3de8], rax
call fcn.140027d80
test eax, eax
je 0x140022faf
mov byte [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, str.iAMT___Failed_to_start_IAMTMonitor___Critical_Error
mov r8d, 0x8004d737
mov edx, r14d
mov ecx, dword [0x1400a3b30]
call sub.TraceAPI.DLL_EvTraceString
call fcn.14001920c
call fcn.14001ef64
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x140071288]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140071390]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rbx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400a3df0], rax
test rbx, rbx
je 0x140023019
test rax, rax
je 0x140023019
mov rcx, rbx
call fcn.140019690
mov rcx, rbx
call fcn.1400195c0
lea r14, str.EvtEng.cpp
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x525
lea r8, str.AT6Evt___StartAT6Thread
mov r15d, 0x35
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.140006d78
call fcn.140012d20
lea rcx, [rsp + 0x78]
call fcn.140026694
nop
mov edx, 0x4000
lea rcx, [rsp + 0x110]
call fcn.140040154
mov dword [0x1400a3ec0], eax
lea rcx, [rsp + 0x78]
call fcn.1400267e0
mov qword [rsp + 0x50], r14
mov edx, r15d
lea rcx, [rsp + 0x50]
test eax, eax
jne 0x140023102
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], 0x532
lea r8, str.PROFILEIMPORTTHREAD:_Calling_to_create_ProfileImportThread_n
call fcn.140006d78
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [0x1400157ec]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400a3de0], rax
mov qword [rsp + 0x50], r14
mov edx, r15d
lea rcx, [rsp + 0x50]
test rax, rax
jne 0x1400230f1
mov dword [rsp + 0x58], 0x537
lea r8, str.PROFILEIMPORTTHREAD:_FAILED_to_create_thread_n
jmp 0x140023111
mov dword [rsp + 0x58], 0x53b
lea r8, str.PROFILEIMPORTTHREAD:_SUCCESSFULLY_created_thread_n
jmp 0x140023111
mov dword [rsp + 0x58], 0x540
lea r8, str.Profile_Autoimport_Disabled_n
call fcn.140006d78
test rbx, rbx
je 0x140023155
mov rcx, rbx
call fcn.14001984c
lea rcx, [rsp + 0x1b0]
call fcn.140040098
mov edx, 0x100000
lea rcx, [rsp + 0x1b0]
call fcn.140040154
test eax, eax
jne 0x140023155
lea rdx, [0x1400a3e30]
mov rcx, rbx
call fcn.140019518
cmp dword [0x1400a3ec0], 0
je 0x140023165
mov ecx, edi
call fcn.1400195fc
lea r8, [rsi + 0x2038]
and qword [r8], 0
mov rdx, qword [rsi + 0x2040]
mov rcx, rsi
call fcn.140020074
mov rax, qword [rsi + 0x2040]
mov qword [rsi + 0x2020], rax
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x55f
lea r8, str.ADVLOGGINGTHREAD:_Calling_to_create_AdvanceLoggingThread
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.140006d78
lea rdx, [rsi + 0x3e0]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rcx, [0x14001ce6c]
call sub.mfc140.dll_Ordinal_2142
mov dword [rsp + 0x64], edi
lea r9, str.GlobalINTEL_WEV_LOG_END_EVENT
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400a3e40], rax
test rax, rax
je 0x140023225
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
lea r8, [0x1400249a4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400a3e38], rax
xor edx, edx
mov r8d, 0x544
lea rcx, [rsp + 0x250]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x250]
mov rcx, rsi
call fcn.140020f90
lea rcx, [rsi + 0x380]
lea rdx, [rsp + 0x250]
call sub.TraceAPI.DLL_public:_void___cdecl_CEvDataQueue::LoggingSettingsChanged_struct__INTEL_WEV_LOGGING_SETTINGS_const____ptr64____ptr64
jmp 0x14002326e
lea rcx, [rsp + 0xd8]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd8]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140023260
and dword [0x14009b050], eax
and dword [0x14009b054], eax
lea rcx, [rsp + 0x78]
call fcn.1400267e0
test eax, eax
jne 0x1400232d0
lea r9, str.AUTOIMPORT_PROFILEIMPORT
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, rax
test rax, rax
je 0x1400232d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x599
lea r8, str.AT6Evt___StopAT6Thread
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.140006d78
call fcn.140012d80
call fcn.140027f88
mov rcx, qword [0x1400a3e28]
test rcx, rcx
je 0x14002330d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1400a3e10]
test rcx, rcx
je 0x14002331f
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1400a3df0]
test rcx, rcx
je 0x140023331
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1400a3dc8]
test rcx, rcx
je 0x140023343
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1400a3e30]
test rcx, rcx
je 0x140023355
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14002336a
mov rcx, rbx
call fcn.1400199f0
mov rcx, rbx
call fcn.14001994c
mov rcx, qword [0x1400a3e40]
test rcx, rcx
je 0x14002337c
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r9, str.GlobalMUROC_KILL_ADV_LOGGING_THREAD
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, rax
test rax, rax
je 0x1400233aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400a3dd8]
mov qword [rsp + 0x7a0], rax
mov rax, qword [0x1400a3ed0]
mov qword [rsp + 0x7a8], rax
mov rax, qword [0x1400a3e38]
mov qword [rsp + 0x7b0], rax
mov rax, qword [0x1400a3ed8]
mov qword [rsp + 0x7b8], rax
mov rax, qword [0x1400a3ec8]
mov qword [rsp + 0x7c0], rax
mov rax, qword [0x1400a3de0]
mov qword [rsp + 0x7c8], rax
mov rax, qword [0x1400a3de8]
mov qword [rsp + 0x7d0], rax
mov rax, qword [0x1400a3e08]
mov qword [rsp + 0x7d8], rax
xor ecx, ecx
lea rdx, [rsp + 0x7a0]
lea r9d, [rcx + 8]
mov r8, qword [rdx]
test r8, r8
je 0x140023442
mov qword [rsp + rcx*8 + 0x7a0], r8
add ecx, edi
add rdx, 8
sub r9, rdi
jne 0x140023430
mov r9d, 0x2710
mov r8d, edi
lea rdx, [rsp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, Ordinal_262
cmp eax, edi
jne 0x14002348d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x5e9
lea r8, str.Wait_for_Valid_Thread_Handles_timed_out_n
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.140006d78
nop
test rbx, rbx
je 0x140023524
mov rcx, rbx
call fcn.14001995c
mov rcx, qword [0x1400a3df8]
test rcx, rcx
je 0x140023518
mov edx, 0x7530
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x50], r14
mov edx, r15d
lea rcx, [rsp + 0x50]
test eax, eax
je 0x140023504
cmp eax, 0x80
je 0x1400234f3
cmp eax, edi
je 0x1400234e2
mov dword [rsp + 0x58], 0x600
lea r8, str.g_hAlertThread_unknown_wait_result
jmp 0x140023513
mov dword [rsp + 0x58], 0x5fa
lea r8, str.g_hAlertThread_timed_out_n
jmp 0x140023513
mov dword [rsp + 0x58], 0x5fd
lea r8, str.g_hAlertThread_abandoned_n
jmp 0x140023513
mov dword [rsp + 0x58], 0x5f7
lea r8, str.g_hAlertThread_ended_successfully_n
call fcn.140006d78
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [0x1400a3f00]
call fcn.140022d28
nop
mov rcx, qword [0x1400a3e00]
test rcx, rcx
je 0x14002354b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3e00], 0
mov rcx, qword [0x1400a3df0]
test rcx, rcx
je 0x140023565
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3df0], 0
mov rcx, qword [0x1400a3dc8]
test rcx, rcx
je 0x14002357f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3dc8], 0
mov rcx, qword [0x1400a3dd0]
test rcx, rcx
je 0x140023599
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3dd0], 0
mov rcx, qword [0x1400a3df8]
test rcx, rcx
je 0x1400235b3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3df8], 0
mov rcx, qword [0x1400a3dd8]
test rcx, rcx
je 0x1400235cd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3dd8], 0
mov rcx, qword [0x1400a3e10]
test rcx, rcx
je 0x1400235e7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3e10], 0
mov rcx, qword [0x1400a3e18]
test rcx, rcx
je 0x140023601
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3e18], 0
mov rcx, qword [0x1400a3e20]
test rcx, rcx
je 0x14002361b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3e20], 0
mov rcx, qword [0x1400a3e08]
test rcx, rcx
je 0x140023635
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3e08], 0
mov rcx, qword [0x1400a3e40]
test rcx, rcx
je 0x14002364f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3e40], 0
mov rcx, qword [0x1400a3ed0]
test rcx, rcx
je 0x140023669
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3ed0], 0
mov rcx, qword [0x1400a3e38]
test rcx, rcx
je 0x140023683
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3e38], 0
mov rcx, qword [0x1400a3ed8]
test rcx, rcx
je 0x14002369d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3ed8], 0
mov rcx, qword [0x1400a3ec8]
test rcx, rcx
je 0x1400236b7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3ec8], 0
mov rcx, qword [0x1400a3de0]
test rcx, rcx
je 0x1400236d1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3de0], 0
mov rcx, qword [0x1400a3de8]
test rcx, rcx
je 0x1400236eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3de8], 0
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rsp + 0x78]
call fcn.140026760
nop
xor edx, edx
mov rcx, qword [rsp + 0x90]
call fcn.14005d310
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x7e0]
xor rcx, rsp
call fcn.14005d930
lea r11, [rsp + 0x7f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret