Function at 0x140056c30
Capabilities:
Connect to wmi namespace via wbemlocator
Reference sql statements
Reference wmi statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400d8180]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
mov qword [rbp - 0x19], rcx
xor r12d, r12d
mov dword [rbp - 0x29], r12d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r12b
mov dword [rbp - 0x29], 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jne 0x140056f6d
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
mov r14, 0xffffffffffffffff
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jne 0x140056f6d
mov qword [rbp + 7], r12
mov qword [rbp - 9], r12
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9, [0x1400b76e8]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x1400b76f8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140056f49
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
lea rdx, [rbp - 9]
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
jne 0x140056f49
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, [rax + 0xa]
mov rcx, qword [rbp - 9]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jne 0x140056f49
mov qword [rbp - 0x11], r12
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 0x30]
lea r8, str.SELECT__FROM_Win32_NetworkAdapterConfiguration_WHERE_MACAddress_IS_NOT_NULL_AND_IPEnabled__true
lea rdx, [0x1400bce38]
call qword [rax + 0xa0]
test eax, eax
jne 0x140056f49
mov qword [rbp - 1], r12
mov dword [rbp + 0x27], r12d
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140056f43
nop dword [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x27]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 1]
mov r8d, 1
mov edx, r14d
call qword [rax + 0x20]
cmp dword [rbp + 0x27], 0
je 0x140056f3f
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xf]
xor r8d, r8d
lea rdx, str.MACAddress
call qword [rax + 0x20]
test eax, eax
je 0x140056e34
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
jne 0x140056dd0
jmp 0x140056f43
mov rsi, qword [rbp + 0x17]
mov ecx, 0x18
call fcn.1400a8710
mov rbx, rax
mov qword [rbp - 0x21], rax
test rax, rax
je 0x140056e81
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140056e84
test rsi, rsi
jne 0x14005704f
jmp 0x140056e84
mov rbx, r12
mov qword [rbp - 0x21], rbx
test rbx, rbx
je 0x140057044
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140056ea6
mov rcx, qword [rbx]
call fcn.1400a8440
mov qword [rbx + 8], rax
mov rsi, r14
nop dword [rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140056eb0
mov rcx, qword [rdi + 0x18]
cmp rsi, rcx
ja 0x140056ee7
mov r15, rdi
cmp rcx, 0xf
jbe 0x140056ece
mov r15, qword [rdi]
mov qword [rdi + 0x10], rsi
mov r8, rsi
mov rdx, rax
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
mov byte [r15 + rsi], 0
jmp 0x140056ef9
mov r9, rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140001c30
nop
lock xadd dword [rbx + 0x10], r14d
cmp r14d, 1
jne 0x140056f35
mov rcx, qword [rbx]
test rcx, rcx
je 0x140056f16
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140056f28
call fcn.1400a874c
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.1400a874c
lea rcx, [rbp + 0xf]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140056f58
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140056f67
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp qword [rdi + 0x18], 0xf
jbe 0x140056f87
mov rsi, qword [rdi]
mov rbx, rsi
mov r9, rsi
add rbx, qword [rdi + 0x10]
add rsi, qword [rdi + 0x10]
jmp 0x140056f96
mov rax, qword [rdi + 0x10]
mov r9, rdi
lea rbx, [rax + rdi]
lea rsi, [rax + rdi]
mov r8b, 0x3a
mov rdx, rbx
mov rcx, r9
call fcn.1400a8200
mov rdx, rax
cmp rax, rbx
je 0x140056fc9
inc rax
cmp rax, rbx
je 0x140056fc9
movzx ecx, byte [rax]
cmp cl, 0x3a
je 0x140056fc1
mov byte [rdx], cl
inc rdx
inc rax
cmp rax, rbx
jne 0x140056fb4
sub rsi, rdx
mov rbx, qword [rdi + 0x10]
mov rax, rbx
cmp qword [rdi + 0x18], 0xf
jbe 0x140056fec
sub rdx, qword [rdi]
sub rax, rdx
cmp rax, rsi
cmovb rsi, rax
mov rax, qword [rdi]
jmp 0x140056ffc
sub rdx, rdi
sub rax, rdx
cmp rax, rsi
cmovb rsi, rax
mov rax, rdi
lea rcx, [rax + rdx]
sub rbx, rsi
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rsi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rdi + 0x10], rbx
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400a86f0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1400a8430
nop
mov ecx, 0x8007000e
call fcn.1400a8430
int3