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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x62d040]
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 0x47665a
push 0
push 0x80
push 0x62ece0
push 0xfffffffffffffffd
push 0x20006
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
test esi, esi
js 0x476767
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 0x476767
mov ecx, dword [0x62f018]
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 0x476526
mov esi, 0xc0000106
jmp 0x476767
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 0x476767
mov ecx, dword [0x62ecd8]
test ecx, ecx
jne 0x476559
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x476571
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], 0x5cc86c
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 0x476767
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 0x476630
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 4
jne 0x476621
cmp dword [eax + 8], 4
jne 0x476621
mov esi, dword [eax + 0xc]
push eax
push 0
push dword [0x6337d4]
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 0x62f020
push dword [ebp - 0x14]
call sym.SystemInformer.exe_PhSetValueKey
jmp 0x47675c
push 0x62ece0
push 0xfffffffffffffffd
push 0x10000
push eax
call sym.SystemInformer.exe_PhOpenKey
test eax, eax
js 0x476692
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 0x476692
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov ecx, dword [0x62ecd8]
test ecx, ecx
jne 0x4766a7
lea esp, [esp]
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x4766bf
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], 0x5cc86c
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 0x476767
mov ecx, dword [0x62f020]
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 0x47674f
mov esi, 0xc0000106
jmp 0x47675e
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 0x476775
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x476786
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.0057fcaf
mov esp, ebp
pop ebp
ret