Function at 0x41eca0
Capabilities:
Check if file exists
Check os version
Copy file
Delete registry value
Get common file path
Get file attributes
Move file
Persist via application shimming
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3526
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x4d044c]
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 ebx, ecx
mov dword [ebp - 0x430], ebx
xor eax, eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x42c], eax
cmp byte [0x4d4c90], al
jne 0x41f2c5
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x41f2c5
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004644e0
add esp, 0xc
call fcn.00415360
mov esi, eax
push str.Kernel32.dll
mov dword [ebp - 0x428], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test esi, esi
je 0x41ed60
test edi, edi
je 0x41ed60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push edi
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [ebp - 0x424], eax
call esi
mov dword [ebp - 0x434], eax
push 0
push str.SoftwareK7_ComputingK7TotalSecurity
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045e060
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
je 0x41ed97
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.DirProductBase
push esi
call fcn.0045e550
push esi
call edi
mov ecx, ebx
call fcn.0041f730
push 0
push 1
mov edx, 0x64
call fcn.004249f0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
push 0x20006
push str.AppID
push closesocket
lea ecx, [ebp - 0x444]
mov dword [ebp - 4], 0
call fcn.004272d0
mov ebx, eax
mov eax, dword [ebp - 0x444]
test ebx, ebx
jne 0x41f2bc
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
push 0x20006
push str.A0BBD622_B251_11D9_B616_0008A17E7A0F
push eax
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 1
call fcn.004272d0
mov esi, dword [ebp - 0x450]
mov ebx, eax
test ebx, ebx
jne 0x41f2af
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x41f10f
push 9
push str.K7TSMngr
push 1
push 0
push str.LocalService
push esi
call ebx
push 9
push str._Service
push 1
push 0
push str.ServiceParameters
push esi
call ebx
mov ebx, dword [ebp - 0x430]
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [ebx + 0x160], 0
je 0x41efd3
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004644e0
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.004644e0
add esp, 0x18
lea eax, [ebp - 0x114]
push 0x104
push eax
call edi
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41eee2
mov eax, dword [ebp - 0x424]
mov ecx, 7
mov esi, str.System32DriversK7Elam.sys
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
test eax, eax
je 0x41ef0e
lea ecx, [ebp - 0x42c]
push ecx
call eax
mov esi, eax
jmp 0x41ef10
xor esi, esi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41ef93
cmp dword [ebp - 0x428], 0
mov ecx, str.32bit
push str.K7Elam.sys
mov eax, str.64Bit
cmove eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x31c]
push 0x4c41d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x114]
push 0
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41ef93
push 3
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
and eax, 1
mov edi, eax
jmp 0x41ef98
mov edi, 1
test esi, esi
je 0x41efb8
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x41efb8
push dword [ebp - 0x42c]
call eax
mov dword [ebp - 0x42c], 0
test edi, edi
je 0x41efcd
mov edx, dword [ebp - 0x428]
lea ecx, [ebp - 0x218]
call fcn.0041d850
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004644e0
add esp, 0xc
lea esi, [ebx + 0x30]
push esi
call fcn.0045f570
test eax, eax
jne 0x41f0ab
push 0x102
lea eax, [ebp - 0x31b]
mov byte [ebp - 0x31c], 0x22
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4c4354
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.00490945
add esp, 0xc
mov ecx, 0x10
cmp dword [ebx + 0x164], 0
mov eax, 0x110
cmovne eax, ecx
push str.Centralized_Manager_For_K7TotalSecurity_Solutions
push str.RPCSS
push eax
push 2
lea eax, [ebp - 0x31c]
push eax
push str.K7TotalSecurity_Manager
push esi
call fcn.0045f320
cmp eax, 1
jne 0x41f0ab
cmp dword [ebx + 0x164], 0
je 0x41f0ab
push 0x104
lea eax, [ebp - 0x114]
push eax
call edi
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41f084
mov ecx, 7
mov esi, str.System32DriversK7Elam.sys
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00415360
mov edx, eax
lea ecx, [ebp - 0x114]
call fcn.0041e130
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 8
mov ecx, ebx
call fcn.00424300
mov ebx, eax
mov dword [ebp - 0x438], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x41f0e0
ja 0x41f29d
jne 0x41f0e0
shr eax, 8
cmp al, 2
jae 0x41f29d
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x41f0f3
lea ecx, [ebp - 0x42c]
push ecx
call eax
cmp dword [ebp - 0x428], 0
lea eax, [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x41f117
push str.64Bit_
jmp 0x41f11c
mov ebx, dword [ebp - 0x430]
jmp 0x41f0b1
push str.32Bit_
push eax
call esi
push str.K7TSDbg.exe
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
cmp eax, 0xffffffff
je 0x41f28b
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4c0ed8
lea eax, [ebp - 0x420]
push eax
call esi
push str.K7TSDbg.exe
lea eax, [ebp - 0x420]
push eax
call esi
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x420]
push eax
call edi
cmp eax, 0xffffffff
je 0x41f28b
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045e320
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
je 0x41f285
push 0x1000
call fcn.00460a14
mov edi, eax
add esp, 4
test edi, edi
je 0x41f27e
lea eax, [ebp - 0x430]
mov byte [edi], 0
push eax
push edi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0
push eax
push 0
push str.BootExecute
push ebx
mov dword [ebp - 0x430], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [edi], 0
mov esi, edi
je 0x41f233
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
nop
push 0x4c42f4
push esi
call fcn.0048b841
add esp, 8
test eax, eax
je 0x41f26d
push esi
call ebx
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x41f210
mov ebx, dword [ebp - 0x424]
mov byte [esi], 0
movq xmm0, qword [str.K7TSDbg]
movq qword [esi], xmm0
mov al, byte [0x4c4304]
mov byte [esi + 8], al
sub esi, edi
add esi, 9
push esi
push edi
push dword [ebp - 0x428]
mov dword [ebp - 0x430], esi
push 0
push str.BootExecute
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x41f273
mov ebx, dword [ebp - 0x424]
push 1
push edi
call fcn.004609d1
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x41f29d
push dword [ebp - 0x42c]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp - 0x450]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41f2b6
push esi
call edi
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x41f2c3
push eax
call edi
mov eax, ebx
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.004606ac
mov esp, ebp
pop ebp
ret 8