Function at 0x140057cd0
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 [0x1400da180]
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 0x14005800d
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 0x14005800d
mov qword [rbp + 7], r12
mov qword [rbp - 9], r12
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9, [0x1400b96e8]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x1400b96f8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140057fe9
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, [0x1400bec40]
call qword [rax + 0x18]
test eax, eax
jne 0x140057fe9
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 0x140057fe9
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, [0x1400bec98]
call qword [rax + 0xa0]
test eax, eax
jne 0x140057fe9
mov qword [rbp - 1], r12
mov dword [rbp + 0x27], r12d
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140057fe3
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 0x140057fdf
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 0x140057ed4
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 0x140057e70
jmp 0x140057fe3
mov rsi, qword [rbp + 0x17]
mov ecx, 0x18
call fcn.1400aa600
mov rbx, rax
mov qword [rbp - 0x21], rax
test rax, rax
je 0x140057f21
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 0x140057f24
test rsi, rsi
jne 0x1400580ef
jmp 0x140057f24
mov rbx, r12
mov qword [rbp - 0x21], rbx
test rbx, rbx
je 0x1400580e4
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140057f46
mov rcx, qword [rbx]
call fcn.1400aa330
mov qword [rbx + 8], rax
mov rsi, r14
nop dword [rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140057f50
mov rcx, qword [rdi + 0x18]
cmp rsi, rcx
ja 0x140057f87
mov r15, rdi
cmp rcx, 0xf
jbe 0x140057f6e
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 0x140057f99
mov r9, rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140009950
nop
lock xadd dword [rbx + 0x10], r14d
cmp r14d, 1
jne 0x140057fd5
mov rcx, qword [rbx]
test rcx, rcx
je 0x140057fb6
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140057fc8
call fcn.1400aa63c
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.1400aa63c
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 0x140057ff8
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140058007
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 0x140058027
mov rsi, qword [rdi]
mov rbx, rsi
mov r9, rsi
add rbx, qword [rdi + 0x10]
add rsi, qword [rdi + 0x10]
jmp 0x140058036
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.1400aa0f0
mov rdx, rax
cmp rax, rbx
je 0x140058069
inc rax
cmp rax, rbx
je 0x140058069
movzx ecx, byte [rax]
cmp cl, 0x3a
je 0x140058061
mov byte [rdx], cl
inc rdx
inc rax
cmp rax, rbx
jne 0x140058054
sub rsi, rdx
mov rbx, qword [rdi + 0x10]
mov rax, rbx
cmp qword [rdi + 0x18], 0xf
jbe 0x14005808c
sub rdx, qword [rdi]
sub rax, rdx
cmp rax, rsi
cmovb rsi, rax
mov rax, qword [rdi]
jmp 0x14005809c
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.1400aa5e0
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.1400aa320
nop
mov ecx, 0x8007000e
call fcn.1400aa320
int3