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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x248]
sub rsp, 0x320
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402698e0]
xor rax, rsp
mov qword [rbp + 0x210], rax
xor r13d, r13d
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x70], r13d
mov qword [rsp + 0x78], r13
mov r9d, 0x20006
lea r8, str.SystemCurrentControlSetServices
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.140022450
mov ebx, eax
test eax, eax
je 0x14002433c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140024335
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140024b94
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x78], r13d
mov qword [rbp - 0x70], r13
mov r9d, 0x20006
lea r8, [0x1402719a0]
mov r15, qword [rsp + 0x68]
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140022450
mov ebx, eax
test eax, eax
je 0x140024391
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002437c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r15, r15
je 0x140024335
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140024b94
call fcn.1400282ac
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400243b1
mov ecx, 0x80004005
call fcn.140020640
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rdx, str.RMatcher__powered_by_the_UCA_
lea rcx, [rbp - 0x40]
call fcn.140020c10
mov eax, r13d
mov rbx, qword [rbp - 0x40]
test rbx, rbx
setne al
test eax, eax
jne 0x1400243ee
mov ecx, 0x80004005
call fcn.140020640
int3
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400243f5
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Description
mov r12, qword [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x14002444d
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140024b72
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
jmp 0x140024b72
mov qword [rbp - 0x30], r13
mov dword [rbp - 0x28], r13d
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x38], r13
lea rax, [rbp - 0x18]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Parameters
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x140024b5d
mov rsi, qword [rbp - 0x38]
mov qword [rbp - 0x30], rsi
mov dword [rbp - 0x28], r13d
mov rcx, qword [0x140271998]
cmp dword [rcx - 0x10], eax
je 0x140024543
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400244c0
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.DisplayName
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
je 0x140024543
test rsi, rsi
je 0x140024506
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002451b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002452b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002453b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
jmp 0x140024b94
mov rcx, qword [0x140271948]
cmp dword [rcx - 0x10], 0
je 0x14002458e
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024553
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ConfigurationFile
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov rcx, qword [0x140271950]
cmp dword [rcx - 0x10], 0
je 0x1400245db
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400245a0
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.DirectorHost
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov rax, qword [0x140271960]
cmp dword [rax - 0x10], 0
je 0x140024626
mov eax, dword [0x140271968]
mov dword [rbp - 0x58], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.DirectorPort
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov rcx, qword [0x140271958]
cmp dword [rcx - 0x10], 0
je 0x140024671
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024636
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.MatcherHost
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov rax, qword [0x140271bd8]
cmp dword [rax - 0x10], 0
je 0x1400246bc
mov eax, dword [0x140271be0]
mov dword [rbp - 0x48], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ListenPort
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov rcx, qword [0x140271970]
cmp dword [rcx - 0x10], 0
je 0x14002470b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400246d0
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ServerId
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov rcx, qword [0x140271978]
cmp dword [rcx - 0x10], 0
je 0x14002475b
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024720
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.SystemId
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov rax, qword [0x140271980]
cmp dword [rax - 0x10], 0
je 0x1400247a6
mov eax, dword [0x140271988]
mov dword [rbp - 0x50], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.MaximumThreads
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov rcx, qword [0x140271990]
cmp dword [rcx - 0x10], 0
je 0x1400247f1
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400247b6
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.TraceFile
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov rcx, qword [0x140271be8]
cmp dword [rcx - 0x10], 0
je 0x14002483c
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024801
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ProcessLevel
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x1400244f7
test rsi, rsi
je 0x140024851
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r13
mov qword [rbp - 0x30], r13
mov dword [rbp - 0x28], r13d
test r12, r12
je 0x14002486a
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, r13
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x78], r13d
test r15, r15
je 0x140024881
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x70], r13d
mov r9d, 0x20006
lea r8, str.SystemCurrentControlSetServicesEventlogApplication
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.140022450
mov r14d, eax
test eax, eax
jne 0x1400244f7
mov qword [rsp + 0x60], r13
mov r15, qword [rsp + 0x68]
mov r14, qword [rbp - 0x70]
test r14, r14
je 0x140024951
cmp qword [r14], 0
je 0x140024942
lea rcx, [0x1401cb340]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400248e7
lea r14d, [rax + 1]
jmp 0x14002498f
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140024949
mov qword [rsp + 0x50], r13
mov rcx, qword [r14]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1402719a0]
mov rcx, r15
call rax
jmp 0x14002498c
cmp dword [r14 + 8], 0
jne 0x140024951
mov r14d, 1
jmp 0x14002498f
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1402719a0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r14d, eax
test r14d, r14d
jne 0x1400244f7
mov r14d, r13d
test r12, r12
je 0x1400249ac
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14d, eax
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], r13d
test r14d, r14d
jne 0x1400244f7
mov r8d, 0x104
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
add rax, rax
nop dword [rax]
cmp word [rbp + rax], 0x5c
je 0x140024a02
cmp rax, 0x208
jae 0x1400249fc
mov word [rbp + rax], r13w
sub rax, 2
jmp 0x1400249e0
call fcn.14019b1c4
int3
lea rax, [rbp]
sub rax, 2
nop word [rax + rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x140024a10
movups xmm0, xmmword [0x1401cbad0]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1401cbae0]
movsd qword [rax + 0x10], xmm1
lea rcx, [rbp]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024a40
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.EventMessageFile
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
je 0x140024aab
test rsi, rsi
je 0x140024a8c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140024aa1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x60]
jmp 0x14002451f
mov dword [rbp - 0x60], 7
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.TypesSupported
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
jne 0x140024a7d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140024af9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x78], r13d
test r15, r15
je 0x140024b10
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x70], r13d
test rsi, rsi
je 0x140024b24
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140024b39
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140024b49
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140024b59
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140024b94
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140024b72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140024b82
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140024b92
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14019ac00
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret