Function at 0x419ef0
Capabilities:
Check os version
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7610
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x4d1480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push 0x118
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.00482730
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x15c]
add esp, 0xc
mov dword [ebp - 0x15c], 0x11c
push eax
call esi
test eax, eax
jne 0x419f6e
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x114
push eax
call esi
cmp dword [ebp - 0x158], 6
jb 0x41a4b0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x160], 0
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x41a4b0
lea eax, [ebp - 0x168]
push eax
push 2
push 2
push 0
push 0xf01ff
push dword [ebp - 0x160]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x160]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41a4b0
push dword [ebp - 0x168]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x41a4a2
lea eax, [ebp - 0x164]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x41a49c
lea eax, [ebp - 0x160]
push eax
push str.SoftwareXuanZhiOSLink
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41a24c
cmp dword [edi + 0x5c], 7
lea eax, [edi + 0x48]
jbe 0x41a035
mov eax, dword [edi + 0x48]
push eax
push str.pathToReg_installPath__s
push 0x3a6
push str.LDRemoteModel::pathSysToCurUserReg
call fcn.00426450
add esp, 0x10
lea ecx, [edi + 0x48]
cmp dword [edi + 0x5c], 7
jbe 0x41a059
mov ecx, dword [edi + 0x48]
mov eax, dword [edi + 0x58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.InstallDir
push dword [ebp - 0x160]
call esi
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x174], 0
push 0x4c04a4
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x170], 0
movups xmmword [ebp - 0x184], xmm0
call fcn.004082b0
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x184]
cmp dword [ebp - 0x170], 7
cmova ecx, dword [ebp - 0x184]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Version
push dword [ebp - 0x160]
call esi
mov ecx, dword [ebp - 0x170]
cmp ecx, 7
jbe 0x41a120
mov edx, dword [ebp - 0x184]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a116
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a4eb
push ecx
push edx
call fcn.004804a9
add esp, 8
mov edx, dword [ebp - 0x16c]
lea ecx, [ebp - 0x184]
call fcn.0040d5b0
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x41a13b
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.SystemD
push dword [ebp - 0x160]
call esi
mov ecx, dword [ebp - 0x170]
cmp ecx, 7
jbe 0x41a198
mov edx, dword [ebp - 0x184]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a18e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a4f0
push ecx
push edx
call fcn.004804a9
add esp, 8
cmp dword [edi + 0x88], 0
je 0x41a23e
mov ecx, edi
call fcn.00416700
test al, al
je 0x41a1d9
cmp dword [edi + 0x8c], 7
lea ecx, [edi + 0x78]
jbe 0x41a1bf
mov ecx, dword [edi + 0x78]
mov eax, dword [edi + 0x88]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.playerDir64
jmp 0x41a231
mov ecx, edi
call fcn.00416790
lea ecx, [edi + 0x78]
test al, al
je 0x41a20d
cmp dword [edi + 0x8c], 7
jbe 0x41a1f3
mov ecx, dword [edi + 0x78]
mov eax, dword [edi + 0x88]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.playerDir9
jmp 0x41a231
cmp dword [edi + 0x8c], 7
jbe 0x41a219
mov ecx, dword [edi + 0x78]
mov eax, dword [edi + 0x88]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.playerDir
push dword [ebp - 0x160]
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call eax
push dword [ebp - 0x160]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x160]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41a476
mov edx, dword [edi + 0x58]
lea ecx, [edi + 0x48]
mov esi, SysReAllocString
mov eax, esi
sub eax, edx
cmp eax, 0xc
jb 0x41a4f5
cmp dword [ecx + 0x14], 7
jbe 0x41a28c
mov ecx, dword [ecx]
push 0xc
push str.ldremote.exe
push edx
push ecx
push ecx
push dword [ebp - 0x16c]
lea ecx, [ebp - 0x40]
call fcn.0040e310
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
sub esi, ecx
cmp esi, 1
jb 0x41a4fa
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push ecx
cmova eax, dword [ebp - 0x40]
push eax
push 1
push 0x4c1624
push ecx
push dword [ebp - 0x16c]
lea ecx, [ebp - 0x19c]
call fcn.0040e310
push 0xb
push str.____pcstart
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.0040d1f0
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x188]
cmp ecx, 7
jbe 0x41a372
mov edx, dword [ebp - 0x19c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a368
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a4ff
push ecx
push edx
call fcn.004804a9
add esp, 8
xor eax, eax
mov dword [ebp - 0x18c], 0
cmp dword [ebp - 0x2c], 7
mov word [ebp - 0x19c], ax
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
push 0x4c1628
push 0x3bd
push str.LDRemoteModel::pathSysToCurUserReg
mov dword [ebp - 0x188], 7
call fcn.00426450
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
add esp, 0x10
cmp dword [ebp - 0x14], 7
cmova ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.OSLink
push dword [ebp - 0x160]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x160]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x41a426
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a41c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a504
push ecx
push edx
call fcn.004804a9
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x41a494
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a46a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a504
push ecx
push edx
call fcn.004804a9
add esp, 8
jmp 0x41a494
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.auto_run_error__d
push 0x3c2
push str.LDRemoteModel::pathSysToCurUserReg
call fcn.00426450
add esp, 0x10
push dword [ebp - 0x164]
call esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41a4ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.pathSysToCurUserReg_DuplicateCurUserToken_error__d
push 0x39b
push str.LDRemoteModel::pathSysToCurUserReg
call fcn.00426450
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048049b
mov esp, ebp
pop ebp
ret 4
call fcn.00485a5d
call fcn.00485a5d
call fcn.00408bc0
call fcn.00408bc0
call fcn.00485a5d
call fcn.00485a5d
int3