Function at 0x10009fa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x100ab040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edx, [ebp - 0x2e]
call fcn.10009be0
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x1000a1fb
mov eax, dword [str.CLSID_]
push ebx
mov dword [ebp - 0x34], eax
mov ax, word [0x10097da8]
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 0x1000a0ff
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 0x1000a0f3
push 0x104
lea eax, [ebp - 0x17c]
push eax
push dword [0x100b0fec]
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 0x1000a097
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 0x1000a1fb
call fcn.100099d0
test eax, eax
je 0x1000a1fb
lea eax, [ebp - 0x180]
push eax
push 0x1008e550
push 1
push 0
push 0x1008e5d0
call edi
test eax, eax
jne 0x1000a1fb
mov eax, dword [ebp - 0x180]
push 0x10097d54
push str.c_t4
push 0x10097d54
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x1000a1d9
mov eax, dword [ebp - 0x180]
push 0x10097d54
push 0x1008e610
push 0x10097d54
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x1000a1d9
mov eax, dword [ebp - 0x180]
push 0x10097d54
push 0x1008e620
push 0x10097d54
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x1000a1d9
mov eax, dword [ebp - 0x180]
push 0x10097d54
push 0x1008e630
push 0x10097d54
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x1000a1d9
mov eax, dword [ebp - 0x180]
push 0x10097d54
push 0x1008e640
push 0x10097d54
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 0x1000a1fb
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005a59c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x180]
mov dword [ebp - 0x180], 0
push eax
push 0x100980f4
push 0x17
push 0
push 0x1008e5e0
call edi
test eax, eax
mov eax, dword [ebp - 0x180]
js 0x1000a243
mov ecx, dword [eax]
push 0
push 0x10097d44
push 0xc04
push 0x10097d54
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x180]
test eax, eax
je 0x1000a24d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x180]
push eax
push 0x1008e550
push 1
push 0
push 0x1008e5d0
call edi
test eax, eax
js 0x1000a30f
mov eax, dword [ebp - 0x180]
push 0x10097d54
push str.c_t4
push 0x10097d54
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1000a303
mov eax, dword [ebp - 0x180]
push 0x10097d54
push 0x1008e610
push 0x10097d54
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1000a303
mov eax, dword [ebp - 0x180]
push 0x10097d54
push 0x1008e620
push 0x10097d54
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1000a303
mov eax, dword [ebp - 0x180]
push 0x10097d54
push 0x1008e630
push 0x10097d54
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1000a303
mov eax, dword [ebp - 0x180]
push 0x10097d54
push 0x1008e640
push 0x10097d54
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.10009be0
test eax, eax
je 0x1000a375
mov eax, dword [str.CLSID_]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov ecx, SysReAllocString
mov ax, word [0x10097da8]
mov word [ebp - 0x30], ax
call fcn.10009c40
lea edx, [ebp - 0x5e]
call fcn.10009be0
test eax, eax
je 0x1000a375
movups xmm0, xmmword [str.SoftwareMicrosftCTFTIP_]
mov ax, word [0x10097da0]
lea edx, [ebp - 0x78]
mov ecx, SysReAllocString
mov word [ebp - 0x60], ax
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [0x10097d98]
movq qword [ebp - 0x68], xmm0
call fcn.10009c40
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop esi
call fcn.1005a59c
mov esp, ebp
pop ebp
ret