Function at 0x404fb9
Capabilities:
Delete registry value
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15b8
call fcn.0040e5f0
push 0x3ed
mov eax, dword [ebp + 8]
push eax
call dword [0x418328]
mov dword [ebp - 0x1558], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1128], ecx
mov dword [ebp - 0x1124], 0
mov dword [ebp - 0x112c], 5
lea edx, [ebp - 0x123c]
mov dword [ebp - 0x1118], edx
mov dword [ebp - 0x1114], 0x104
lea eax, [ebp - 0x112c]
push eax
push 0
push 0x1005
mov ecx, dword [ebp - 0x1558]
push ecx
call dword [0x41835c]
mov edx, dword [ebp - 0x110c]
mov dword [ebp - 0x1138], edx
mov eax, dword [ebp - 0x1138]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1134], ecx
mov dword [ebp - 0x1578], 0
mov dword [ebp - 0x1568], 0x104
lea edx, [ebp - 0x1444]
mov dword [ebp - 0x156c], edx
lea eax, [ebp - 0x1580]
push eax
mov ecx, dword [ebp - 0x1134]
push ecx
push 0x102d
mov edx, dword [ebp - 0x1558]
push edx
call dword [0x41835c]
push str.HKLMSoftwareMicrosoftWindows_NTCurrentVersionWinlogonUserinit
lea eax, [ebp - 0x1444]
push eax
call fcn.0040ecf0
add esp, 8
test eax, eax
jne 0x4050b9
lea ecx, [ebp - 0x123c]
push ecx
push 0x41b808
lea edx, [ebp - 0x104]
push edx
call fcn.0040dddb
add esp, 0xc
jmp 0x4050d4
lea eax, [ebp - 0x123c]
push eax
push 0x41b87c
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040dddb
add esp, 0xc
push 0x34
push 0x41b8ac
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x418314]
cmp eax, 7
jne 0x4050f6
jmp 0x405793
mov ecx, dword [ebp - 0x1138]
xor edx, edx
mov dl, byte [ecx + 0xc]
test edx, edx
jne 0x405117
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403cd8
add esp, 0xc
mov edx, dword [ebp - 0x1138]
mov eax, dword [edx]
mov dword [ebp - 0x15b8], eax
mov ecx, dword [ebp - 0x15b8]
sub ecx, 1
mov dword [ebp - 0x15b8], ecx
cmp dword [ebp - 0x15b8], 7
ja case.default.0x405147
mov edx, dword [ebp - 0x15b8]
jmp dword [edx*4 + 0x405797]
lea eax, [ebp - 0x123c]
push eax
call fcn.00404f2c
add esp, 4
mov dword [ebp - 0x1450], eax
jmp case.default.0x405147
push 0x5c
mov ecx, dword [ebp - 0x1138]
add ecx, 0x111
push ecx
call fcn.0040e530
add esp, 8
test eax, eax
je 0x4051af
push 0x5c
mov edx, dword [ebp - 0x1138]
add edx, 0x111
push edx
call fcn.0040e530
add esp, 8
add eax, 1
push eax
lea eax, [ebp - 0x1340]
push eax
call fcn.0040dc70
add esp, 8
jmp 0x4051cb
mov ecx, dword [ebp - 0x1138]
add ecx, 0x111
push ecx
lea edx, [ebp - 0x1340]
push edx
call fcn.0040dc70
add esp, 8
mov dword [ebp - 0x1450], 2
push 0x41b8b8
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
push 0x41b8d0
push 0x41b8d8
call dword [0x4181fc]
lea ecx, [ebp - 0x1340]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0040de30
add esp, 8
test eax, eax
je 0x405242
push 0
push 0x41b8e0
push 0x41b8e8
call dword [0x418204]
test eax, eax
jne 0x405236
call dword [0x41820c]
mov dword [ebp - 0x1450], eax
jmp 0x405240
mov dword [ebp - 0x1450], 0
jmp 0x4052ad
push 0x41b8f0
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
push 0x41b908
push 0x41b90c
call dword [0x4181fc]
lea ecx, [ebp - 0x1340]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0040de30
add esp, 8
test eax, eax
je 0x4052ad
push 0
push 0x41b914
push str.windows
call dword [0x418204]
test eax, eax
jne 0x4052a3
call dword [0x41820c]
mov dword [ebp - 0x1450], eax
jmp 0x4052ad
mov dword [ebp - 0x1450], 0
jmp case.default.0x405147
lea eax, [ebp - 0x123c]
push eax
call fcn.00404e9f
add esp, 4
mov dword [ebp - 0x1450], eax
jmp case.default.0x405147
mov ecx, dword [ebp - 0x1138]
cmp dword [ecx], 6
jne 0x4052fe
lea edx, [ebp - 0x123c]
push edx
mov eax, dword [ebp - 0x1138]
add eax, 0xd
push eax
push 0x41b920
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040dddb
add esp, 0x10
jmp 0x40531a
mov edx, dword [ebp - 0x1138]
add edx, 0x111
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0040dc70
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
call dword [0x4181f8]
test eax, eax
jne 0x405339
call dword [0x41820c]
mov dword [ebp - 0x1450], eax
jmp 0x405343
mov dword [ebp - 0x1450], 0
jmp case.default.0x405147
push 0x41b928
call fcn.0040dd60
add esp, 4
push eax
push 0x41b930
mov edx, dword [ebp - 0x1138]
add edx, 0xd
push edx
call fcn.0040e320
add esp, 0xc
test eax, eax
jne 0x40537e
mov eax, dword [0x41b0b8]
mov dword [ebp - 0x1448], eax
jmp 0x40538a
mov ecx, dword [0x41b0bc]
mov dword [ebp - 0x1448], ecx
mov edx, dword [ebp - 0x1138]
add edx, 0x12
push edx
lea eax, [ebp - 0x1554]
push eax
call fcn.0040dc70
add esp, 8
push 0x5c
lea ecx, [ebp - 0x1554]
push ecx
call fcn.0040e530
add esp, 8
add eax, 1
mov dword [ebp - 0x1584], eax
push 0x5c
lea edx, [ebp - 0x1554]
push edx
call fcn.0040e530
add esp, 8
mov byte [eax], 0
lea eax, [ebp - 0x144c]
push eax
lea ecx, [ebp - 0x1554]
push ecx
mov edx, dword [ebp - 0x1448]
push edx
call dword [0x41801c]
mov dword [ebp - 0x1450], eax
cmp dword [ebp - 0x1450], 0
jne case.default.0x405147
mov eax, dword [ebp - 0x1138]
cmp dword [eax], 2
jne 0x40542b
mov ecx, dword [ebp - 0x1584]
push ecx
mov edx, dword [ebp - 0x144c]
push edx
call fcn.00402b38
add esp, 8
mov dword [ebp - 0x1450], eax
jmp 0x405661
mov eax, dword [ebp - 0x1138]
cmp dword [eax], 4
jne 0x405559
mov ecx, dword [ebp - 0x144c]
push ecx
call dword [0x41800c]
lea edx, [ebp - 0x144c]
push edx
push 0x2001f
push 0
lea eax, [ebp - 0x1554]
push eax
mov ecx, dword [ebp - 0x1448]
push ecx
call dword [0x418008]
mov dword [ebp - 0x1450], eax
cmp dword [ebp - 0x1450], 0
jne 0x405554
mov dword [ebp - 0x1588], 0x1000
lea edx, [ebp - 0x1588]
push edx
lea eax, [ebp - 0x1104]
push eax
lea ecx, [ebp - 0x1130]
push ecx
push 0
mov edx, dword [ebp - 0x1584]
push edx
mov eax, dword [ebp - 0x144c]
push eax
call dword [0x418018]
mov dword [ebp - 0x1450], eax
cmp dword [ebp - 0x1450], 0
jne 0x405554
lea ecx, [ebp - 0x123c]
push ecx
lea edx, [ebp - 0x1104]
push edx
call fcn.00402ad7
add esp, 8
and eax, 0xff
test eax, eax
je 0x405554
lea eax, [ebp - 0x1104]
push eax
call fcn.00403b66
add esp, 4
and eax, 0xff
test eax, eax
je 0x40553a
lea ecx, [ebp - 0x1104]
push ecx
call fcn.0040dd60
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x1104]
push edx
mov eax, dword [ebp - 0x1130]
push eax
push 0
mov ecx, dword [ebp - 0x1584]
push ecx
mov edx, dword [ebp - 0x144c]
push edx
call dword [0x418020]
mov dword [ebp - 0x1450], eax
jmp 0x405554
mov eax, dword [ebp - 0x1584]
push eax
mov ecx, dword [ebp - 0x144c]
push ecx
call dword [0x418034]
mov dword [ebp - 0x1450], eax
jmp 0x405661
push 0x41b938
mov edx, dword [ebp - 0x1584]
push edx
call fcn.0040e560
add esp, 8
test eax, eax
jne 0x40557a
mov eax, dword [ebp - 0x1584]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1138]
movsx edx, byte [ecx + 0x215]
test edx, edx
je 0x40564d
mov dword [ebp - 0x158c], 0x1000
lea eax, [ebp - 0x158c]
push eax
lea ecx, [ebp - 0x1104]
push ecx
lea edx, [ebp - 0x1130]
push edx
push 0
mov eax, dword [ebp - 0x1584]
push eax
mov ecx, dword [ebp - 0x144c]
push ecx
call dword [0x418018]
lea edx, [ebp - 0x123c]
push edx
lea eax, [ebp - 0x1104]
push eax
call fcn.00402ad7
add esp, 8
lea ecx, [ebp - 0x1104]
push ecx
call fcn.0040dd60
add esp, 4
add eax, 1
mov dword [ebp - 0x158c], eax
lea edx, [ebp - 0x1104]
push edx
call fcn.00403b66
add esp, 4
and eax, 0xff
test eax, eax
je 0x405637
mov eax, dword [ebp - 0x158c]
push eax
lea ecx, [ebp - 0x1104]
push ecx
mov edx, dword [ebp - 0x1130]
push edx
push 0
mov eax, dword [ebp - 0x1584]
push eax
mov ecx, dword [ebp - 0x144c]
push ecx
call dword [0x418020]
jmp 0x40564b
mov edx, dword [ebp - 0x1584]
push edx
mov eax, dword [ebp - 0x144c]
push eax
call dword [0x418034]
jmp 0x405661
mov ecx, dword [ebp - 0x1584]
push ecx
mov edx, dword [ebp - 0x144c]
push edx
call dword [0x418034]
mov eax, dword [ebp - 0x144c]
push eax
call dword [0x41800c]
cmp dword [ebp - 0x1450], 0
jne 0x40577b
mov ecx, dword [ebp - 0x1138]
mov byte [ecx + 4], 1
push 0
mov edx, dword [ebp - 0x1128]
push edx
push 0x1008
mov eax, dword [ebp - 0x1558]
push eax
call dword [0x41835c]
mov dword [ebp - 0x112c], 4
lea ecx, [ebp - 0x112c]
push ecx
push 0
push 0x1005
mov edx, dword [ebp - 0x1558]
push edx
call dword [0x41835c]
test eax, eax
je 0x4056f4
lea eax, [ebp - 0x112c]
push eax
push 0
push 0x1005
mov ecx, dword [ebp - 0x1558]
push ecx
call dword [0x41835c]
test eax, eax
je 0x405745
mov edx, dword [ebp - 0x110c]
cmp dword [edx + 8], 0xffffffff
jne 0x405745
mov eax, dword [ebp - 0x1128]
sub eax, 1
mov dword [ebp - 0x1128], eax
lea ecx, [ebp - 0x112c]
push ecx
push 0
push 0x1005
mov edx, dword [ebp - 0x1558]
push edx
call dword [0x41835c]
mov eax, dword [ebp - 0x110c]
cmp dword [eax + 8], 0xffffffff
jne 0x405745
push 0
mov ecx, dword [ebp - 0x1128]
push ecx
push 0x1008
mov edx, dword [ebp - 0x1558]
push edx
call dword [0x41835c]
mov dword [ebp - 0x15a4], 3
mov dword [ebp - 0x15a8], 3
lea eax, [ebp - 0x15b4]
push eax
mov ecx, dword [ebp - 0x1128]
push ecx
push 0x102b
mov edx, dword [ebp - 0x1558]
push edx
call dword [0x41835c]
jmp 0x405793
mov eax, dword [ebp - 0x1450]
push eax
push str.Eror_deleting_start_setting
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402835
add esp, 0xc
mov esp, ebp
pop ebp
ret