Function at 0x10008800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x1009b01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edx, [ebp - 0x2e]
call fcn.10008440
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x100089f3
mov eax, dword [str.CLSID_]
push ebx
mov dword [ebp - 0x34], eax
mov ax, word [0x1008a030]
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 0x1000895f
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 0x10008953
push 0x104
lea eax, [ebp - 0x17c]
push eax
push dword [0x100a0638]
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 0x100088f7
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 0x100089f3
call fcn.10008230
test eax, eax
je 0x100089f3
lea eax, [ebp - 0x184]
push eax
push 0x10080580
push 1
push 0
push 0x10080600
call edi
test eax, eax
jne 0x100089f3
lea edi, [eax + 1]
mov esi, 0x100a0660
nop dword [eax + eax]
mov eax, dword [ebp - 0x184]
push 0x10089fdc
push esi
push 0x10089fdc
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, 0x100a0760
jne 0x100089a0
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
je 0x100089ed
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d16d
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 0x1008a3f8
push 0x17
push 0
push 0x10080610
call edi
test eax, eax
mov eax, dword [ebp - 0x180]
js 0x10008a3b
mov ecx, dword [eax]
push 0
push 0x10089fcc
push 0x804
push 0x10089fdc
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x10008a45
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x184]
push eax
push 0x10080580
push 1
push 0
push 0x10080600
call edi
test eax, eax
js 0x10008a9e
mov esi, 0x100a0660
nop word [eax + eax]
mov eax, dword [ebp - 0x184]
push 0x10089fdc
push esi
push 0x10089fdc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
add esi, 0x10
cmp esi, 0x100a0760
jne 0x10008a70
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [ebp - 0x2e]
call fcn.10008440
test eax, eax
je 0x10008b04
mov eax, dword [str.CLSID_]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov ecx, SysReAllocString
mov ax, word [0x1008a030]
mov word [ebp - 0x30], ax
call fcn.100084a0
lea edx, [ebp - 0x5e]
call fcn.10008440
test eax, eax
je 0x10008b04
movups xmm0, xmmword [str.SoftwareMicrosftCTFTIP_]
mov ax, word [0x1008a028]
lea edx, [ebp - 0x78]
mov ecx, SysReAllocString
mov word [ebp - 0x60], ax
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [0x1008a020]
movq qword [ebp - 0x68], xmm0
call fcn.100084a0
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop esi
call fcn.1004d16d
mov esp, ebp
pop ebp
ret