Function at 0x435640
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df8f6
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x51c91c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x22c], eax
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x435684
xor eax, eax
jmp 0x4359e4
cmp dword [ebp + 8], 0
je 0x4359ab
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00469210
add esp, 0xc
lea eax, [ebp - 0x218]
push str.mctray.exe
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.00404320
mov ecx, eax
test ecx, ecx
je 0x435a02
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x240], edi
call fcn.00404320
mov ecx, eax
test ecx, ecx
je 0x435a0c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
call fcn.00404320
mov ecx, eax
test ecx, ecx
je 0x435a16
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
call fcn.00404320
mov ecx, eax
test ecx, ecx
je 0x435a20
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 0
call fcn.00404320
mov ecx, eax
test ecx, ecx
je 0x435a2a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x224]
push str.__s_
push eax
call fcn.0040a1d0
mov eax, dword [ebp - 0x224]
add edi, 0xfffffff0
add esp, 0xc
or esi, 0xffffffff
lea ebx, [eax - 0x10]
cmp ebx, edi
je 0x4357d2
cmp dword [edi + 0xc], 0
jl 0x4357c3
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x4357c3
push ebx
call fcn.00403830
add esp, 4
mov dword [ebp - 0x21c], eax
mov ecx, esi
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4357b8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x21c]
add eax, 0x10
mov dword [ebp - 0x240], eax
jmp 0x4357d2
push dword [eax - 0xc]
lea ecx, [ebp - 0x240]
push eax
call fcn.00404ae0
push 0x14
push str._autorun___fromtask
lea ecx, [ebp - 0x238]
call fcn.00404ae0
push 0x25
push str.Starts_mcsafebox_when_a_user_logs_on.
lea ecx, [ebp - 0x234]
call fcn.00404ae0
cmp dword [0x51b528], 0
mov dword [ebp - 0x230], 1
je 0x4358b7
push str.ntdll.dll
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4358ad
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435884
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
call eax
movzx eax, word [ebp - 0x220]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x228], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x228], 0
je 0x4358ad
mov eax, dword [0x51fac8]
mov ecx, 1
cmp dword [ebp - 0x21c], 6
cmovae eax, ecx
mov dword [0x51fac8], eax
mov dword [0x51b528], 0
cmp dword [0x51fac8], 0
je 0x4358eb
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x240]
push eax
push str.McSafeBox
call fcn.004341c0
mov edi, eax
test edi, edi
je 0x4358eb
lea eax, [ebp - 0x218]
push eax
push str.Add_auto_run_task_schedule_success___s
jmp 0x435910
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x240]
push eax
push str.McSafeBox
call fcn.00433fe0
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push str.Add_auto_run_register___s
call fcn.00423b70
add esp, 8
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x435930
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x234]
mov eax, esi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435954
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x238]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435971
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x23c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43598e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4359e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4359e2
push str.McSafeBox
call fcn.00435270
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push str.McSafeBox
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call esi
push str.McSafeBox
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004530b8
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036d0
push 0x80004005
call fcn.004036d0
push 0x80004005
call fcn.004036d0
push 0x80004005
call fcn.004036d0
push 0x80004005
call fcn.004036d0
int3