Function at 0x10009fc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x100b0040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edx, [ebp - 0x2e]
call fcn.10009c00
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x1000a21b
mov eax, dword [str.CLSID_]
push ebx
mov dword [ebp - 0x34], eax
mov ax, word [0x1009d848]
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
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 0x1000a11f
push 9
push str.TypeDuck
push 1
push eax
push eax
push dword [ebp - 0x184]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb esi, esi
lea eax, [ebp - 0x188]
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 - 0x184]
and esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ebx, ebx
test eax, eax
cmove ebx, esi
test ebx, ebx
je 0x1000a113
push 0x104
lea eax, [ebp - 0x17c]
push eax
push dword [0x100b5ffc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x188], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a0b7
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 - 0x184]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
pop ebx
je 0x1000a21b
call fcn.100099f0
test eax, eax
je 0x1000a21b
lea eax, [ebp - 0x180]
push eax
push 0x10090570
push 1
push 0
push 0x100905f0
call edi
test eax, eax
jne 0x1000a21b
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push str.c_t4
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x1000a1f9
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push 0x10090630
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x1000a1f9
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push 0x10090640
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x1000a1f9
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push 0x10090650
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x1000a1f9
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push 0x10090660
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x180]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jne 0x1000a21b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005a767
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x180]
mov dword [ebp - 0x180], 0
push eax
push 0x1009db64
push 0x17
push 0
push 0x10090600
call edi
test eax, eax
mov eax, dword [ebp - 0x180]
js 0x1000a263
mov ecx, dword [eax]
push 0
push 0x1009d7e4
push 0xc04
push 0x1009d7f4
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x1000a26d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x180]
push eax
push 0x10090570
push 1
push 0
push 0x100905f0
call edi
test eax, eax
js 0x1000a32f
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push str.c_t4
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1000a323
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push 0x10090630
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1000a323
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push 0x10090640
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1000a323
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push 0x10090650
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1000a323
mov eax, dword [ebp - 0x180]
push 0x1009d7f4
push 0x10090660
push 0x1009d7f4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x180]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [ebp - 0x2e]
call fcn.10009c00
test eax, eax
je 0x1000a395
mov eax, dword [str.CLSID_]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov ecx, SysReAllocString
mov ax, word [0x1009d848]
mov word [ebp - 0x30], ax
call fcn.10009c60
lea edx, [ebp - 0x5e]
call fcn.10009c00
test eax, eax
je 0x1000a395
movups xmm0, xmmword [str.SoftwareMicrosftCTFTIP_]
mov ax, word [0x1009d840]
lea edx, [ebp - 0x78]
mov ecx, SysReAllocString
mov word [ebp - 0x60], ax
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [0x1009d838]
movq qword [ebp - 0x68], xmm0
call fcn.10009c60
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop esi
call fcn.1005a767
mov esp, ebp
pop ebp
ret