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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x62e040]
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 0x476c5a
push 0
push 0x80
push 0x62fcf0
push 0xfffffffffffffffd
push 0x20006
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
test esi, esi
js 0x476d67
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 0x476d67
mov ecx, dword [0x630028]
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 0x476b26
mov esi, 0xc0000106
jmp 0x476d67
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 0x476d67
mov ecx, dword [0x62fce8]
test ecx, ecx
jne 0x476b59
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x476b71
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], 0x5cc984
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 0x476d67
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 0x476c30
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 4
jne 0x476c21
cmp dword [eax + 8], 4
jne 0x476c21
mov esi, dword [eax + 0xc]
push eax
push 0
push dword [0x635044]
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 0x630030
push dword [ebp - 0x14]
call sym.SystemInformer.exe_PhSetValueKey
jmp 0x476d5c
push 0x62fcf0
push 0xfffffffffffffffd
push 0x10000
push eax
call sym.SystemInformer.exe_PhOpenKey
test eax, eax
js 0x476c92
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 0x476c92
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov ecx, dword [0x62fce8]
test ecx, ecx
jne 0x476ca7
lea esp, [esp]
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x476cbf
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], 0x5cc984
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 0x476d67
mov ecx, dword [0x630030]
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 0x476d4f
mov esi, 0xc0000106
jmp 0x476d5e
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 0x476d75
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x476d86
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.005802ef
mov esp, ebp
pop ebp
ret