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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r15, rcx
xor r12d, r12d
mov r14d, r12d
lea rdx, [0x1800f51e0]
lea rcx, [rbp - 0x38]
call fcn.180005e38
nop
call fcn.180077ff0
mov rcx, rax
lea rdx, [rbp - 0x38]
call fcn.180078090
mov rbx, rax
lea rcx, [rbp - 0x38]
call fcn.180005de4
test rbx, rbx
je 0x18008d618
lea rdx, [0x1800f5208]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, str.CoInitializeSecurity
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rdx, str.CoSetProxyBlanket
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rsi, rsi
je 0x18008d618
test rdi, rdi
je 0x18008d618
test rax, rax
je 0x18008d618
lea rcx, [rsp + 0x50]
call fcn.180076250
nop
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 - 1]
xor ecx, ecx
call rdi
mov qword [rbp - 0x70], r12
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x1800e0dd8]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x1800e0ea8]
call rsi
test eax, eax
js 0x18008cf0e
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x18008cf0e
mov qword [rbp - 0x78], r12
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ROOTCIMV2
call qword [rax + 0x18]
test eax, eax
js 0x18008cf04
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x18008cf04
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0xa]
call rbx
mov rcx, qword [rbp - 0x78]
test eax, eax
jns 0x18008cf26
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, 0xfffffffe
lea rcx, [rsp + 0x50]
call fcn.1800762f0
mov eax, r14d
jmp 0x18008d61d
mov qword [rbp - 0x48], r12
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r12
mov r9d, 0x30
lea r8, str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
lea rdx, [0x1800f8008]
call qword [rax + 0xa0]
test eax, eax
jns 0x18008cf75
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, 0xfffffffd
jmp 0x18008cf14
lea rdx, str.OleAut32.dll
lea rcx, [rbp - 0x38]
call fcn.180005e38
nop
call fcn.180077ff0
mov rcx, rax
lea rdx, [rbp - 0x38]
call fcn.180078090
mov rbx, rax
lea rcx, [rbp - 0x38]
call fcn.180005de4
test rbx, rbx
jne 0x18008cfc5
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea r14d, [rbx - 4]
jmp 0x18008cf14
lea rdx, str.VariantInit
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, str.VariantClear
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rsi, rsi
je 0x18008d5f9
test rax, rax
je 0x18008d5f9
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x18008d5e0
nop word [rax + rax]
mov qword [rbp - 0x68], r12
mov dword [rbp - 0x40], r12d
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x68]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
cmp dword [rbp - 0x40], 0
je 0x18008d5d1
cmp qword [rbp - 0x68], 0
je 0x18008d5d1
lea rcx, [rbp - 0x60]
call rsi
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, str.PNPDeviceID
call qword [rax + 0x20]
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xe0]
call fcn.1800a4070
cmp word [rbp - 0x60], 8
jne 0x18008d0e2
mov r8, qword [rbp - 0x58]
test r8, r8
je 0x18008d0e2
mov edx, 0x7f
lea rcx, [rbp + 0xe0]
lea rax, [rbp + 0xe0]
sub r8, rax
nop dword [rax + rax]
lea rax, [rdx + 0x7fffff7f]
test rax, rax
je 0x18008d0d3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x18008d0d3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x18008d0b0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r12w
lea rcx, [rbp - 0x60]
call rdi
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x18]
call fcn.180005e38
nop
lea rcx, [rbp - 0x38]
call fcn.180005e80
nop
xor r8d, r8d
lea rdx, [0x1800f5948]
lea rcx, [rbp - 0x18]
call fcn.18006a650
cmp rax, 0xffffffffffffffff
je 0x18008d148
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x18]
call fcn.18000acf0
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1800066cc
nop
lea rcx, [rsp + 0x68]
call fcn.180005de4
lea rcx, [rbp - 0x38]
call fcn.18000618c
mov rcx, rax
lea rdx, str.ROOT
call fcn.18006b580
test al, al
je 0x18008d16d
lea rcx, [rbp - 0x18]
call fcn.18000a100
mov r9d, 1
lea r8d, [r9 + 0x7f]
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0xe0]
call fcn.18008cab0
test eax, eax
je 0x18008d5a4
inc r14d
lea rcx, [rbp + 0x10]
call fcn.180005e80
nop
lea rcx, [rbp + 0x30]
call fcn.180005e80
nop
lea rcx, [rbp + 0x50]
call fcn.180005e80
nop
lea rcx, [rbp + 0x70]
call fcn.180005e80
nop
lea rcx, [rbp + 0x98]
call fcn.180005e80
nop
lea rcx, [rbp + 0xb8]
call fcn.180005e80
nop
mov byte [rbp + 0x90], 0
lea rcx, [rbp + 0xe0]
call fcn.18000608c
mov r8, rax
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x30]
call fcn.180005f18
lea rcx, [rbp - 0x18]
call fcn.180005ea0
lea rcx, [rbp + 0xb8]
cmp rcx, rax
je 0x18008d238
lea rcx, [rbp - 0x18]
call fcn.180005ea0
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x18008d228
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp + 0xb8]
call fcn.180005f18
lea rcx, [rbp + 0x30]
call fcn.18006b960
lea rcx, [rbp + 0x30]
call fcn.180005da8
test al, al
jne 0x18008d563
lea rcx, [rbp - 0x60]
call rsi
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, str.MACAddress
call qword [rax + 0x20]
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xe0]
call fcn.1800a4070
cmp word [rbp - 0x60], 8
jne 0x18008d2e6
mov r8, qword [rbp - 0x58]
test r8, r8
je 0x18008d2e6
mov edx, 0x7f
lea rcx, [rbp + 0xe0]
lea rax, [rbp + 0xe0]
sub r8, rax
lea rax, [rdx + 0x7fffff7f]
test rax, rax
je 0x18008d2d7
movzx eax, word [r8 + rcx]
test ax, ax
je 0x18008d2d7
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x18008d2b4
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r12w
lea rcx, [rbp - 0x60]
call rdi
lea rcx, [rbp + 0xe0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x18008d300
lea r9, [rbp + 0xe2]
lea r9, [r9 + rax*2]
lea rdx, [rbp + 0xe0]
lea rax, [rbp + 0xe0]
cmp rax, r9
je 0x18008d33f
nop dword [rax]
cmp word [rdx], 0x3a
je 0x18008d33f
add rdx, 2
cmp rdx, r9
jne 0x18008d330
cmp rdx, r9
je 0x18008d372
lea r8, [rdx + 2]
cmp r8, r9
je 0x18008d372
nop dword [rax]
cmp word [r8], 0x3a
je 0x18008d369
mov rcx, r8
call fcn.180005ea0
movzx ecx, word [rax]
mov word [rdx], cx
add rdx, 2
add r8, 2
cmp r8, r9
jne 0x18008d350
test rdx, rdx
je 0x18008d37b
mov word [rdx], r12w
lea rcx, [rbp + 0xe0]
call fcn.18000608c
mov r8, rax
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x50]
call fcn.180005f18
lea rcx, [rbp + 0x50]
call fcn.18006b960
lea rcx, [rbp - 0x60]
call rsi
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, str.GUID
call qword [rax + 0x20]
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xe0]
call fcn.1800a4070
cmp word [rbp - 0x60], 8
jne 0x18008d442
mov r8, qword [rbp - 0x58]
test r8, r8
je 0x18008d442
mov edx, 0x7f
lea rcx, [rbp + 0xe0]
lea rax, [rbp + 0xe0]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7f]
test rax, rax
je 0x18008d433
movzx eax, word [r8 + rcx]
test ax, ax
je 0x18008d433
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x18008d410
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r12w
lea rcx, [rbp - 0x60]
call rdi
lea rcx, [rbp + 0xe0]
call fcn.18000608c
mov r8, rax
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x10]
call fcn.180005f18
lea rcx, [rbp + 0x70]
call fcn.18000a100
lea rcx, [rbp - 0x60]
call rsi
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, str.NetConnectionStatus
call qword [rax + 0x20]
cmp word [rbp - 0x60], 3
jne 0x18008d4b3
mov r8d, dword [rbp - 0x58]
lea rdx, [0x1800f4b00]
lea rcx, [rbp + 0x70]
call fcn.18006bbb0
lea rcx, [rbp - 0x60]
call rdi
mov byte [rbp + 0x90], 1
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x18008d556
mov ecx, 0xc8
call fcn.180005ca4
mov rbx, rax
mov qword [rsp + 0x60], rax
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.180007404
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x30]
call fcn.180007404
nop
lea rcx, [rbx + 0x40]
lea rdx, [rbp + 0x50]
call fcn.180007404
nop
lea rcx, [rbx + 0x60]
lea rdx, [rbp + 0x70]
call fcn.180007404
nop
movzx eax, byte [rbp + 0x90]
mov byte [rbx + 0x80], al
lea rcx, [rbx + 0x88]
lea rdx, [rbp + 0x98]
call fcn.180007404
nop
lea rcx, [rbx + 0xa8]
lea rdx, [rbp + 0xb8]
call fcn.180007404
nop
add qword [r15 + 8], 0xc8
jmp 0x18008d563
lea r8, [rbp + 0x10]
mov rcx, r15
call fcn.180088be0
nop
lea rcx, [rbp + 0xb8]
call fcn.180005de4
nop
lea rcx, [rbp + 0x98]
call fcn.180005de4
nop
lea rcx, [rbp + 0x70]
call fcn.180005de4
nop
lea rcx, [rbp + 0x50]
call fcn.180005de4
nop
lea rcx, [rbp + 0x30]
call fcn.180005de4
nop
lea rcx, [rbp + 0x10]
call fcn.180005de4
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbp - 0x38]
call fcn.180005de4
nop
lea rcx, [rbp - 0x18]
call fcn.180005de4
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x18008d010
jmp 0x18008d5e0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x18008d5e0
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 - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x18008cf14
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, 0xfffffffb
jmp 0x18008cf14
mov eax, 0xfffffffe
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1800a0260
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret