Function at 0x100aa120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101eb278
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x50], esi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 0x3c
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.10003c10
mov byte [ebp - 4], 1
lea edx, [ebp - 0x48]
push edi
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
call fcn.100a8310
sub esp, 0x10
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push ebx
mov word [ecx], ax
call fcn.100040d0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push esi
mov word [ecx], ax
call fcn.100040d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.100a96d0
mov esi, dword [ebp - 0x4c]
add esp, 0x30
cmp si, 5
jbe 0x100aa200
cmp dword [ebp - 0x30], edi
je 0x100aa340
mov ecx, str.SeBackupPrivilege
call fcn.100aa060
test al, al
je 0x100aa218
mov ecx, str.SeRestorePrivilege
call fcn.100aa060
push 0xffffffffffffffff
push 0
push dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
call fcn.10004000
cmp si, 5
jne 0x100aa29a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push 0
push ecx
push 0
push 0x20006
push 4
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x100aa340
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x100aa34e
mov eax, dword [ebx + 0x10]
mov ecx, ebx
lea eax, [eax*2 + 2]
push eax
call fcn.10003390
push eax
push 1
push 0
push str.Progid
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100aa339
jbe 0x100aa340
push 0xb
push str.UserChoice
lea ecx, [ebp - 0x28]
call fcn.10003b30
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push 0
push ecx
push 0
push 0x20006
push 4
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x100aa340
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x100aa34e
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Hash
push edx
call esi
test eax, eax
jne 0x100aa340
mov eax, dword [ebx + 0x10]
mov ecx, ebx
lea eax, [eax*2 + 2]
push eax
call fcn.10003390
push eax
push 1
push 0
push str.ProgId
push dword [ebp - 0x44]
call esi
test eax, eax
jne 0x100aa340
lea edi, [eax + 1]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x100aa34e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 8
jb 0x100aa35f
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x100aa384
push dword [ebp - 0x40]
call fcn.101a02f0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret