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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x101d9154]
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 [0x101734d0]
push 0x2e
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x32]
push 0
push eax
movups xmmword [ebp - 0x44], xmm0
call fcn.10080190
push 0xc8
lea eax, [ebp - 0x1d4]
push 0
push eax
call fcn.10080190
push 0xc8
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.10080190
push 0x190
lea eax, [ebp - 0x364]
push 0
push eax
call fcn.10080190
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 0x10004100
lea edi, [ebp - 0x1d4]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10004120
mov eax, dword [0x101734d4]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10004135
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 0x10004150
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 0x10004170
lea edi, [ebp - 0x10c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10004191
mov ecx, 7
mov esi, 0x101734d8
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 0x100041b0
lea edi, [ebp - 0x364]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100041d1
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.WS2_32.dll_bind
call esi
lea eax, [ebp - 0x10c]
push eax
push reloc.WS2_32.dll_bind
call esi
cmp dword [ebp + 0x1c], 0
je 0x100042e3
mov esi, dword [ebp - 0x368]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004220
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.WS2_32.dll_bind
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 0x10004260
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.WS2_32.dll_bind
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 0x100042a0
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.WS2_32.dll_bind
call esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x364]
push eax
push reloc.WS2_32.dll_bind
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10062ee4
mov esp, ebp
pop ebp
ret 0x18