Function at 0x1000d300
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc8fe
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x338], ecx
lea ecx, [ebp - 0x32c]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x1000d630
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1000d64c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x344], esi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
js 0x1000d3ce
mov edx, dword [ebp - 0x340]
test edx, edx
jne 0x1000d39a
xor ecx, ecx
jmp 0x1000d3af
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d3a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x344]
call fcn.10006ab0
push dword [ebp - 0x340]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x344]
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1000d656
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x330], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x330]
push esi
push str.CLSID_sLocalServer32
push eax
call fcn.10004840
mov edi, dword [ebp - 0x330]
lea eax, [ebp - 0x33c]
add esp, 0xc
push eax
push 0x20019
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
je 0x1000d4a1
push esi
lea eax, [ebp - 0x330]
push str.CLSID_sLocalServer
push eax
call fcn.10004840
mov edi, dword [ebp - 0x330]
lea eax, [ebp - 0x33c]
add esp, 0xc
push eax
push 0x20019
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000d4a1
push esi
lea eax, [ebp - 0x330]
push str.CLSID_sInprocServer32
push eax
call fcn.10004840
mov edi, dword [ebp - 0x330]
lea eax, [ebp - 0x33c]
add esp, 0xc
push eax
push 0x20019
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d5f9
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.101a08b0
add esp, 0xc
mov dword [ebp - 0x348], 0x104
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000d5ed
push 0x208
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x31c]
push 0x208
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d520
sub ecx, edx
lea eax, [ebp - 0x31c]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x338]
push eax
call fcn.10006ab0
mov ecx, dword [ebp - 0x338]
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x334], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x334]
call fcn.10009620
mov eax, dword [ebp - 0x334]
cmp dword [eax - 0xc], 0
jl 0x1000d5d2
push str._automation
push eax
call fcn.1019f712
mov edx, eax
add esp, 8
mov eax, dword [ebp - 0x334]
test edx, edx
je 0x1000d5d2
sub edx, eax
sar edx, 1
js 0x1000d5d2
mov ecx, dword [ebp - 0x338]
lea eax, [ebp - 0x34c]
push edx
push eax
call fcn.10009550
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x338]
push eax
call fcn.100079d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34c]
call fcn.10003950
mov eax, dword [ebp - 0x334]
mov byte [ebp - 4], 3
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d5ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000d614
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000d630
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
push 0x80004005
call fcn.10004040
int3