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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rsi, r8
mov rbp, rdx
lea r12, [0x140106190]
lea r13, [0x1400dd920]
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14002f3e2
test byte [rcx + 0x1c], 1
je 0x14002f3e2
cmp byte [rcx + 0x19], 5
jb 0x14002f3e2
mov edx, 0xa
mov qword [rax - 0x60], r8
mov qword [rax - 0x68], rbp
lea r9, str.System
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400239c0
mov rcx, qword [0x140106190]
xor r14d, r14d
mov edi, r14d
test rbp, rbp
je 0x14002f3f2
test rsi, rsi
jne 0x14002f420
cmp rcx, r12
je 0x14002f41b
test byte [rcx + 0x1c], 2
je 0x14002f41b
cmp byte [rcx + 0x19], 2
jb 0x14002f41b
mov edx, reloc.WSOCK32.dll_inet_ntoa
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003538
mov rcx, qword [0x140106190]
mov edi, 0x80004003
mov rbx, r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
test edi, edi
js 0x14002f67d
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rsp + 0xa8], rax
mov r9, rbp
lea r8, str.System
lea rdx, str.SYSTEMCurrentControlSetServicesEventLog_ls_ls
lea rcx, [rsp + 0xa8]
call fcn.140008b90
mov ebp, 4
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14002f4b3
test byte [rcx + 0x1c], 2
je 0x14002f4b3
cmp byte [rcx + 0x19], bpl
jb 0x14002f4b3
lea edx, [rbp + 8]
mov r9, rbx
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003558
mov dword [rsp + 0x28], 0x2001f
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14001b2b8
test eax, eax
je 0x14002f501
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14002f4fc
test byte [rcx + 0x1c], 2
je 0x14002f4fc
cmp byte [rcx + 0x19], 2
jb 0x14002f4fc
mov edx, SafeArrayDestroy
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003538
mov edi, 0x8000ffff
lea rdx, [rbx - 0x18]
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14002f526
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
test edi, edi
js 0x14002f671
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14002f557
test byte [rcx + 0x1c], 2
je 0x14002f557
cmp byte [rcx + 0x19], bpl
jb 0x14002f557
mov edx, SafeArrayDestroy
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003538
test rsi, rsi
je 0x14002f6d9
inc rbx
cmp word [rsi + rbx*2], r14w
jne 0x14002f560
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 2
xor r8d, r8d
lea rdx, str.EventMessageFile
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002f5d3
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14002f5cc
test byte [rcx + 0x1c], 2
je 0x14002f5cc
cmp byte [rcx + 0x19], 2
jb 0x14002f5cc
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003538
mov rcx, qword [0x140106190]
mov edi, 0x8000ffff
jmp 0x14002f5da
mov rcx, qword [0x140106190]
test edi, edi
js 0x14002f67d
cmp rcx, r12
je 0x14002f604
test byte [rcx + 0x1c], 2
je 0x14002f604
cmp byte [rcx + 0x19], bpl
jb 0x14002f604
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003538
mov dword [rsp + 0x90], 7
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, ebp
xor r8d, r8d
lea rdx, str.TypesSupported
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002f676
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14002f66a
test byte [rcx + 0x1c], 2
je 0x14002f66a
cmp byte [rcx + 0x19], 2
jb 0x14002f66a
mov edx, SafeArrayUnlock
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003538
mov rcx, qword [0x140106190]
mov edi, 0x8000ffff
jmp 0x14002f67d
mov rbx, qword [rsp + 0x48]
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14002f6b0
test byte [rcx + 0x1c], 1
je 0x14002f6b0
mov edx, edi
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jl 0x14002f6b0
mov edx, SafeArrayUnlock
mov r9d, edi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
nop
test rbx, rbx
je 0x14002f6be
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140004f64
int3