Function at 0x401890
Capabilities:
Get system information on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52821b
mov eax, dword fs:[0]
push eax
sub esp, 0xc50
mov eax, dword [0x573790]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
lea edx, [ebp - 0xc5c]
mov dword [ebp - 0xc38], eax
mov dword [ebp - 0xc34], ecx
mov ebx, 0x20106
test edx, edx
je 0x401914
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401907
lea ecx, [ebp - 0xc5c]
push ecx
call eax
jmp 0x401914
lea edx, [ebp - 0xc5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0xc5c]
cmp ax, 9
je 0x40192c
cmp ax, 6
je 0x40192c
mov ebx, 0x20006
lea eax, [ebp - 0xc30]
push eax
push ebx
push 0
push str.SoftWareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4019f3
cmp dword [0x574a98], 0x10
mov eax, dword [0x574a84]
jae 0x401961
mov eax, 0x574a84
push edi
push esi
push eax
lea ecx, [ebp - 0x410]
push str._s3cDaemon.exe__R__s__s
push ecx
call fcn.004ff6e3
lea eax, [ebp - 0x410]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401981
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
push eax
mov eax, dword [ebp - 0xc30]
lea edx, [ebp - 0x410]
push edx
push 1
push 0
push 0x553964
push eax
call edi
test eax, eax
jne 0x4019c6
lea ecx, [ebp - 0x810]
push 0x553970
push ecx
call fcn.004ff6e3
push 0x553970
jmp 0x4019dc
lea edx, [ebp - 0x810]
push 0x553990
push edx
call fcn.004ff6e3
push 0x553990
call fcn.004012b0
mov eax, dword [ebp - 0xc30]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401a17
lea ecx, [ebp - 0x810]
push 0x5539b0
push ecx
call fcn.004ff6e3
push 0x5539b0
call fcn.004012b0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0xc
mov esi, dword [ebp - 0xc34]
mov eax, esi
mov dword [ebp - 0xc18], 0xf
mov dword [ebp - 0xc1c], 0
mov byte [ebp - 0xc2c], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a40
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0xc2c]
call fcn.00408e80
mov dword [ebp - 4], 0
cmp esi, 0x554a2f
jne 0x401a7e
cmp dword [ebp - 0xc18], 0x10
jb 0x401be2
mov edx, dword [ebp - 0xc2c]
push edx
jmp 0x401bda
lea eax, [ebp - 0xc30]
push eax
push ebx
push 0
push str.SoftWareMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ba6
lea ecx, [ebp - 0x410]
push 0x5539f8
push ecx
call fcn.004ff6e3
lea eax, [ebp - 0x410]
add esp, 8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ac0
sub eax, edx
push eax
mov eax, dword [ebp - 0xc30]
lea edx, [ebp - 0x410]
push edx
push 1
push 0
push str.AutoAdminLogon
push eax
call edi
test eax, eax
jne 0x401b79
mov ecx, dword [ebp - 0xc38]
push ecx
lea edx, [ebp - 0x410]
push edx
call fcn.004ff6e3
lea eax, [ebp - 0x410]
add esp, 8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b10
mov ecx, dword [ebp - 0xc30]
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push str.DefaultUserName
push ecx
call edi
test eax, eax
jne 0x401b97
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b40
sub eax, edx
mov edx, dword [ebp - 0xc30]
push eax
push esi
push 1
push 0
push str.DefaultPassword
push edx
call edi
test eax, eax
jne 0x401b97
lea eax, [ebp - 0x810]
push 0x553a2c
push eax
call fcn.004ff6e3
push 0x553a2c
jmp 0x401b8f
lea ecx, [ebp - 0x810]
push str.Windows
push ecx
call fcn.004ff6e3
push str.Windows
call fcn.004012b0
add esp, 0xc
mov edx, dword [ebp - 0xc30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401bca
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0xc10]
push 0x5539b0
push eax
call fcn.004ff6e3
push 0x5539b0
call fcn.004012b0
add esp, 0xc
cmp dword [ebp - 0xc18], 0x10
jb 0x401be2
mov ecx, dword [ebp - 0xc2c]
push ecx
call fcn.0040c4d4
add esp, 4
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.004fecc6
mov esp, ebp
pop ebp
ret