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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f4b38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10136674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1004a476
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 8], 0
je 0x1004a715
push eax
lea ecx, [ebp + 8]
call fcn.10005750
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jl 0x1004a4b8
test ecx, ecx
js 0x1004a763
cmp word [eax], 0x22
jne 0x1004a4b8
push 1
push 0
lea ecx, [ebp + 8]
call fcn.1004a1f0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
cmp edx, 1
jl 0x1004a4e5
lea ecx, [edx - 1]
test ecx, ecx
js 0x1004a763
cmp ecx, edx
jg 0x1004a763
cmp word [eax + ecx*2], 0x22
jne 0x1004a4e5
push 1
push ecx
lea ecx, [ebp + 8]
call fcn.1004a1f0
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1004a76d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x2c], ebx
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1004a777
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1004a781
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1004a78b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1004a795
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push str.__s_
push eax
call fcn.10006000
mov eax, dword [ebp - 0x10]
add ebx, 0xfffffff0
add esp, 0xc
or esi, 0xffffffff
lea edi, [eax - 0x10]
cmp edi, ebx
je 0x1004a5d8
cmp dword [ebx + 0xc], 0
jl 0x1004a5cc
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x1004a5cc
push edi
call fcn.10007db0
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, esi
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1004a5c4
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x1004a5d8
push dword [eax - 0xc]
lea ecx, [ebp - 0x2c]
push eax
call fcn.10007690
push 0x14
push str._autorun___fromtask
lea ecx, [ebp - 0x24]
call fcn.10007690
mov eax, dword [ebp + 0x14]
mov edx, str.Starts_halowp_when_a_user_logs_on.
test eax, eax
cmovne edx, eax
test edx, edx
jne 0x1004a5fc
xor ecx, ecx
jmp 0x1004a610
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004a601
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.10007690
mov eax, dword [ebp + 0x18]
mov ecx, str.HaloWP
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp + 0x10], ecx
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.10048ef0
mov ebx, eax
test ebx, ebx
je 0x1004a64e
mov ecx, dword [ebp + 0xc]
push ecx
push str.Add_auto_run_task_schedule_success___s
jmp 0x1004a668
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
call fcn.10048d10
mov ecx, dword [ebp + 0xc]
mov ebx, eax
push ecx
push str.Add_auto_run_register___s
call fcn.100399a0
add esp, 8
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1004a688
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a6a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a6c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a6da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a6f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1004a74d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1004a74d
mov eax, dword [ebp + 0x10]
mov edi, str.HaloWP
test eax, eax
cmovne edi, eax
push edi
call fcn.10049fa0
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x80070057
call fcn.10005ea0
push 0x80004005
call fcn.10005ea0
push 0x80004005
call fcn.10005ea0
push 0x80004005
call fcn.10005ea0
push 0x80004005
call fcn.10005ea0
push 0x80004005
call fcn.10005ea0
int3