Function at 0x405950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427234
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x432adc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Inside_SetNewAutoLogonRegKeys
push 0x42850a
mov dword [ebp - 4], 3
call fcn.004039c0
add esp, 8
call fcn.004079fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4059ab
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
call fcn.004079fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4059d8
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
call fcn.004079fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405a05
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x35
push 0x429620
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
mov dword [ebp - 0x28], 0
call fcn.00406bb0
push 0x39
push str.SOFTWAREMicrosoftWindowsCurrentVersionpolicies_system
lea ecx, [ebp - 0x24]
call fcn.00406bb0
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0xf013f
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405ac3
push edi
push 0x429694
push 0x42850b
call fcn.004039c0
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405abb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x4062c8
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx - 8]
mov esi, dword [ecx - 0xc]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x400
or eax, edx
jge 0x405aed
push 0x400
lea ecx, [ebp + 0x10]
call fcn.004068d0
mov ecx, dword [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push ecx
mov ecx, dword [ebp - 0x10]
push 1
push 0
push str.DefaultDomainName
push ecx
call edi
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x405d3b
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], 0
test esi, esi
jne 0x405b50
mov eax, dword [ebp + 0x10]
push eax
push str.DefaultDomainName_set_to___s
push 0x428521
call fcn.004039c0
add esp, 0xc
jmp 0x405b62
push str.Error_setting_DefaultDomainName
push 0x428522
call fcn.004039c0
add esp, 8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 8]
mov esi, dword [ecx - 0xc]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x400
or eax, edx
jge 0x405b8c
push 0x400
lea ecx, [ebp + 8]
call fcn.004068d0
mov ecx, dword [ebp + 8]
push esi
push ecx
mov ecx, dword [ebp - 0x10]
push 1
push 0
push 0x429704
push ecx
call edi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x405d3b
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
mov byte [eax + edx], 0
test esi, esi
jne 0x405be9
mov eax, dword [ebp + 8]
push eax
push str.DefaultUserName_set_to___s
push 0x428523
call fcn.004039c0
add esp, 0xc
jmp 0x405bfb
push str.Error_setting_DefaultUserName
push 0x428533
call fcn.004039c0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx - 0xc]
mov edx, 1
test esi, esi
jne 0x405d45
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
mov esi, dword [ecx - 0xc]
sub eax, 0x400
or eax, edx
jge 0x405c33
push 0x400
lea ecx, [ebp + 8]
call fcn.004068d0
mov ecx, dword [ebp + 8]
push esi
push ecx
mov ecx, dword [ebp - 0x10]
push 1
push 0
push 0x429750
push ecx
call edi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x405d3b
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
mov byte [eax + edx], 0
test esi, esi
jne 0x405c90
mov eax, dword [ebp + 8]
push eax
push 0x429764
push 0x42853b
call fcn.004039c0
add esp, 0xc
jmp 0x405ca2
push 0x429784
push 0x42853f
call fcn.004039c0
add esp, 8
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx - 8]
mov esi, dword [ecx - 0xc]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x400
or eax, edx
jge 0x405ccc
push 0x400
lea ecx, [ebp + 0x10]
call fcn.004068d0
mov ecx, dword [ebp + 0x10]
push esi
push ecx
mov ecx, dword [ebp - 0x10]
push 1
push 0
push 0x4297a8
push ecx
call edi
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x405d3b
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], 0
test esi, esi
jne 0x405d24
mov eax, dword [ebp + 0x10]
push eax
push 0x4297c0
push 0x42854e
call fcn.004039c0
add esp, 0xc
jmp 0x405ead
push 0x4297e4
push 0x42854f
call fcn.004039c0
add esp, 8
jmp 0x405ead
push 0x80070057
call fcn.00401090
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x400
or eax, edx
jge 0x405d64
push 0x400
lea ecx, [ebp + 0x14]
call fcn.004068d0
mov ecx, dword [ebp + 0x14]
push esi
push ecx
mov ecx, dword [ebp - 0x10]
push 1
push 0
push str.AltDefaultUserName
push ecx
call edi
mov esi, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
mov ecx, dword [ebp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x405d3b
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 0x14]
mov byte [eax + edx], 0
test esi, esi
jne 0x405db9
mov eax, dword [ebp + 0x14]
push eax
push str.AltDefaultUserName_set_to___s
push 0x428576
call fcn.004039c0
add esp, 0xc
jmp 0x405dcb
push str.Error_setting_AltDefaultUserName
push 0x428577
call fcn.004039c0
add esp, 8
call fcn.004079fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405de5
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.004067a0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi - 8]
mov ebx, dword [esi - 0xc]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x405e2a
push 0x400
lea ecx, [ebp - 0x1c]
call fcn.004068d0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push ebx
push esi
push 1
push 0
push str.AltDefaultDomainName
push ecx
call edi
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
cmp eax, dword [esi - 8]
jg 0x405d3b
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
test ebx, ebx
jne 0x405e7b
push esi
push str.AltDefaultDomainName_set_to___s
push 0x428586
call fcn.004039c0
add esp, 0xc
jmp 0x405e8d
push str.Error_setting_AltDefaultDomainName
push 0x428587
call fcn.004039c0
add esp, 8
add esi, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405ead
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 8]
mov esi, dword [ecx - 0xc]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x400
or eax, edx
jge 0x405ed7
push 0x400
lea ecx, [ebp + 0xc]
call fcn.004068d0
mov ecx, dword [ebp + 0xc]
push esi
push ecx
mov ecx, dword [ebp - 0x10]
push 1
push 0
push str.DefaultPassword
push ecx
call edi
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx - 8]
jg 0x405d3b
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 0xc]
mov byte [eax + edx], 0
test esi, esi
jne 0x405f34
mov eax, dword [ebp + 0xc]
push eax
push str.DefaultPassword_set_to___s
push 0x4285a6
call fcn.004039c0
add esp, 0xc
jmp 0x405f46
push str.Error_setting_DefaultPassword
push 0x4285a7
call fcn.004039c0
add esp, 8
push 1
push 0x42990c
lea ecx, [ebp - 0x14]
call fcn.00406bb0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 8]
mov ebx, dword [esi - 0xc]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x405f7f
push 0x400
lea ecx, [ebp - 0x14]
call fcn.004068d0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push ebx
push esi
push 1
push 0
push str.DontDisplayLastUserName
push ecx
call edi
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
cmp eax, dword [esi - 8]
jg 0x405d3b
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
test ebx, ebx
jne 0x405fd0
push esi
push str.DontDisplayLastUserName_set_to___s
push 0x4285c2
call fcn.004039c0
add esp, 0xc
jmp 0x405fe2
push str.Error_setting_DontDisplayLastUserName
push 0x4285c3
call fcn.004039c0
add esp, 8
push 1
push 0x429974
lea ecx, [ebp - 0x14]
call fcn.00406bb0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 8]
mov ebx, dword [esi - 0xc]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x40601b
push 0x400
lea ecx, [ebp - 0x14]
call fcn.004068d0
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push ebx
push esi
push 1
push 0
push str.ForceAutoLogon
push edx
call edi
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
cmp eax, dword [esi - 8]
jg 0x405d3b
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
test ebx, ebx
jne 0x40606c
push esi
push str.ForceAutoLogon_set_to___s
push 0x4285e2
call fcn.004039c0
add esp, 0xc
jmp 0x40607e
push str.Error_setting_ForceAutoLogon
push 0x4285e3
call fcn.004039c0
add esp, 8
push 1
push 0x4299c4
lea ecx, [ebp - 0x14]
call fcn.00406bb0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 8]
mov ebx, dword [esi - 0xc]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x4060b7
push 0x400
lea ecx, [ebp - 0x14]
call fcn.004068d0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push ebx
push esi
push 1
push 0
push str.AutoAdminLogon
push eax
call edi
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004131a5
add esp, 8
test eax, eax
jl 0x405d3b
cmp eax, dword [esi - 8]
jg 0x405d3b
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
test ebx, ebx
jne 0x406108
push esi
push str.AutoAdminLogon_set_to___s
push 0x4285fe
call fcn.004039c0
add esp, 0xc
jmp 0x40611a
push str.Error_setting_AutoAdminLogon
push 0x4285ff
call fcn.004039c0
add esp, 8
mov edx, dword [ebp - 0x10]
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push 0x429a14
push edx
mov dword [ebp - 0x18], 1
call edi
test eax, eax
jne 0x406152
mov eax, dword [ebp - 0x18]
push eax
push str.DisableCAD_set_to___i
push 0x428627
call fcn.004039c0
add esp, 0xc
jmp 0x406164
push str.Error_setting_DisableCAD
push 0x42864b
call fcn.004039c0
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x24]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4061d2
push ebx
push str.Error_RegCreateKey_of___s
push 0x42866b
call fcn.004039c0
add esi, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062a2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4062a2
mov edx, dword [ebp - 0x10]
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push str.DisableCAD
push edx
mov dword [ebp - 0x18], 1
call edi
test eax, eax
jne 0x40620a
mov eax, dword [ebp - 0x18]
push eax
push str.DisableCAD2_set_to___i
push 0x428687
call fcn.004039c0
add esp, 0xc
jmp 0x40621c
push str.Error_setting_DisableCAD2
push 0x4286a7
call fcn.004039c0
add esp, 8
mov edx, dword [ebp - 0x10]
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push str.ScForceOption
push edx
mov dword [ebp - 0x18], 0
call edi
test eax, eax
jne 0x406254
mov eax, dword [ebp - 0x18]
push eax
push str.ScForceOption_set_to___i
push 0x4286c3
call fcn.004039c0
add esp, 0xc
jmp 0x406266
push str.Error_setting_ScForceOption
push 0x4286e5
call fcn.004039c0
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Leaving_SetNewAutoLogonRegKeys
push 0x4286e6
call fcn.004039c0
add esi, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 5
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4062a2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40632b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40634e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406370
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret