Function at 0x10147a6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x101ed2c]
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, 0x1001c18
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
push 0xd
xor eax, eax
pop ecx
lea edi, [ebp - 0x3a]
rep stosd dword es:[edi], eax
xor ebx, ebx
cmp dword [0x101ecc8], 2
stosw word es:[edi], ax
lea eax, [ebp - 0x4a8]
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x47c], ebx
mov dword [ebp - 0x474], ebx
mov byte [ebp - 0x470], bl
mov byte [ebp - 0x46f], bl
mov byte [ebp - 0x46e], bl
mov byte [ebp - 0x46d], bl
mov byte [ebp - 0x46c], bl
mov byte [ebp - 0x46b], 5
mov dword [ebp - 0x494], 0xc
mov dword [ebp - 0x48c], ebx
mov dword [ebp - 0x490], eax
mov edi, 0xf003f
jne 0x1014958
lea eax, [ebp - 0x47c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1014944
call fcn.0101426e
cmp eax, ebx
mov dword [ebp - 0x478], eax
je 0x1014944
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 0x488], esi
je 0x1014944
push 1
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1014944
push ebx
push esi
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x1014944
mov esi, 0x400
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x474], eax
jne 0x10148ec
mov esi, 0x100
push esi
lea eax, [ebp - 0x468]
push eax
push 7
jmp 0x10149de
push 2
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x1014944
push dword [ebp - 0x488]
mov esi, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push edi
push 2
push dword [ebp - 0x474]
call esi
test eax, eax
je 0x1014944
push dword [ebp - 0x47c]
push edi
push 2
push dword [ebp - 0x474]
call esi
test eax, eax
je 0x1014944
push ebx
push dword [ebp - 0x474]
lea eax, [ebp - 0x4a8]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1014958
mov esi, 0x100
push esi
lea eax, [ebp - 0x468]
push eax
push 8
jmp 0x10149de
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x494]
push eax
push edi
push ebx
push 0x1001be4
push ebx
lea eax, [ebp - 0x68]
push eax
push reloc.MSSWCH.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10149cf
cmp dword [ebp - 0x484], 1
je 0x101499a
cmp dword [ebp - 0x484], 2
jne 0x10149cf
push 0x1001bc0
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1f8
push dword [0x101ee10]
lea eax, [ebp - 0x68]
push 3
push ebx
push eax
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1014a53
mov esi, 0x100
push esi
lea eax, [ebp - 0x468]
push eax
push 6
push dword [0x101ee0c]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
call edi
push esi
lea eax, [ebp - 0x268]
push eax
push 1
push dword [0x101ee0c]
call edi
push 0x10
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x47c], ebx
je 0x1014a29
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x478], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1014a3f
push dword [ebp - 0x478]
call esi
cmp dword [ebp - 0x474], ebx
je 0x1014a4f
push dword [ebp - 0x474]
call esi
xor eax, eax
jmp 0x1014a99
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x478]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [0x101ee10]
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 0x474], ebx
pop ecx
je 0x1014a96
push dword [ebp - 0x474]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101a8d9
leave
ret