Function at 0x460cc0
Capabilities:
Create service
Delete service
Get common file path
Persist via windows service
Query service status
Start service
Write file on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48794c]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x154]
push ebp
push edi
mov edi, dword [esp + 0x150]
xor ebp, ebp
push 0xf003f
push ebp
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x460d2b
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0043ea11
add esp, 0x144
ret
push ebx
push esi
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
je 0x460d9f
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x460f60
mov ebx, 1
cmp dword [esp + 0x34], ebx
je 0x460d87
lea eax, [esp + 0x30]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x460f60
cmp dword [esp + 0x34], ebx
je 0x460d87
mov dword [esp + 0x10], 0x425
jmp 0x460f6a
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x460f60
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x460db8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 0x424
jne 0x460f75
mov dword [esp + 0x10], ebp
push 0x46f8ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x460de5
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x474fd0
push esi
call ebp
push str.Wow64EnableWow64FsRedirection
push esi
mov ebx, eax
call ebp
mov ebp, eax
mov dword [esp + 0x18], 0
test ebx, ebx
je 0x460e17
test ebp, ebp
je 0x460e17
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
cmp dword [esp + 0x18], 0
je 0x460e17
mov ecx, dword [esp + 0x168]
mov eax, dword [esp + 0x28]
jmp 0x460e22
mov ecx, dword [esp + 0x160]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
call fcn.00461640
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x460e46
mov dword [esp + 0x10], 0xd
jmp 0x460f75
cmp dword [esp + 0x18], 0
je 0x460e51
push 0
call ebp
push 0x104
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460e68
sub eax, edx
push edi
lea ecx, [esp + eax + 0x50]
push str.drivers_s.sys
push ecx
call fcn.00461338
add esp, 0xc
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x460ed8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x460ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x460ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], 0
je 0x460eed
push 1
call ebp
mov eax, dword [esp + 0x1c]
push eax
call fcn.00440367
add esp, 4
cmp dword [esp + 0x14], 0
je 0x460f75
push edi
lea ecx, [esp + 0x50]
push str.system32drivers_s.sys
push ecx
call fcn.00461338
add esp, 0xc
push 0
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x60]
push edx
push 0
push 2
push 1
push 0xf01ff
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x460f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], esi
jmp 0x460f66
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x460f6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test esi, esi
je 0x460f75
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0x14]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.0043ea11
add esp, 0x144
ret