Function at 0x1400037a0
Capabilities:
Connect to wmi namespace via wbemlocator
Create thread
Get common file path
Reference sql statements
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
call fcn.140001510
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400037df
mov eax, 1
jmp 0x140003b6d
mov qword [rsp + 0x308], rsi
xor r9d, r9d
mov qword [rsp + 0x318], r12
mov esi, 0xffffffff
xor r12d, r12d
xor r8d, r8d
mov qword [rsp + 0x40], r12
mov edx, esi
mov dword [rsp + 0x38], r12d
xor ecx, ecx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x140003bd0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], r12
lea r9, [0x1400065f0]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x140006620]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140003bd0
mov qword [rsp + 0x300], rbx
lea ecx, [rsi + 0x19]
mov qword [rsp + 0x310], rdi
mov qword [rsp + 0x2e8], r14
mov qword [rsp + 0x2e0], r15
mov qword [rsp + 0x68], r12
call fcn.140003f30
mov rbx, rax
test rax, rax
je 0x140003bdd
mov qword [rax], r12
lea rcx, str.ROOTCIMV2
mov qword [rax + 0x10], 1
mov qword [rax + 8], r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140003bdd
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov rdx, qword [rbx]
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov rax, qword [rcx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [rax + 0x18]
mov edi, eax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14000392e
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000390f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003921
call fcn.1400041bc
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.1400041bc
test edi, edi
js 0x140003b27
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x38], r12d
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
lea edx, [r9 + 0xa]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x140003b1c
xor edx, edx
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
lea r9, [0x140006610]
mov qword [rsp + 0x20], rax
lea rcx, [0x140006630]
lea r8d, [rdx + 4]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, 0x10
call fcn.140003f30
mov r14, rax
lea r8, [rbp - 0x80]
lea rax, vtable.EventSink.0
mov rdx, r14
mov qword [r14], rax
mov dword [r14 + 8], r12d
mov rcx, qword [rsp + 0x78]
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov r9, qword [rcx]
call qword [r9 + 0x18]
test eax, eax
js 0x140003b08
mov rcx, qword [rbp - 0x80]
lea r8, [rbp - 0x78]
lea rdx, [0x140006600]
mov rax, qword [rcx]
call qword [rax]
mov ecx, 0x18
call fcn.140003f30
mov rbx, rax
test rax, rax
je 0x140003bdd
mov qword [rax], r12
lea rcx, str.SELECT__FROM___InstanceCreationEvent_WITHIN_1_WHERE_TargetInstance_ISA_Win32_Process_AND__TargetInstance.Name__ProcessHacker.exe_OR_TargetInstance.Name__TaskMgr.exe_OR_TargetInstance.Name__procexp.exe_OR_TargetInstance.Name__procexp64.exe_OR_TargetInstance.Name__procexp64a.exe_
mov qword [rax + 0x10], 1
mov qword [rax + 8], r12
call fcn.140004c00
mov ecx, 0x18
mov qword [rbx], rax
mov r15, rax
call fcn.140003f30
mov rdi, rax
test rax, rax
je 0x140003bdd
mov qword [rax], r12
lea rcx, [0x140006adc]
mov qword [rax + 0x10], 1
mov qword [rax + 8], r12
call fcn.140004c00
mov qword [rdi], rax
mov r9d, 0x80
mov rcx, qword [rsp + 0x68]
mov r8, r15
mov rax, qword [rbp - 0x78]
mov rdx, qword [rdi]
mov qword [rsp + 0x28], rax
mov r10, qword [rcx]
mov qword [rsp + 0x20], r12
call qword [r10 + 0xb8]
mov r15d, eax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140003abb
mov rcx, qword [rdi]
test rcx, rcx
je 0x140003a9c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140003aae
call fcn.1400041bc
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.1400041bc
lock xadd dword [rbx + 0x10], esi
cmp esi, 1
jne 0x140003af5
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003ad6
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003ae8
call fcn.1400041bc
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.1400041bc
test r15d, r15d
jns 0x140003b85
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r14, qword [rsp + 0x2e8]
mov eax, 1
mov rdi, qword [rsp + 0x310]
mov r15, qword [rsp + 0x2e0]
mov rbx, qword [rsp + 0x300]
mov rsi, qword [rsp + 0x308]
mov r12, qword [rsp + 0x318]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140003f10
add rsp, 0x2f0
pop rbp
ret
mov r9d, 0x40034
lea r8, [0x140006ae0]
lea rdx, [0x140006b00]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x140003bc7
mov r9d, 0x40034
lea r8, [0x140006ae0]
lea rdx, [0x140006c00]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x140003be8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x140003b5d
mov ecx, 0x8007000e
call fcn.140004bf0
int3
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xorps xmm0, xmm0
mov dword [rsp + 0x58], 0x1f40
movups xmmword [rbp - 0x6c], xmm0
mov dword [rsp + 0x5c], 0x13880
lea rax, [0x140001a90]
mov qword [rsp + 0x60], rax
lea rax, [0x140001b30]
movups xmmword [rbp - 0x5c], xmm0
movups xmm0, xmmword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rax, [0x140001b90]
mov dword [rsp + 0x58], 0x1f40
mov dword [rsp + 0x5c], 0x13880
movups xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rsp + 0x58]
mov dword [rsp + 0x58], 0x1f40
mov dword [rsp + 0x5c], 0x13880
movups xmmword [rbp - 0x60], xmm0
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp - 0x50], xmm0
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
call fcn.140001800
call fcn.140003760
call fcn.140003680
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x28], r12
lea r8, [0x1400032c0]
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], r12
lea r8, [0x140002280]
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x28], r12
lea r8, [0x140003110]
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r9, [rbp - 0x40]
mov qword [rsp + 0x28], r12
lea r8, [fcn.140003370]
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9d, 0x3e8
mov qword [rsp + 0x28], r12
lea r8, [0x140003e50]
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r9, [rbp - 0x70]
mov qword [rsp + 0x28], r12
lea r8, [0x140001910]
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.1400010a0
lea rcx, [0x1400021d0]
call fcn.140001c60
lea rcx, [0x140001cf0]
call fcn.140001c60
lea rcx, [0x140001e00]
call fcn.140001c60
lea rcx, [0x140002040]
call fcn.140001c60
lea rcx, [0x1400025e0]
call fcn.1400023b0
lea rcx, [0x140002820]
call fcn.1400023b0
lea rcx, [0x140002ac0]
call fcn.1400023b0
lea rcx, [0x140002b10]
call fcn.1400023b0
lea rcx, [0x140002bc0]
call fcn.1400023b0
lea rcx, [0x140002c60]
call fcn.1400023b0
lea rcx, [0x140002cb0]
call fcn.1400023b0
mov ecx, 0x4e20
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
call fcn.1400011c0
int3