Function at 0x180081740
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18015d950]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r13, rcx
xor r15d, r15d
mov r14d, r15d
lea rdx, str.Ole32.dll
lea rcx, [rbp - 0x40]
call fcn.180002af0
nop
call fcn.180034950
mov rcx, rax
lea rdx, [rbp - 0x40]
call fcn.180034a00
mov rbx, rax
lea rcx, [rbp - 0x40]
call fcn.180002be0
test rbx, rbx
je 0x180081e12
lea rdx, str.CoCreateInstance
mov rcx, rbx
call qword [0x1800fd138]
mov rsi, rax
lea rdx, str.CoInitializeSecurity
mov rcx, rbx
call qword [0x1800fd138]
mov rdi, rax
lea rdx, str.CoSetProxyBlanket
mov rcx, rbx
call qword [0x1800fd138]
mov rbx, rax
test rsi, rsi
je 0x180081e12
test rdi, rdi
je 0x180081e12
test rax, rax
je 0x180081e12
lea rcx, [rsp + 0x50]
call fcn.180073b00
nop
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
call rdi
xor edi, edi
mov qword [rbp - 0x80], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [0x180106648]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x180106718]
call rsi
test eax, eax
js 0x180081dfd
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x180081dfd
mov qword [rbp - 0x78], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ROOTCIMV2
call qword [rax + 0x18]
test eax, eax
js 0x180081df3
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180081df3
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0xa]
call rbx
mov rcx, qword [rbp - 0x78]
test eax, eax
jns 0x180081901
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x180081df3
mov qword [rbp - 0x50], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdi
mov r9d, 0x30
lea r8, str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
lea rdx, [0x180111900]
call qword [rax + 0xa0]
test eax, eax
jns 0x180081953
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, 0xfffffffd
jmp 0x180081e03
lea rdx, str.OleAut32.dll
lea rcx, [rbp - 0x40]
call fcn.180002af0
nop
call fcn.180034950
mov rcx, rax
lea rdx, [rbp - 0x40]
call fcn.180034a00
mov rbx, rax
lea rcx, [rbp - 0x40]
call fcn.180002be0
test rbx, rbx
jne 0x1800819a3
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea r14d, [rbx - 4]
jmp 0x180081e03
lea rdx, str.VariantInit
mov rcx, rbx
call qword [0x1800fd138]
mov r12, rax
lea rdx, str.VariantClear
mov rcx, rbx
call qword [0x1800fd138]
mov r15, rax
test r12, r12
je 0x180081dd7
test rax, rax
je 0x180081dd7
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180081dc1
nop dword [rax + rax]
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x48], edi
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x70]
mov r8d, 1
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rbp - 0x48], 0
je 0x180081db2
cmp qword [rbp - 0x70], 0
je 0x180081db2
lea rcx, [rbp - 0x68]
call r12
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x68]
xor r8d, r8d
lea rdx, str.PNPDeviceID
call qword [rax + 0x20]
mov word [rbp + 0xd0], di
xor edx, edx
mov r8d, 0xfe
lea rcx, [rbp + 0xd2]
call fcn.1800b76b0
cmp word [rbp - 0x68], 8
jne 0x180081ac2
mov r8, qword [rbp - 0x60]
test r8, r8
je 0x180081ac2
mov edx, 0x7f
lea rcx, [rbp + 0xd0]
lea rax, [rbp + 0xd0]
sub r8, rax
lea rax, [rdx + 0x7fffff7f]
test rax, rax
je 0x180081ab6
movzx eax, word [rcx + r8]
test ax, ax
je 0x180081ab6
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x180081a92
jmp 0x180081abb
test rdx, rdx
jne 0x180081abf
sub rcx, 2
mov word [rcx], di
lea rcx, [rbp - 0x68]
call r15
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x20]
call fcn.180002af0
nop
lea rcx, [rbp - 0x40]
call fcn.180002ab0
nop
lea rcx, [0x18010c5f0]
call fcn.180002290
mov rdi, rax
test rax, rax
je 0x180081b5b
cmp qword [rbp - 0x10], 0
jbe 0x180081b5b
lea rcx, [rbp - 0x20]
call fcn.180003190
mov rcx, qword [rbp - 0x10]
lea rsi, [rax + rcx*2]
lea rcx, [rbp - 0x20]
call fcn.180003190
mov rbx, rax
cmp rax, rsi
jae 0x180081b5b
test rdi, rdi
je 0x180081b41
mov rcx, rdi
lea rax, [0x18010c5f0]
movzx edx, word [rbx]
cmp word [rax], dx
je 0x180081b4a
add rax, 2
dec rcx
jne 0x180081b33
add rbx, 2
cmp rbx, rsi
jmp 0x180081b1f
lea rcx, [rbp - 0x20]
call fcn.180003190
sub rbx, rax
sar rbx, 1
jmp 0x180081b5f
or rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x180081b91
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.1800125d0
nop
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.180004c40
nop
lea rcx, [rsp + 0x60]
call fcn.180002be0
lea rdx, str.ROOT
lea rcx, [rbp - 0x40]
call fcn.18001dfb0
test al, al
je 0x180081bae
lea rcx, [rbp - 0x20]
call fcn.18000ad00
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call fcn.1800815f0
test eax, eax
je 0x180081d80
inc r14d
lea rcx, [rbp]
call fcn.180079920
nop
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x20]
call fcn.180004dd0
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0xa8]
call fcn.180004d50
lea rcx, [rbp + 0x20]
call fcn.18001e3c0
lea rcx, [rbp + 0x20]
call fcn.180004f00
test al, al
jne 0x180081d77
lea rcx, [rbp - 0x68]
call r12
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x68]
xor r8d, r8d
lea rdx, str.MACAddress
call qword [rax + 0x20]
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xd0]
call fcn.1800b76b0
cmp word [rbp - 0x68], 8
jne 0x180081c69
mov r8, qword [rbp - 0x60]
test r8, r8
je 0x180081c69
lea edx, [rbx + 0x7f]
lea rcx, [rbp + 0xd0]
call fcn.18001da40
lea rcx, [rbp - 0x68]
call r15
lea rdx, [rbp + 0xd0]
mov ecx, 6
call fcn.1800815f0
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x40]
call fcn.180004dd0
lea rcx, [rbp + 0x40]
call fcn.18001e3c0
lea rcx, [rbp - 0x68]
call r12
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x68]
xor r8d, r8d
lea rdx, str.GUID
call qword [rax + 0x20]
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xd0]
call fcn.1800b76b0
cmp word [rbp - 0x68], 8
jne 0x180081cf8
mov r8, qword [rbp - 0x60]
test r8, r8
je 0x180081cf8
mov edx, 0x7f
lea rcx, [rbp + 0xd0]
call fcn.18001da40
lea rcx, [rbp - 0x68]
call r15
lea rdx, [rbp + 0xd0]
lea rcx, [rbp]
call fcn.180004dd0
lea rcx, [rbp + 0x60]
call fcn.18000ad00
lea rcx, [rbp - 0x68]
call r12
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x68]
xor r8d, r8d
lea rdx, str.NetConnectionStatus
call qword [rax + 0x20]
cmp word [rbp - 0x68], 3
jne 0x180081d5c
mov r8d, dword [rbp - 0x60]
lea rdx, [0x1801068d0]
lea rcx, [rbp + 0x60]
call fcn.18001e650
lea rcx, [rbp - 0x68]
call r15
mov byte [rbp + 0x80], 1
lea rdx, [rbp]
mov rcx, r13
call fcn.18007e200
nop
lea rcx, [rbp]
call fcn.1800770f0
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbp - 0x40]
call fcn.180002be0
nop
lea rcx, [rbp - 0x20]
call fcn.180002be0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
mov edi, 0
jne 0x1800819f0
jmp 0x180081dc1
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180081dc1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x180081e03
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, 0xfffffffb
jmp 0x180081e03
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, 0xfffffffe
lea rcx, [rsp + 0x50]
call fcn.180073b90
mov eax, r14d
jmp 0x180081e17
mov eax, 0xfffffffe
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1800b29b0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret