Function at 0x487c10
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 0x4e6aed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x51c100]
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 0x487f14
test edi, edi
je 0x487f14
push edi
push esi
call fcn.004b9f47
add esp, 8
test eax, eax
je 0x487f14
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 0x487ca0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.0040a4a0
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 0x487ce0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040a4a0
push 0x503774
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x487efa
push 0x504190
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x487efa
call fcn.0048bb60
test al, al
jne 0x487d5d
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 0x487d52
cmp dword [ebp - 0x18], 0
jne 0x487d5d
mov dword [ebp - 0x18], 0xf003f
xor esi, esi
jmp 0x487d8e
lea ecx, [ebp - 0x30]
call fcn.00487b80
test al, al
mov ecx, 0x200
mov esi, 0x100
cmovne esi, ecx
lea ecx, [ebp - 0x4c]
call fcn.00487b80
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 0x487f02
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 0x487f02
cmp dword [ebp - 0x34], 2
jne 0x487e14
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 0x487f02
push 0
push dword [ebp - 0x68]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x487f02
push dword [ebp - 0x68]
mov esi, dword [ebp - 0x70]
mov ecx, esi
call dword [0x4e933c]
call esi
test eax, eax
je 0x487e47
mov esi, 5
jmp 0x487f02
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 0x487f02
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.0040a4a0
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 0x487eb0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x64]
call fcn.0040a0d0
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.0040a590
jmp 0x487f02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x4c]
call fcn.0040a590
lea ecx, [ebp - 0x30]
call fcn.0040a590
jmp 0x487f19
mov esi, 0x57
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x487f27
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x487f35
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.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret