Function at 0x140001f50
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rbx, r8
call fcn.1400024c0
test al, al
je 0x140001f8b
mov eax, 0x661
jmp 0x140002038
xor r15b, r15b
mov byte [rsp + 0x30], r15b
lea rdx, str._installdriver
mov r12, 0xffffffffffffffff
mov rcx, r12
movzx eax, word [rbx + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140001fc8
add rcx, 2
cmp rcx, 0xf
je 0x140002056
movzx eax, word [rbx + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x140001fa4
lea rdx, str._uninstdriver
xor edi, edi
mov ecx, edi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x140002078
movzx eax, word [rbx + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140002078
add rcx, 2
cmp rcx, 0xe
jne 0x140001fe0
xor ecx, ecx
call fcn.140001f10
mov qword [rsp + 0x48], rdi
mov rbx, rdi
mov r14, rdi
cmp qword [rsp + 0x48], 0
je 0x140002028
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call rbx
test r14, r14
je 0x140002036
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov cl, 1
call fcn.140001f10
xor edi, edi
mov qword [rsp + 0x48], rdi
mov r14d, edi
mov qword [rsp + 0x58], rdi
mov ebx, edi
mov qword [rsp + 0x38], rbx
jmp 0x1400021eb
mov qword [rsp + 0x48], rdi
mov rcx, rdi
lea rdx, str._runcm
nop word [rax + rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140002010
cmp rcx, 7
jne 0x140002090
mov r14b, 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rcx - 6]
xor r8d, r8d
lea rdx, str.CLSIDCDC95B92_E27C_4745_A8C5_64A52A78855DInProcServer32
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002189
mov dword [rsp + 0x40], 0x104
movzx esi, r14b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002169
lea rcx, [rsp + 0x80]
call qword [sym.imp.msvcrt.dll__wcslwr]
lea rdx, str.idmshellext64.dll
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140002169
lea r8, str.LocalIDMEventMonitor
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x140002169
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, r14b
cmp eax, 0xb7
cmove esi, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, rdi
mov qword [rsp + 0x58], rdi
mov rbx, rdi
mov qword [rsp + 0x38], rbx
test sil, sil
je 0x1400021eb
lea rcx, str.IDMNetMon64.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
mov qword [rsp + 0x58], rax
mov rbx, rdi
mov qword [rsp + 0x38], rbx
test rax, rax
je 0x1400021eb
lea rdx, str.ControlMonitoring
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400021eb
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 1]
call rbx
test eax, eax
jne 0x1400021eb
mov r15b, 1
mov byte [rsp + 0x30], r15b
lea r8, [rsp + 0x48]
xor edx, edx
lea ecx, [rax + 3]
call rbx
nop
lea rcx, str.IDMGetAll64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140002220
lea rdx, str.DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002217
call rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, str.IDMIECC64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140002255
lea rdx, str.DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000224c
call rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, str.downlWithIDM64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000228b
lea rdx, str.DllRegisterServer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002281
call rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
jmp 0x1400022a3
test r15b, r15b
je 0x140002016
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x70], rcx
mov rcx, rdi
mov qword [rsp + 0x38], rcx
mov r15d, 0xffffffff
nop
test rcx, rcx
je 0x1400022eb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x1400022f9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWAREInternet_Download_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400023e1
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x50], edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.InstallStatus
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000238e
cmp dword [rsp + 0x50], 4
jne 0x14000238e
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x14000238e
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call rbx
mov r15d, 0x1388
jmp 0x1400023b2
test rsi, rsi
je 0x1400023b2
mov dword [rsp + 0x20], 1
mov r9, rsi
mov edx, 1
lea r8d, [rdx + 4]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ecx, edi
cmp qword [rsp + 0x48], 0
setne cl
inc ecx
mov r9d, r15d
xor r8d, r8d
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r12d, eax
test eax, eax
jne 0x1400023e1
mov rcx, qword [rsp + 0x38]
jmp 0x1400022e0
cmp r12d, 1
je 0x1400023f0
cmp r12d, 0x102
jne 0x1400023f5
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002405
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x140002016
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002016