Function at 0x425f10
Capabilities:
Connect to wmi namespace via wbemlocator
Print debug messages
Set registry value via stdregprov

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
jns 0x425fc6
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x425f5f
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str._______XD999_initialize_COM_Error_d
push eax
call fcn.004063c0
mov esi, dword [ebp - 0x28]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x425fb2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x42606b
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x425ffb
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str._______XD999_initialize_COM_Error2:_d
push eax
call fcn.004063c0
mov esi, dword [ebp - 0x28]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42604e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x5d04ac
push 1
push 0
push 0x5d057c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
lea ecx, [ebp - 0x28]
test edi, edi
jns 0x4260fa
call fcn.00407e00
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str._______XD999_create_IWbemLocator_d
push eax
call fcn.004063c0
mov esi, dword [ebp - 0x28]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4260e0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ROOTDEFAULT
mov dword [ebp - 0x18], 0
call fcn.00425a50
mov dword [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x42611c
mov edx, dword [eax]
jmp 0x42611e
xor edx, edx
mov eax, dword [ebp - 0x1c]
lea edi, [ebp - 0x18]
push edi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x42614d
call fcn.00425b10
lea ecx, [ebp - 0x28]
test edi, edi
jns 0x4261b3
call fcn.00407e00
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str._______XD999_Could_not_connect_to_WMI_server_d
push eax
call fcn.004063c0
add esp, 0xc
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.StdRegProv
mov dword [ebp - 0x24], 0
call fcn.004259c0
mov dword [ebp - 4], 5
mov edx, dword [eax]
test edx, edx
je 0x4261d5
mov edx, dword [edx]
jmp 0x4261d7
xor edx, edx
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x24]
push 0
push edi
push 0
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4261fe
call fcn.00425b10
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
push 0
push edx
push 0
mov dword [ebp - 0x20], 0
mov ecx, dword [eax]
push 0x5e80c4
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x3c]
push eax
call ebx
mov eax, 3
mov dword [ebp - 0x34], reloc.WS2_32.dll_accept
push 0
mov word [ebp - 0x3c], ax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
push edx
push 0
push str.hDefKey
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x3c]
push eax
call edi
lea eax, [ebp - 0x3c]
push eax
call ebx
mov eax, 8
mov word [ebp - 0x3c], ax
cmp dword [esi + 0x14], eax
jb 0x426285
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x28]
call fcn.00425a50
mov eax, dword [eax]
test eax, eax
je 0x42629b
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
jmp 0x4262a2
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4262ae
call fcn.00425b10
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sSubKeyName
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x3c]
push eax
call edi
lea eax, [ebp - 0x3c]
push eax
call ebx
mov eax, dword [ebp + 8]
mov esi, 8
mov word [ebp - 0x3c], si
cmp dword [eax + 0x14], esi
jb 0x4262e3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.00425a50
mov eax, dword [eax]
test eax, eax
je 0x4262f9
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
jmp 0x426300
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x42630c
call fcn.00425b10
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sValueName
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x3c]
push eax
call edi
lea eax, [ebp - 0x3c]
push eax
call ebx
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x3c], si
cmp dword [eax + 0x14], esi
jb 0x42633c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.00425a50
mov eax, dword [eax]
test eax, eax
je 0x426352
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
jmp 0x426359
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x426365
call fcn.00425b10
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sValue
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x3c]
push eax
call edi
push str.SetStringValue
lea ecx, [ebp - 0x2c]
call fcn.004259c0
mov esi, eax
push str.StdRegProv
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 6
call fcn.004259c0
mov byte [ebp - 4], 7
mov esi, dword [esi]
test esi, esi
je 0x4263b2
mov esi, dword [esi]
jmp 0x4263b4
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4263be
mov edx, dword [eax]
jmp 0x4263c0
xor edx, edx
mov eax, dword [ebp - 0x18]
push 0
push 0
push dword [ebp - 0x14]
mov ecx, dword [eax]
push 0
push 0
push esi
push edx
push eax
call dword [ecx + 0x60]
mov ecx, dword [ebp - 0x28]
mov esi, eax
test ecx, ecx
je 0x4263eb
call fcn.00425b10
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4263fe
call fcn.00425b10
test esi, esi
jns 0x42645c
mov edx, str.Could_not_execute_method.
mov ecx, 0x608de0
call fcn.0042e8c0
push eax
call fcn.0042eb70
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00407e00
mov dword [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x28]
push str._______XD999_ExecMethod_Error_d__d
push eax
call fcn.004063c0
add esp, 0x10
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
jmp 0x426474
mov edx, str.Registry_value_set_successfully.
mov ecx, 0x608ea0
call fcn.0042e8c0
push eax
call fcn.0042eb70
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x426488
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x42649c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4264b0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4264c4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4264d8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret