Function at 0x41b980
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d89
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x453804]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x1bc], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x1c8], esi
test esi, esi
je 0x41bd75
cmp dword [0x4567d4], 0
mov byte [ebp - 0x1a0], 0
je 0x41ba0d
mov ecx, 0x456798
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea edx, [ebp - 0x1a0]
sub edx, eax
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x41ba00
push 0
push 0
lea eax, [ebp - 0x1a0]
push eax
push 0
push 0
push dword [ebp - 0x1bc]
push 1
push 2
push 0x110
push 0xf01ff
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x41bd12
lea ecx, [ebp - 0x1bc]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push edi
lea eax, [ebp - 0x1bc]
mov dword [ebp - 4], 0
push str.Service__s_installed
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 8
lea eax, [ebp - 0x1bc]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
call fcn.0041eaf0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [0x4567d8], 0
jne 0x41babb
cmp dword [0x4567dc], 0
jne 0x41babb
cmp dword [0x4567e0], 0
jne 0x41babb
cmp dword [0x4567e4], 0
jne 0x41babb
cmp dword [0x4567e8], 0
je 0x41bd5b
push 0xf01ff
push edi
push dword [ebp - 0x1c8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x41bcc1
cmp dword [0x4567e4], 0
je 0x41baf2
imul ecx, dword [0x4567b8], 0x15180
mov dword [ebp - 0x1dc], ecx
jmp 0x41bafc
mov dword [ebp - 0x1dc], 0xffffffff
mov edx, dword [0x4567e8]
lea eax, [ebp - 0x1b8]
mov ecx, dword [0x4567bc]
mov dword [ebp - 0x1cc], eax
xor eax, eax
cmp dword [0x4567d8], eax
mov dword [ebp - 0x1d4], 0
cmovne eax, dword [0x4567ac]
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1d0], 3
mov dword [ebp - 0x1b8], eax
test edx, edx
je 0x41bb59
imul eax, ecx, 0xea60
mov dword [ebp - 0x1b4], eax
jmp 0x41bb63
mov dword [ebp - 0x1b4], 0x493e0
xor eax, eax
cmp dword [0x4567dc], eax
cmovne eax, dword [0x4567b0]
mov dword [ebp - 0x1b0], eax
test edx, edx
je 0x41bb8a
imul eax, ecx, 0xea60
mov dword [ebp - 0x1ac], eax
jmp 0x41bb94
mov dword [ebp - 0x1ac], 0x493e0
xor eax, eax
cmp dword [0x4567e0], eax
cmovne eax, dword [0x4567b4]
mov dword [ebp - 0x1a8], eax
test edx, edx
je 0x41bbbb
imul eax, ecx, 0xea60
mov dword [ebp - 0x1a4], eax
jmp 0x41bbc5
mov dword [ebp - 0x1a4], 0x493e0
cmp dword [0x4567ec], 0
mov eax, 1
je 0x41bbde
xor ecx, ecx
cmp dword [0x4567c0], ecx
cmove eax, ecx
cmp dword [0x4567f0], 0
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 0xd8], 0
je 0x41bc16
mov ecx, 0x45679c
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea edx, [ebp - 0xd8]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x41bc07
jmp 0x41bc68
movups xmm0, xmmword [str.LogicWay_Trip_Service._Service_for_running_scheduled_tasks]
mov ax, word [0x440ba8]
mov word [ebp - 0xa0], ax
mov al, byte [0x440baa]
movups xmmword [ebp - 0xd8], xmm0
mov byte [ebp - 0x9e], al
movups xmm0, xmmword [0x440b80]
movups xmmword [ebp - 0xc8], xmm0
movups xmm0, xmmword [0x440b90]
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [0x440ba0]
movq qword [ebp - 0xa8], xmm0
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1dc]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov esi, eax
test esi, esi
je 0x41bcb2
lea eax, [ebp - 0x1c0]
push eax
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov esi, eax
test esi, esi
je 0x41bcb2
lea eax, [ebp - 0x1c4]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
jne 0x41bd5b
lea ecx, [ebp - 0x1c0]
call dword [sym.imp.mfc140.dll_Ordinal_316]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c0]
push str.Cant_set_Configuration_Failure_actions___error_code__u
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 8
lea eax, [ebp - 0x1c0]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
call fcn.0041eaf0
add esp, 4
lea ecx, [ebp - 0x1c0]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
jmp 0x41bd5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1bc]
mov esi, eax
call dword [sym.imp.mfc140.dll_Ordinal_316]
push esi
push edi
lea eax, [ebp - 0x1bc]
mov dword [ebp - 4], 2
push str.Failed_to_create_service__s__error_code___d
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
lea eax, [ebp - 0x1bc]
mov ecx, esp
push eax
call dword [sym.imp.mfc140.dll_Ordinal_300]
call fcn.0041eaf0
add esp, 4
lea ecx, [ebp - 0x1bc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
push dword [ebp - 0x1c8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41bd8b
push ecx
mov ecx, esp
push str.OpenSCManager_failed__error_code___d
call dword [sym.imp.mfc140.dll_Ordinal_310]
call fcn.0041ea60
add esp, 4
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.004211b5
mov esp, ebp
pop ebp
ret