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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x62f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov bl, cl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
push eax
call sym.SystemInformer.exe_PhGetBaseName
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov edi, eax
lea eax, [ebp - 0x18]
push 0
test bl, bl
je 0x47707a
push 0
push 0x80
push 0x630cf0
push 0xfffffffffffffffd
push 0x20006
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
test esi, esi
js 0x477187
push 0
push 0
push 0x80
push edi
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push 0x20006
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
test esi, esi
js 0x477187
mov ecx, dword [0x631028]
mov dword [ebp - 0x10], 4
mov word [ebp - 0xc], cx
lea eax, [ecx + 2]
mov word [ebp - 0xa], ax
mov eax, dword [str.ReportingMode]
mov dword [ebp - 8], eax
cmp ecx, 0xfffe
jbe 0x476f46
mov esi, 0xc0000106
jmp 0x477187
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
js 0x477187
mov ecx, dword [0x630ce8]
test ecx, ecx
jne 0x476f79
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x476f91
mov eax, dword [str.SoftwareMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_taskmgr.exe]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
mov dword [ebp - 0xc], ecx
call sym.SystemInformer.exe_PhCreateString3
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
push eax
call sym.SystemInformer.exe_PhGetBaseDirectory
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov esi, eax
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
push eax
call sym.SystemInformer.exe_PhGetBaseName
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push eax
push esi
mov dword [ebp - 8], 0x5cd984
call sym.SystemInformer.exe_PhConcatStringRef3
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
push 0
push 0
push 0x80
push eax
push 0xfffffffffffffffd
push 0x20006
lea eax, [ebp - 0x14]
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
test esi, esi
js 0x477187
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0x14
push eax
push 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], str.GlobalFlag
push eax
push dword [ebp - 0x14]
or esi, 0xffffffff
call sym.SystemInformer.exe_PhQueryValueKey
test eax, eax
js 0x477050
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 4
jne 0x477041
cmp dword [eax + 8], 4
jne 0x477041
mov esi, dword [eax + 0xc]
push eax
push 0
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
cmp esi, 0xffffffff
push 4
cmovne eax, esi
or eax, 0x200
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0x631030
push dword [ebp - 0x14]
call sym.SystemInformer.exe_PhSetValueKey
jmp 0x47717c
push 0x630cf0
push 0xfffffffffffffffd
push 0x10000
push eax
call sym.SystemInformer.exe_PhOpenKey
test eax, eax
js 0x4770b2
push 0
push edi
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push 0x10000
push eax
call sym.SystemInformer.exe_PhOpenKey
test eax, eax
js 0x4770b2
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov ecx, dword [0x630ce8]
test ecx, ecx
jne 0x4770c7
lea esp, [esp]
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x4770df
mov eax, dword [str.SoftwareMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_taskmgr.exe]
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ebp - 0x24], ecx
call sym.SystemInformer.exe_PhCreateString3
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
push eax
call sym.SystemInformer.exe_PhGetBaseDirectory
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
mov esi, eax
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
push eax
call sym.SystemInformer.exe_PhGetBaseName
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 2
push eax
push esi
mov dword [ebp - 0x20], 0x5cd984
call sym.SystemInformer.exe_PhConcatStringRef3
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
push 0
push eax
push 0xfffffffffffffffd
push 0x20006
lea eax, [ebp - 0x14]
push eax
call sym.SystemInformer.exe_PhOpenKey
mov esi, eax
test esi, esi
js 0x477187
mov ecx, dword [0x631030]
mov word ds:[ebp - 0xc], cx
lea eax, [ecx + 2]
mov word [ebp - 0xa], ax
mov eax, dword [str.GlobalFlag]
mov dword [ebp - 8], eax
cmp ecx, 0xfffe
jbe 0x47716f
mov esi, 0xc0000106
jmp 0x47717e
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x477195
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4771a6
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058078f
mov esp, ebp
pop ebp
ret