Function at 0x18000af20
Capabilities:
Access the windows event log
Create service
Persist via windows service
Set registry value
Start service

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x460], rbx
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x70], rcx
xor eax, eax
cmp qword [rdx + 0x10], rax
setne al
test eax, eax
jne 0x18000af88
mov r8d, 0x104
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r12, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x18000b546
lea rdx, [0x18006baf8]
lea rcx, [rbp - 0x60]
call fcn.180001d30
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000afc3
mov rax, qword [rax]
mov r8d, 0x10
mov rdx, rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
cmp qword [rbp - 0x48], 0x10
jb 0x18000afe8
mov rcx, qword [rbp - 0x60]
call fcn.180027f2c
mov qword [rbp - 0x48], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x50], 0
mov byte [rbp - 0x60], 0
test rbx, rbx
je 0x18000b00f
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
xor ebx, ebx
mov r13d, ebx
mov byte [rbp - 0x20], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp - 0x1f]
call fcn.1800292e0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x28], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x30], rbx
mov byte [rbp - 0x40], bl
lea rdx, str.n1JTPBPY3BY1Nb7JxbOkxHgjNIL_nHPj3sYJNbd4RHP23rr
lea rcx, [rbp - 0x60]
call fcn.180001d30
nop
or rsi, 0xffffffffffffffff
mov r9, rsi
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1800027d0
nop
cmp qword [rbp - 0x48], 0x10
jb 0x18000b077
mov rcx, qword [rbp - 0x60]
call fcn.180027f2c
mov qword [rbp - 0x48], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x50], rbx
mov byte [rbp - 0x60], 0
lea r15, [rdi + 8]
cmp byte [r15], 0
jne 0x18000b096
mov r8, rbx
jmp 0x18000b0aa
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x18000b0a0
mov rdx, r15
lea rcx, [rbp - 0x40]
call fcn.180002900
lea rdx, str.3sEoNIsVd3OJNbmr
lea rcx, [rbp - 0x60]
call fcn.180001d30
nop
mov r9, rsi
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1800027d0
nop
cmp qword [rbp - 0x48], 0x10
jb 0x18000b0ea
mov rcx, qword [rbp - 0x60]
call fcn.180027f2c
mov qword [rbp - 0x48], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x50], rbx
mov byte [rbp - 0x60], 0
lea rdx, str.024NPHJcdMLqN1GT53Yjdhj2mJG2QIYfxqYjlIPtdZrV9Srr
lea rcx, [rbp - 0x60]
call fcn.180001d30
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000b115
mov rax, qword [rax]
mov r9, rsi
mov r8, rax
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.180029f1c
nop
cmp qword [rbp - 0x48], 0x10
jb 0x18000b13a
mov rcx, qword [rbp - 0x60]
call fcn.180027f2c
mov qword [rbp - 0x48], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x50], rbx
mov byte [rbp - 0x60], 0
mov r9d, 0x40
mov r8, r15
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.180029f1c
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov eax, 1
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x20
mov r9d, 0xf01ff
mov r8, r15
mov rdx, r15
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x18000b2e6
lea rdx, str.njLMPsQEnPNThJANIL2xHdj3sQ4xIOWQqmeTJON0qPSNIPcQsdJNbY4xHgNnqdA9ML2Qrr
lea rcx, [rbp - 0x60]
call fcn.180001d30
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000b1dd
mov rax, qword [rax]
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], r15
mov r9d, 7
mov r8, r15
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ebx, eax
cmp qword [rbp - 0x48], 0x10
jb 0x18000b215
mov rcx, qword [rbp - 0x60]
call fcn.180027f2c
mov qword [rbp - 0x48], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x50], 0
mov byte [rbp - 0x60], 0
test ebx, ebx
jne 0x18000b2e1
lea rdx, str.nHPSQIJAdnO_xrr
lea rcx, [rbp - 0x60]
call fcn.180001d30
mov r12, rax
mov rax, qword [r14 + 0x10]
cmp qword [r12 + 0x18], 0x10
jb 0x18000b254
mov r12, qword [r12]
lea rdi, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdi, qword [rbp - 0x40]
lea ebx, [rax + 1]
mov rcx, r14
call fcn.180001e60
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8, r12
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ebx, eax
cmp qword [rbp - 0x48], 0x10
jb 0x18000b2a1
mov rcx, qword [rbp - 0x60]
call fcn.180027f2c
mov qword [rbp - 0x48], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x50], 0
mov byte [rbp - 0x60], 0
test ebx, ebx
mov rbx, qword [rsp + 0x70]
jne 0x18000b2d7
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
mov eax, 1
cmovne r13d, eax
mov rdi, qword [rbp - 0x70]
mov r12, qword [rbp - 0x78]
jmp 0x18000b2e6
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x78], 0
lea rdx, [0x18006aa20]
lea rcx, [rbp - 0x60]
call fcn.180001d30
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000b30a
mov rax, qword [rax]
mov qword [rsp + 0x20], r15
mov r9, rax
mov r8, rsi
mov edx, 0x100
lea rcx, [rbp + 0xf0]
call fcn.180029e64
nop
cmp qword [rbp - 0x48], 0x10
jb 0x18000b337
mov rcx, qword [rbp - 0x60]
call fcn.180027f2c
mov qword [rbp - 0x48], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x50], 0
mov byte [rbp - 0x60], 0
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0xf0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x18000b384
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
mov r13d, esi
jmp 0x18000b523
lea rdx, str.O3dJxbOYd3Y2RhQJOIJ_d0r
lea rcx, [rbp - 0x60]
call fcn.180001d30
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x18000b3a4
mov rcx, qword [r14]
jmp 0x18000b3a7
mov rcx, r14
cmp rdx, 0x10
jb 0x18000b3b2
mov rdx, qword [r14]
jmp 0x18000b3b5
mov rdx, r14
cmp qword [rax + 0x18], 0x10
jb 0x18000b3c0
mov rax, qword [rax]
nop
inc rsi
cmp byte [rcx + rsi], 0
jne 0x18000b3c0
inc esi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdx
mov r9d, 2
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop
cmp qword [rbp - 0x48], 0x10
jb 0x18000b3fc
mov rcx, qword [rbp - 0x60]
call fcn.180027f2c
mov qword [rbp - 0x48], reloc.ACTIVEDS.dll_FreeADsMem
xor esi, esi
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x60], sil
mov dword [rbp - 0x80], 7
lea rdx, str.P6Jud3YTQ3Euxq7jdh0r
lea rcx, [rbp - 0x60]
call fcn.180001d30
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000b430
mov rax, qword [rax]
mov dword [rsp + 0x28], 4
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop
cmp qword [rbp - 0x48], 0x10
jb 0x18000b469
mov rcx, qword [rbp - 0x60]
call fcn.180027f2c
mov qword [rbp - 0x48], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x60], 0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x60], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
movzx ebx, si
test r15, r15
je 0x18000b49d
mov ebx, 1
cmp qword [rdi + 0x88], 0
jne 0x18000b4b9
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rdi + 0x88], rax
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x18000b4f2
xor r8d, r8d
lea edx, [r8 + 4]
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rsi
lea r9d, [r8 + 0x64]
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r13d, r13d
jne 0x18000b523
cmp qword [r14 + 0x18], 0x10
jb 0x18000b515
mov r14, qword [r14]
mov rdx, r14
mov rcx, rdi
call fcn.18000b580
mov r13d, eax
cmp qword [rbp - 0x28], 0x10
jb 0x18000b533
mov rcx, qword [rbp - 0x40]
call fcn.180027f2c
mov qword [rbp - 0x28], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x40], 0
mov eax, r13d
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.1800292b0
mov rbx, qword [rsp + 0x460]
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret