Function at 0x40212f
Capabilities:
Connect to wmi namespace via wbemlocator
Encode data using xor
Reference wmi statements

Disassembly:
mov eax, 0x40dc67
call fcn.0040dbfc
sub esp, 0x38
push esi
xor esi, esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x402167
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40238d
lea eax, [ebp - 0x18]
push eax
push 0x410130
push 1
push esi
push 0x410200
mov dword [ebp - 0x18], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x40215c
push edi
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x28], esi
call fcn.00401218
mov dword [ebp - 4], esi
mov eax, dword [eax]
cmp eax, esi
je 0x40219e
mov ecx, dword [eax]
jmp 0x4021a0
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push ebx
lea edi, [ebp - 0x28]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
call dword [edx + 0xc]
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x2c]
mov ebx, eax
call fcn.0040127a
cmp ebx, esi
jl 0x40223e
push str.SELECT__FROM_Win32_OperatingSystem
lea edi, [ebp - 0x24]
mov dword [ebp - 0x10], esi
call fcn.004011b9
mov ebx, eax
push 0x410450
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.004011b9
mov byte [ebp - 4], 2
mov ecx, dword [ebx]
cmp ecx, esi
je 0x4021fb
mov ecx, dword [ecx]
jmp 0x4021fd
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x402207
mov edx, dword [eax]
jmp 0x402209
xor edx, edx
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
lea ebx, [ebp - 0x10]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
call dword [edi + 0x50]
lea edi, [ebp - 0x2c]
mov ebx, eax
call fcn.0040127a
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x24]
call fcn.0040127a
cmp ebx, esi
jge 0x402252
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40238b
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x10], esi
je 0x40238b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [eax + 0x10]
cmp dword [ebp - 0x30], esi
je 0x4022ab
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x44]
push edx
push esi
push 0x410454
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4022ab
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x10], esi
jne 0x402261
cmp dword [ebp - 0x1c], esi
je 0x40238b
push dword [ebp - 0x1c]
call fcn.004041ba
mov dword [ebp - 0x2c], eax
shl eax, 2
push eax
call fcn.004041d5
pop ecx
xor ebx, ebx
pop ecx
mov edi, eax
mov ecx, 0xd1047b
mov dword [ebp - 0x14], 0xff
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x2c], esi
jle 0x402357
mov eax, dword [ebp - 0x2c]
shl eax, 2
cmp ebx, eax
jae 0x402357
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2]
imul ecx, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
add ecx, edx
xor ecx, 0x173b9c
cmp dword [ebp - 0x20], eax
jle 0x402331
mov edx, dword [ebp - 0x20]
mov esi, edx
sub esi, eax
and esi, 7
jl 0x402346
sub dl, al
inc esi
lea eax, [ebx + ecx]
imul dl
mov byte [ebx + edi], al
inc ebx
add ecx, ebx
xor ecx, 0x1bad
dec esi
jne 0x40231b
jmp 0x402346
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x14]
mov byte [ebx + edi], cl
imul eax, ecx
imul eax, eax, 0x3fd
inc ebx
xor ecx, eax
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
jl 0x4022e2
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
pop ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret