Function at 0x1800018d0
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1800680c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x18000191d
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1800019dd
mov qword [rsp + 0x1b0], rsi
lea rax, str.FltMgr
xor esi, esi
mov qword [rsp + 0x1b8], rdi
mov qword [rsp + 0x60], rsi
lea rdi, [0x18006b480]
mov qword [rsp + 0x58], rsi
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rax
mov r8, rdi
mov qword [rsp + 0x48], rsi
lea rax, str.FSFilter_Activity_Monitor
mov qword [rsp + 0x40], rax
mov rdx, rdi
lea rax, [0x18006b350]
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x1800019fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x431
jne 0x1800019bc
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x1800019cd
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rsi, qword [rsp + 0x1b0]
mov rdi, qword [rsp + 0x1b8]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.180023640
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rbp
ret
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, word [0x180059590]
lea rcx, [rbp - 0x80]
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
mov word [rbp - 0x60], ax
dec rcx
movups xmm1, xmmword [0x180059580]
movzx eax, byte [0x180059592]
mov byte [rbp - 0x5e], al
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm1
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x180001a41
xor edx, edx
nop dword [rax]
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180001a50
lea rcx, [rbp - 0x80]
dec rcx
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x180001a66
movzx eax, word [0x1800595a0]
lea r9, [0x1800595a3]
movsd xmm0, qword [str.Instances]
lea rdx, [rbp - 0x80]
movsd qword [rcx], xmm0
xor r8d, r8d
mov word [rcx + 8], ax
movzx eax, byte [0x1800595a2]
mov byte [rcx + 0xa], al
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffff80000002
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1800019cb
mov rcx, rsi
movzx eax, byte [rcx + rdi]
mov byte [rbp + rcx - 0x80], al
lea rcx, [rcx + 1]
test al, al
jne 0x180001ae0
lea rcx, [rbp - 0x80]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x180001b00
movzx eax, word [0x1800595b0]
mov rbx, 0xffffffffffffffff
movsd xmm0, qword [str._Instance]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, [rbp - 0x80]
mov rax, rbx
nop
inc rax
cmp byte [rcx + rax], sil
jne 0x180001b30
mov rcx, qword [rsp + 0x70]
lea rdx, str.DefaultInstance
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1800019cb
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, word [0x180059590]
lea rcx, [rbp - 0x80]
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
mov word [rbp - 0x60], ax
dec rcx
movups xmm1, xmmword [0x180059580]
movzx eax, byte [0x180059592]
mov byte [rbp - 0x5e], al
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm1
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x180001bb1
xor edx, edx
nop dword [rax]
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180001bc0
lea rcx, [rbp - 0x80]
dec rcx
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x180001bd6
movsd xmm0, qword [str.Instances_]
mov eax, dword [0x1800595d0]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
lea rcx, [rbp - 0x80]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x180001c00
xor edx, edx
nop dword [rax]
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180001c10
lea rdx, [rbp - 0x80]
dec rdx
cmp byte [rdx + 1], sil
lea rdx, [rdx + 1]
jne 0x180001c26
movzx eax, word [0x1800595b0]
lea r9, [0x1800595a3]
movsd xmm0, qword [str._Instance]
xor r8d, r8d
movsd qword [rdx], xmm0
mov rcx, 0xffffffff80000002
mov word [rdx + 8], ax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x80]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1800019cb
mov rcx, rsi
lea rdx, str.370030
nop dword [rax]
movzx eax, byte [rcx + rdx]
mov byte [rbp + rcx - 0x80], al
lea rcx, [rcx + 1]
test al, al
jne 0x180001ca0
lea rax, [rbp - 0x80]
inc rbx
cmp byte [rax + rbx], sil
jne 0x180001cb4
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x28], ebx
lea rdx, str.Altitude
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1800019cb
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], 4
lea rdx, str.Flags
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x78], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1800019cb
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1800019cd