Function at 0x41033300
Capabilities:
Check os version
Extract resource via kernel32 functions
Persist via com hijack
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Entering_WMIDllRegisterServer
push 0x41157f9c
push 0x1000001
push 0xe1
push str.WMIProv.cpp
call fcn.41002c10
add esp, 0x14
call fcn.41040000
test eax, eax
jne 0x41033347
push 0x80004005
call fcn.410011f0
mov edx, dword [eax]
push ebx
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ecx, dword [str.2c6594db_04ad_490f_a447_dc8e2772e9cb]
mov ebx, dword [0x411c2934]
push 0x411bc3e0
add eax, 0x10
push ecx
mov dword [ebp - 0x440], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push 0x80
lea edx, [ebp - 0x104]
push edx
push 0x411bc3e0
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x440]
push str.SOFTWARECLASSESCLSID_s
push ecx
call fcn.41001b10
mov eax, dword [ebp - 0x440]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
add esp, 0xc
lea edx, [ebp - 0x444]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41033475
mov ecx, dword [ebp - 0x444]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 2
push 0x411584dc
push 1
push eax
push eax
push ecx
call esi
mov eax, dword [ebp - 0x444]
lea edx, [ebp - 0x448]
push edx
push str.InprocServer32
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4103346c
push 0x104
lea ecx, [ebp - 0x30c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x30c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41033420
mov ecx, dword [ebp - 0x448]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x30c]
push eax
push 1
push 0
push 0
push ecx
call esi
mov edx, dword [ebp - 0x448]
push 0x14
push 0x4116a828
push 1
push 0
push str.ThreadingModel
push edx
call esi
mov eax, dword [ebp - 0x448]
push eax
call edi
mov ecx, dword [ebp - 0x444]
push ecx
call edi
push 0x110
lea edx, [ebp - 0x434]
push 0
push edx
call fcn.4112eb40
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 0x43c], 0
mov esi, 0x72
mov dword [ebp - 0x438], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410334d9
cmp dword [ebp - 0x428], 2
jne 0x410334d9
mov eax, dword [ebp - 0x434]
cmp eax, 5
ja 0x410334d4
jne 0x410334d9
cmp dword [ebp - 0x430], 0
jbe 0x410334d9
mov esi, 0xd7
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x43c]
push ecx
push 0x4116d484
push 1
push 0
push 0x4116d414
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jne 0x4103359b
movzx edx, si
push 0x4116a800
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4103358d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4103358d
lea edx, [ebp - 0x324]
push edx
push 0
push 0
push 0
push 0
mov ecx, 0xcdcdcdcd
push 0
push 0
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x310], ecx
mov ecx, dword [ebp - 0x43c]
mov edi, dword [ecx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [ebp - 0x43c]
push eax
call ecx
mov edi, eax
mov eax, dword [ebp - 0x43c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410335bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret