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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea3cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
test esi, esi
je 0x48b154
test edi, edi
je 0x48b154
push edi
push esi
call fcn.004bd221
add esp, 8
test eax, eax
je 0x48b154
mov ecx, esi
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48aee0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.0040a370
mov ecx, edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48af20
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040a370
push 0x507b68
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48b13a
push 0x508784
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x48b13a
call fcn.0048edc0
test al, al
jne 0x48af9d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x48af92
cmp dword [ebp - 0x18], 0
jne 0x48af9d
mov dword [ebp - 0x18], 0xf003f
xor esi, esi
jmp 0x48afce
lea ecx, [ebp - 0x30]
call fcn.0048adc0
test al, al
mov ecx, 0x200
mov esi, 0x100
cmovne esi, ecx
lea ecx, [ebp - 0x4c]
call fcn.0048adc0
test al, al
mov ecx, 0xf013f
mov edx, 0xf023f
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push 0
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
or esi, 0xf003f
push esi
push 0
push 0
push 0
push eax
push 0x80000002
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x48b142
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x6c]
push esi
push ecx
push esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push esi
push esi
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x48b142
cmp dword [ebp - 0x34], 2
jne 0x48b054
push eax
push dword [ebp - 0x6c]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
mov esi, eax
test esi, esi
jne 0x48b142
push 0
push dword [ebp - 0x68]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x48b142
push dword [ebp - 0x68]
mov esi, dword [ebp - 0x70]
mov ecx, esi
call dword [0x4ed33c]
call esi
test eax, eax
je 0x48b087
mov esi, 5
jmp 0x48b142
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push ecx
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 0
push ecx
push 2
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x48b142
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 0x54], eax
push str.RegistryMACHINE_
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], eax
movups xmmword [ebp - 0x64], xmm0
call fcn.0040a370
mov ecx, edi
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b0f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x50], 8
lea ecx, [eax + eax]
push ecx
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
push 6
push 0
push str.SymbolicLinkValue
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.0040a450
jmp 0x48b142
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x4c]
call fcn.0040a450
lea ecx, [ebp - 0x30]
call fcn.0040a450
jmp 0x48b159
mov esi, 0x57
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x48b167
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x48b175
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret