Function at 0x100040e0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x100430b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [str.SOFTWARE]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x370], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x368], eax
mov ax, word [0x10032214]
push 0x2e
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x32]
push 0
push eax
movups xmmword [ebp - 0x44], xmm0
call fcn.1001ac20
push 0xc8
lea eax, [ebp - 0x1d4]
push 0
push eax
call fcn.1001ac20
push 0xc8
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.1001ac20
push 0x190
lea eax, [ebp - 0x364]
push 0
push eax
call fcn.1001ac20
add esp, 0x30
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0x44]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1d6], ax
test ax, ax
jne 0x10004180
lea edi, [ebp - 0x1d4]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100041a0
mov eax, dword [0x10031718]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x100041b5
lea edi, [ebp - 0x1d4]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100041d0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x1d4]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x10e], ax
test ax, ax
jne 0x100041f0
lea edi, [ebp - 0x10c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10004211
mov ecx, 7
mov esi, str.Capabilities
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0x10c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x366], ax
test ax, ax
jne 0x10004230
lea edi, [ebp - 0x364]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10004251
lea eax, [ebp - 0x364]
mov ecx, 9
mov esi, str.FileAssociations
push eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [ebp - 0x10c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp dword [ebp + 0x1c], 0
je 0x10004363
mov esi, dword [ebp - 0x368]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100042a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x10c]
push 1
push str.AppDesc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [ebp - 0x36c]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100042e0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push str.AppIcon
lea eax, [ebp - 0x10c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [ebp - 0x370]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004320
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push str.AppName
lea eax, [ebp - 0x10c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x364]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018315
mov esp, ebp
pop ebp
ret 0x18