Function at 0x1400b2440
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 [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rdx
movsxd r13, ecx
xor r14d, r14d
mov edi, r14d
test ecx, ecx
js 0x1400b286f
mov r15, r13
cmp r13, 8
jae 0x1400b286f
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.140006900
nop
call fcn.14007a6e0
mov rcx, rax
lea rdx, [rbp - 0x19]
call fcn.14007a790
mov rbx, rax
cmp qword [rbp - 1], 8
jb 0x1400b24e9
mov rcx, qword [rbp - 0x19]
call fcn.1400bd20c
mov qword [rbp - 1], 7
mov qword [rbp - 9], r14
mov word [rbp - 0x19], r14w
test rbx, rbx
jne 0x1400b2506
xor eax, eax
jmp 0x1400b2872
lea rdx, str.CoCreateInstance
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, 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 r12, r12
je 0x1400b24ff
test r14, r14
je 0x1400b24ff
test rax, rax
je 0x1400b24ff
lea rcx, [rbp - 0x39]
call fcn.140083580
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, [0x1400f4f00]
xor edx, edx
lea r8d, [r14 + 1]
lea rcx, [0x1400f4fd0]
call r12
test eax, eax
js 0x1400b285d
mov qword [rbp - 0x21], r14
mov rcx, qword [rbp - 0x29]
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 0x1400b2625
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]
mov rcx, qword [rbp - 0x21]
call rbx
mov rcx, qword [rbp - 0x21]
test eax, eax
jns 0x1400b2634
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400b285d
mov qword [rbp + 7], r14
add r15, r15
mov rax, qword [rcx]
lea r8, str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
lea rdx, [rbp + 7]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r14
mov r9d, 0x30
mov r8, qword [r8 + r15*8]
lea rdx, [0x1401311b0]
call qword [rax + 0xa0]
test eax, eax
jns 0x1400b268c
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 0x1400b2862
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.140006900
nop
call fcn.14007a6e0
mov rcx, rax
lea rdx, [rbp - 0x19]
call fcn.14007a790
mov rbx, rax
cmp qword [rbp - 1], 8
jb 0x1400b26e0
mov rcx, qword [rbp - 0x19]
call fcn.1400bd20c
mov qword [rbp - 1], 7
mov qword [rbp - 9], r14
mov word [rbp - 0x19], r14w
test rbx, rbx
jne 0x1400b2712
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 0x1400b2862
lea rdx, str.VariantInit
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.VariantClear
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test r12, r12
je 0x1400b2842
test rax, rax
je 0x1400b2842
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1400b2826
xor ebx, ebx
nop dword [rax]
mov qword [rbp + 0xf], rbx
mov dword [rbp + 0x17], ebx
test rsi, rsi
je 0x1400b2775
cmp edi, 0xc
jge 0x1400b2826
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0xf]
mov r8d, 1
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rbp + 0x17], 0
je 0x1400b2822
test rsi, rsi
je 0x1400b2803
lea rcx, [rbp - 0x19]
call r12
mov rcx, qword [rbp + 0xf]
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 + r15*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.14001b930
lea rcx, [rbp - 0x19]
call r14
mov rdx, rbx
mov ecx, r13d
call fcn.1400b2300
test eax, eax
je 0x1400b2807
inc edi
jmp 0x1400b2807
inc edi
jmp 0x1400b2809
xor ebx, ebx
mov rcx, qword [rbp + 0xf]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 7]
test rcx, rcx
jne 0x1400b2760
jmp 0x1400b2826
mov rcx, qword [rbp + 7]
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 0x1400b2862
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 0x1400b2862
mov edi, 0xfffffffe
lea rcx, [rbp - 0x39]
call fcn.140083650
mov eax, edi
jmp 0x1400b2872
or eax, 0xffffffff
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400bcae0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret