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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x62a040]
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 0x4755fa
push 0
push 0x80
push 0x62bce0
push 0xfffffffffffffffd
push 0x20006
push eax
call sym.SystemInformer.exe_PhCreateKey
mov esi, eax
test esi, esi
js 0x475707
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 0x475707
mov ecx, dword [0x62c018]
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 0x4754c6
mov esi, 0xc0000106
jmp 0x475707
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 0x475707
mov ecx, dword [0x62bcd8]
test ecx, ecx
jne 0x4754f9
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x475511
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], 0x5c98a4
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 0x475707
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 0x4755d0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 4
jne 0x4755c1
cmp dword [eax + 8], 4
jne 0x4755c1
mov esi, dword [eax + 0xc]
push eax
push 0
push dword [0x631034]
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 0x62c020
push dword [ebp - 0x14]
call sym.SystemInformer.exe_PhSetValueKey
jmp 0x4756fc
push 0x62bce0
push 0xfffffffffffffffd
push 0x10000
push eax
call sym.SystemInformer.exe_PhOpenKey
test eax, eax
js 0x475632
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 0x475632
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov ecx, dword [0x62bcd8]
test ecx, ecx
jne 0x475647
lea esp, [esp]
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x47565f
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], 0x5c98a4
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 0x475707
mov ecx, dword [0x62c020]
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 0x4756ef
mov esi, 0xc0000106
jmp 0x4756fe
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 0x475715
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x475726
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.0057c26f
mov esp, ebp
pop ebp
ret