Function at 0x1800e8690
Capabilities:
Link many functions at runtime
Reference sql statements
Reference wmi statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x1802247b8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rdx
movsxd r13, ecx
xor r14d, r14d
mov edi, r14d
test ecx, ecx
js 0x1800e8b19
mov r12, r13
cmp r13, 8
jae 0x1800e8b19
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
mov qword [rbp - 1], 7
mov qword [rbp - 9], r14
mov word [rbp - 0x19], r14w
lea r8d, [r14 + 9]
lea rdx, str.Ole32.dll
lea rcx, [rbp - 0x19]
call fcn.180005920
nop
mov eax, dword [0x18034db90]
test al, 1
jne 0x1800e8743
or eax, 1
mov dword [0x18034db90], eax
xor eax, eax
mov qword [0x18034db88], rax
call fcn.180064890
lea rcx, [0x180197b50]
call fcn.180139aec
nop
lea rdx, [rbp - 0x19]
lea rcx, [0x18034db88]
call fcn.180064a80
mov rbx, rax
cmp qword [rbp - 1], 8
jb 0x1800e8766
mov rcx, qword [rbp - 0x19]
call fcn.180139b7c
mov qword [rbp - 1], 7
mov qword [rbp - 9], r14
mov word [rbp - 0x19], r14w
test rbx, rbx
jne 0x1800e8786
mov eax, 0xfffffffe
jmp 0x1800e8b1c
lea rdx, str.CoCreateInstance
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.CoInitializeSecurity
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rdx, str.CoSetProxyBlanket
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r15, r15
je 0x1800e877c
test r14, r14
je 0x1800e877c
test rax, rax
je 0x1800e877c
lea rcx, [rbp - 0x39]
call fcn.1800d0150
nop
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
call r14
xor r14d, r14d
mov qword [rbp - 0x29], r14
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r9, [0x1801a5cf8]
xor edx, edx
lea r8d, [r14 + 1]
lea rcx, [0x1801a5dc8]
call r15
test eax, eax
js 0x1800e8b07
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1800e8b07
mov qword [rbp - 0x21], r14
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ROOTCIMV2
call qword [rax + 0x18]
test eax, eax
js 0x1800e8afd
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1800e8afd
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0xa]
call rbx
mov rcx, qword [rbp - 0x21]
test eax, eax
jns 0x1800e88c0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1800e8afd
mov qword [rbp + 0xf], r14
add r12, r12
mov rax, qword [rcx]
lea r8, str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
lea rdx, [rbp + 0xf]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r14
mov r9d, 0x30
mov r8, qword [r8 + r12*8]
lea rdx, [0x1801b1498]
call qword [rax + 0xa0]
test eax, eax
jns 0x1800e8918
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edi, 0xfffffffd
jmp 0x1800e8b0c
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
mov qword [rbp - 1], 7
mov qword [rbp - 9], r14
mov word [rbp - 0x19], r14w
mov r8d, 0xc
lea rdx, str.OleAut32.dll
lea rcx, [rbp - 0x19]
call fcn.180005920
nop
call fcn.180064a20
mov rcx, rax
lea rdx, [rbp - 0x19]
call fcn.180064a80
mov rbx, rax
cmp qword [rbp - 1], 8
jb 0x1800e896c
mov rcx, qword [rbp - 0x19]
call fcn.180139b7c
mov qword [rbp - 1], 7
mov qword [rbp - 9], r14
mov word [rbp - 0x19], r14w
test rbx, rbx
jne 0x1800e899e
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea edi, [rbx - 4]
jmp 0x1800e8b0c
lea rdx, str.VariantInit
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.VariantClear
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test r15, r15
je 0x1800e8ae2
test rax, rax
je 0x1800e8ae2
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1800e8acc
xor ebx, ebx
nop word [rax + rax]
mov qword [rbp + 7], rbx
mov dword [rbp + 0x17], ebx
test rsi, rsi
je 0x1800e8a05
cmp edi, 0xc
jge 0x1800e8ac1
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 7]
mov r8d, 1
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rbp + 0x17], 0
je 0x1800e8abd
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1800e8abd
test rsi, rsi
je 0x1800e8aa6
lea rcx, [rbp - 0x19]
call r15
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x19]
xor r8d, r8d
lea rdx, str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
mov rdx, qword [rdx + r12*8 + 8]
call qword [rax + 0x20]
movsxd rbx, edi
shl rbx, 8
add rbx, rsi
mov r8, qword [rbp - 0x11]
mov edx, 0x80
mov rcx, rbx
call fcn.180021c20
lea rcx, [rbp - 0x19]
call r14
mov rdx, rbx
mov ecx, r13d
call fcn.1800e8540
mov rcx, qword [rbp + 7]
test eax, eax
je 0x1800e8aa2
inc edi
xor ebx, ebx
jmp 0x1800e8aa8
inc edi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
jne 0x1800e89f0
jmp 0x1800e8acc
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1800e8acc
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1800e8b0c
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edi, 0xfffffffb
jmp 0x1800e8b0c
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edi, 0xfffffffe
lea rcx, [rbp - 0x39]
call fcn.1800d0250
mov eax, edi
jmp 0x1800e8b1c
or eax, 0xffffffff
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180139310
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret