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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor sil, sil
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
lea r8d, [r14 + 0x37]
lea rdx, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea rcx, [rsp + 0x60]
call fcn.1400739a0
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0xf
jb 0x1400890e2
lea rdi, [rcx + 0xf]
mov qword [rsp + 0x70], rdi
lea rbx, [rsp + 0x60]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x60]
lea rcx, [rbx + rcx*2]
lea r8d, [r14 + 0x1e]
lea rdx, [0x1405f3ad8]
call fcn.14035bc80
mov word [rbx + rdi*2], r14w
jmp 0x140089104
lfence
mov qword [rsp + 0x20], 0xf
lea r9, [0x1405f3ad8]
mov edx, 0xf
lea rcx, [rsp + 0x60]
call fcn.1400735a0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140089247
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, qword [0x1406875f0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [rax*2 + 2]
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.EventMessageFile
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140089247
mov dword [rsp + 0x58], 7
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.TypesSupported
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140089247
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.CategoryMessageFile
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140089247
mov dword [rsp + 0x5c], 9
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.CategoryCount
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx esi, sil
mov ecx, 1
test eax, eax
cmove esi, ecx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140089258
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140089296
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089291
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400892c6
call fcn.140359090
movzx eax, sil
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140359070
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140368068
int3