Function at 0x417400
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb29b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
call fcn.00422b60
test al, al
je 0x4176dc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x4176dc
lea eax, [ebp - 0x50]
push eax
push 2
push 2
push 0
push 0xf01ff
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne bl
call esi
test bl, bl
je 0x4176dc
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4176d5
lea eax, [ebp - 0x4c]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x4176cf
lea eax, [ebp - 0x48]
push eax
push str.SoftwareXuanZhiOSLink
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4175df
cmp dword [edi + 0x4c], 8
lea esi, [edi + 0x38]
jb 0x4174e5
mov eax, dword [esi]
jmp 0x4174e7
mov eax, esi
push eax
push str.pathToReg_installPath__s
push 0x3a7
push str.LDRemoteModel::pathSysToCurUserReg
call fcn.00424270
mov eax, dword [esi + 0x10]
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x41750a
mov esi, dword [esi]
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.InstallDir
push dword [ebp - 0x48]
call esi
push 0x4d8b70
lea ecx, [ebp - 0x6c]
call fcn.00408d90
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
cmovae ecx, dword [ebp - 0x6c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Version
push dword [ebp - 0x48]
call esi
lea ecx, [ebp - 0x6c]
call fcn.00408ee0
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x6c]
call fcn.0040d600
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x417579
mov ecx, dword [ecx]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.SystemD
push dword [ebp - 0x48]
call esi
lea ecx, [ebp - 0x6c]
call fcn.00408ee0
cmp dword [edi + 0x78], 0
je 0x4175d4
mov ecx, edi
call fcn.00414bc0
test al, al
je 0x4175b0
mov edx, str.playerDir64
jmp 0x4175c5
mov ecx, edi
call fcn.00414c20
mov edx, str.playerDir9
test al, al
jne 0x4175c5
mov edx, str.playerDir
mov ecx, dword [ebp - 0x48]
lea eax, [edi + 0x68]
push eax
call fcn.004169f0
add esp, 4
push dword [ebp - 0x48]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x48]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4176ac
push str.ldremote.exe
lea edx, [edi + 0x38]
lea ecx, [ebp - 0x44]
call fcn.00412490
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
mov edx, 0x4dafa0
lea ecx, [ebp - 0x84]
call fcn.0041cab0
push str.____pcstart
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.0041cba0
add esp, 0x14
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00408ee0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push 0x4dafa4
push 0x3be
push str.LDRemoteModel::pathSysToCurUserReg
call fcn.00424270
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.OSLink
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x48]
call ebx
lea ecx, [ebp - 0x2c]
call fcn.00408ee0
lea ecx, [ebp - 0x44]
call fcn.00408ee0
jmp 0x4176ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.auto_run_error__d
push 0x3c3
push str.LDRemoteModel::pathSysToCurUserReg
call fcn.00424270
add esp, 0x10
push dword [ebp - 0x4c]
call ebx
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x50]
call esi
jmp 0x4176fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.pathSysToCurUserReg_DuplicateCurUserToken_error__d
push 0x39c
push str.LDRemoteModel::pathSysToCurUserReg
call fcn.00424270
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048464b
mov esp, ebp
pop ebp
ret 4