Function at 0x100085f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x1009c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edx, [ebp - 0x2e]
call fcn.10008230
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x100087e3
mov eax, dword [str.CLSID_]
push ebx
mov dword [ebp - 0x34], eax
mov ax, word [0x1008b01c]
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x1000874f
push 7
push str.Weasel
push 1
push eax
push eax
push dword [ebp - 0x188]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb esi, esi
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x180]
inc esi
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.InprocServer32
push dword [ebp - 0x188]
and esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ebx, ebx
test eax, eax
cmove ebx, esi
test ebx, ebx
je 0x10008743
push 0x104
lea eax, [ebp - 0x17c]
push eax
push dword [0x100a1698]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x184], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100086e7
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x17c]
push eax
push 1
push 0
push 0
push dword [ebp - 0x180]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xa
push str.Apartment
push 1
neg eax
push 0
sbb esi, esi
push str.ThreadingModel
push dword [ebp - 0x180]
inc esi
and esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x180]
xor ebx, ebx
test eax, eax
cmove ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x188]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
pop ebx
je 0x100087e3
call fcn.10008020
test eax, eax
je 0x100087e3
lea eax, [ebp - 0x184]
push eax
push 0x10081580
push 1
push 0
push 0x10081600
call edi
test eax, eax
jne 0x100087e3
lea edi, [eax + 1]
mov esi, 0x100a16c0
nop dword [eax + eax]
mov eax, dword [ebp - 0x184]
push 0x1008afc8
push esi
push 0x1008afc8
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
xor ecx, ecx
test eax, eax
cmove ecx, edi
add esi, 0x10
mov edi, ecx
cmp esi, 0x100a17c0
jne 0x10008790
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
je 0x100087dd
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004dfe8
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x180]
mov dword [ebp - 0x180], 0
push eax
push 0x1008b3d8
push 0x17
push 0
push 0x10081610
call edi
test eax, eax
mov eax, dword [ebp - 0x180]
js 0x1000882b
mov ecx, dword [eax]
push 0
push 0x1008afb8
push 0x404
push 0x1008afc8
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x10008835
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x184]
push eax
push 0x10081580
push 1
push 0
push 0x10081600
call edi
test eax, eax
js 0x1000888e
mov esi, 0x100a16c0
nop word [eax + eax]
mov eax, dword [ebp - 0x184]
push 0x1008afc8
push esi
push 0x1008afc8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
add esi, 0x10
cmp esi, 0x100a17c0
jne 0x10008860
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [ebp - 0x2e]
call fcn.10008230
test eax, eax
je 0x100088f4
mov eax, dword [str.CLSID_]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov ecx, SysReAllocString
mov ax, word [0x1008b01c]
mov word [ebp - 0x30], ax
call fcn.10008290
lea edx, [ebp - 0x5e]
call fcn.10008230
test eax, eax
je 0x100088f4
movups xmm0, xmmword [str.SoftwareMicrosftCTFTIP_]
mov ax, word [0x1008b014]
lea edx, [ebp - 0x78]
mov ecx, SysReAllocString
mov word [ebp - 0x60], ax
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [0x1008b00c]
movq qword [ebp - 0x68], xmm0
call fcn.10008290
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop esi
call fcn.1004dfe8
mov esp, ebp
pop ebp
ret