Function at 0xbeef78b0
Capabilities:
Connect to wmi namespace via wbemlocator
Encode data using xor
Get system firmware table
Reference sql statements
Reference wmi statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
xor r15d, r15d
mov qword [rsp + 0xa0], r14
xor r9d, r9d
mov qword [rbp - 0x29], r15
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov rcx, qword [0xbef01d50]
mov r12d, 8
mov edx, r12d
mov ebx, eax
lea r8d, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0xbeef797d
mov r9d, ebx
mov r8, rax
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov esi, eax
mov ebx, r15d
test eax, eax
je 0xbeef796b
nop word [rax + rax]
mov r9, qword [sym.imp.KERNEL32.dll_RtlMoveMemory]
lea rcx, [rbp + 0x67]
mov eax, esi
mov edx, ebx
sub eax, ebx
mov qword [rbp + 0x67], r15
cmp eax, r12d
cmova eax, r12d
add rdx, r14
mov r8d, eax
call r9
mov rax, qword [rbp + 0x67]
mov ecx, ebx
and ecx, 0x3f
add ebx, r12d
ror rax, cl
add rdi, rax
cmp ebx, esi
jb 0xbeef7930
mov rcx, qword [0xbef01d50]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
lea rax, [rbp - 0x29]
lea r9, [0xbeefd430]
mov qword [rsp + 0x20], rax
lea rcx, [0xbeefd420]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0xbeef80f2
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], r15
lea rdx, str.ROOTCIMV2
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov rax, qword [rcx]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [rax + 0x18]
test eax, eax
jne 0xbeef80e8
mov rcx, qword [rbp + 0x7f]
lea r8, [rbp - 0x21]
lea rdx, [0xbeefd440]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jne 0xbeef7a45
mov rcx, qword [rbp - 0x21]
mov r9d, 0xffffffff
mov rdx, qword [rbp + 0x7f]
mov r8d, r9d
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x38], r15
mov rax, qword [rcx]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], 0xffffffffffffffff
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x77]
mov qword [rsp + 0x28], rdx
lea r8, [0xbeefe5d4]
mov r9d, 0x30
mov qword [rsp + 0x20], r15
lea rdx, [0xbeefe514]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbeef7d1e
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x6f]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef7d14
cmp dword [rbp + 0x67], r15d
je 0xbeef7d14
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp - 0x11]
mov qword [rsp + 0x28], r15
lea rdx, str.Manufacturer
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef7ce2
mov rcx, qword [rbp - 9]
cmp rcx, qword [0xbef01560]
jb 0xbeef7ce2
cmp rcx, qword [0xbef01568]
ja 0xbeef7ce2
mov rax, qword [0xbef01d80]
lea rdx, str.VMware
mov r8d, 6
call rax
test eax, eax
je 0xbeef7cd8
mov rax, qword [0xbef01d80]
lea rdx, str.VirtualBox
mov rcx, qword [rbp - 9]
mov r8d, 0xa
call rax
test eax, eax
je 0xbeef7cd8
mov rax, qword [0xbef01d80]
lea rdx, str.Microsoft
mov rcx, qword [rbp - 9]
mov r8d, 9
call rax
test eax, eax
je 0xbeef7cd8
mov rax, qword [0xbef01d40]
lea rdx, str.virtual
mov rcx, qword [rbp - 9]
call rax
test rax, rax
je 0xbeef7cd8
mov rax, qword [0xbef01d40]
lea rdx, str.Virtual
mov rcx, qword [rbp - 9]
call rax
test rax, rax
je 0xbeef7cd8
mov rcx, qword [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp - 0x11]
mov qword [rsp + 0x28], r15
lea rdx, str.PNPDeviceID
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef7ce2
mov rcx, qword [rbp - 9]
cmp rcx, qword [0xbef01560]
jb 0xbeef7ce2
cmp rcx, qword [0xbef01568]
ja 0xbeef7ce2
mov rax, qword [0xbef01d80]
lea rdx, str.ROOT_
mov r8d, 5
call rax
mov rcx, qword [rbp - 9]
test eax, eax
je 0xbeef7cdc
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp - 0x11]
mov qword [rsp + 0x28], r15
lea rdx, str.MACAddress
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef7ce2
mov rcx, qword [rbp - 9]
cmp rcx, qword [0xbef01560]
jb 0xbeef7ce2
cmp rcx, qword [0xbef01568]
ja 0xbeef7ce2
xor eax, eax
lea r9, [rbp + 0xb]
mov qword [rbp + 0x17], rax
lea r8, [rbp + 7]
lea rax, [rbp + 0x1b]
xorps xmm0, xmm0
mov qword [rsp + 0x38], rax
lea rdx, str._x:_x:_x:_x:_x:_x
lea rax, [rbp + 0x17]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x13]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 7], xmm0
call qword [0xbef01da0]
movzx eax, byte [rbp + 0x17]
movzx ecx, byte [rbp + 0x1b]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbp + 0x13]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbp + 0xf]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbp + 0xb]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbp + 7]
shl rcx, 8
or rcx, rax
add rdi, rcx
mov rcx, qword [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x6f]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
je 0xbeef7aa4
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x77]
mov qword [rsp + 0x28], rdx
lea r8, str.SELECT__FROM_Win32_DiskDrive_WHERE_MediaTypeFixed_hard_disk_media
mov r9d, 0x30
mov qword [rsp + 0x20], r15
lea rdx, [0xbeefe514]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbeef7e5e
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x6f]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef7e5e
nop dword [rax]
cmp dword [rbp + 0x67], r15d
je 0xbeef7e5e
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp - 0x11]
mov qword [rsp + 0x28], r15
lea rdx, str.SerialNumber
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef7e2c
mov rcx, qword [rbp - 9]
cmp rcx, qword [0xbef01560]
jb 0xbeef7e2c
cmp rcx, qword [0xbef01568]
ja 0xbeef7e2c
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
mov ebx, r15d
test eax, eax
je 0xbeef7e22
nop word [rax + rax]
mov rax, qword [rbp - 9]
mov r8d, esi
mov r9, qword [sym.imp.KERNEL32.dll_RtlMoveMemory]
sub r8d, ebx
add r8, r8
mov ecx, ebx
cmp r8, r12
mov qword [rbp - 0x19], r15
cmova r8, r12
lea rdx, [rax + rcx*2]
lea rcx, [rbp - 0x19]
call r9
mov rax, qword [rbp - 0x19]
mov ecx, ebx
and ecx, 0x3f
add ebx, 4
rol rax, cl
sub rdi, rax
cmp ebx, esi
jb 0xbeef7de0
mov rcx, qword [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x6f]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
je 0xbeef7d80
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x77]
mov qword [rsp + 0x28], rdx
lea r8, [0xbeefe654]
mov r9d, 0x30
mov qword [rsp + 0x20], r15
lea rdx, [0xbeefe514]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbeef7f9e
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x6f]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef7f9e
nop dword [rax]
cmp dword [rbp + 0x67], r15d
je 0xbeef7f9e
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp - 0x11]
mov qword [rsp + 0x28], r15
lea rdx, str.PartNumber
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef7f6c
mov rcx, qword [rbp - 9]
cmp rcx, qword [0xbef01560]
jb 0xbeef7f6c
cmp rcx, qword [0xbef01568]
ja 0xbeef7f6c
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
mov ebx, r15d
test eax, eax
je 0xbeef7f62
nop word [rax + rax]
mov rax, qword [rbp - 9]
mov r8d, esi
mov r9, qword [sym.imp.KERNEL32.dll_RtlMoveMemory]
sub r8d, ebx
add r8, r8
mov ecx, ebx
cmp r8, r12
mov qword [rbp - 0x19], r15
cmova r8, r12
lea rdx, [rax + rcx*2]
lea rcx, [rbp - 0x19]
call r9
mov rax, qword [rbp - 0x19]
mov ecx, ebx
and ecx, 0x3f
add ebx, 4
rol rax, cl
add rdi, rax
cmp ebx, esi
jb 0xbeef7f20
mov rcx, qword [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x6f]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
je 0xbeef7ec0
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x77]
mov qword [rsp + 0x28], rdx
lea r8, [0xbeefe6a4]
mov r9d, 0x30
mov qword [rsp + 0x20], r15
lea rdx, [0xbeefe514]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jne 0xbeef80de
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x6f]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef80de
nop dword [rax]
cmp dword [rbp + 0x67], r15d
je 0xbeef80de
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp - 0x11]
mov qword [rsp + 0x28], r15
lea rdx, str.SerialNumber
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0xbeef80ac
mov rcx, qword [rbp - 9]
cmp rcx, qword [0xbef01560]
jb 0xbeef80ac
cmp rcx, qword [0xbef01568]
ja 0xbeef80ac
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
mov ebx, r15d
test eax, eax
je 0xbeef80a2
nop word [rax + rax]
mov rax, qword [rbp - 9]
mov r8d, esi
mov r9, qword [sym.imp.KERNEL32.dll_RtlMoveMemory]
sub r8d, ebx
add r8, r8
mov ecx, ebx
cmp r8, r12
mov qword [rbp - 0x19], r15
cmova r8, r12
lea rdx, [rax + rcx*2]
lea rcx, [rbp - 0x19]
call r9
mov rax, qword [rbp - 0x19]
mov ecx, ebx
and ecx, 0x3f
add ebx, 4
ror rax, cl
xor rdi, rax
cmp ebx, esi
jb 0xbeef8060
mov rcx, qword [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x6f]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
je 0xbeef8000
mov rcx, qword [rbp + 0x7f]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rax, rdi
add rsp, 0xa8
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret