Function at 0x140024400
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.1400225a0
mov ebx, eax
test eax, eax
je 0x14002448c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140024485
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140024ce4
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x78], r13d
mov qword [rbp - 0x70], r13
mov r9d, 0x20006
lea r8, [0x1402719e0]
mov r15, qword [rsp + 0x68]
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1400225a0
mov ebx, eax
test eax, eax
je 0x1400244e1
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400244cc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r15, r15
je 0x140024485
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140024ce4
call fcn.1400283fc
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x140024501
mov ecx, 0x80004005
call fcn.140020790
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.140020d60
mov eax, r13d
mov rbx, qword [rbp - 0x40]
test rbx, rbx
setne al
test eax, eax
jne 0x14002453e
mov ecx, 0x80004005
call fcn.140020790
int3
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140024545
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 0x14002459d
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140024cc2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
jmp 0x140024cc2
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 0x140024cad
mov rsi, qword [rbp - 0x38]
mov qword [rbp - 0x30], rsi
mov dword [rbp - 0x28], r13d
mov rcx, qword [0x1402719d8]
cmp dword [rcx - 0x10], eax
je 0x140024693
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024610
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 0x140024693
test rsi, rsi
je 0x140024656
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002466b
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 0x14002467b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002468b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
jmp 0x140024ce4
mov rcx, qword [0x140271988]
cmp dword [rcx - 0x10], 0
je 0x1400246de
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400246a3
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 0x140024647
mov rcx, qword [0x140271990]
cmp dword [rcx - 0x10], 0
je 0x14002472b
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400246f0
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 0x140024647
mov rax, qword [0x1402719a0]
cmp dword [rax - 0x10], 0
je 0x140024776
mov eax, dword [0x1402719a8]
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 0x140024647
mov rcx, qword [0x140271998]
cmp dword [rcx - 0x10], 0
je 0x1400247c1
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024786
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 0x140024647
mov rax, qword [0x140271c18]
cmp dword [rax - 0x10], 0
je 0x14002480c
mov eax, dword [0x140271c20]
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 0x140024647
mov rcx, qword [0x1402719b0]
cmp dword [rcx - 0x10], 0
je 0x14002485b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024820
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 0x140024647
mov rcx, qword [0x1402719b8]
cmp dword [rcx - 0x10], 0
je 0x1400248ab
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024870
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 0x140024647
mov rax, qword [0x1402719c0]
cmp dword [rax - 0x10], 0
je 0x1400248f6
mov eax, dword [0x1402719c8]
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 0x140024647
mov rcx, qword [0x1402719d0]
cmp dword [rcx - 0x10], 0
je 0x140024941
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024906
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 0x140024647
mov rcx, qword [0x140271c28]
cmp dword [rcx - 0x10], 0
je 0x14002498c
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024951
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 0x140024647
test rsi, rsi
je 0x1400249a1
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 0x1400249ba
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 0x1400249d1
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.1400225a0
mov r14d, eax
test eax, eax
jne 0x140024647
mov qword [rsp + 0x60], r13
mov r15, qword [rsp + 0x68]
mov r14, qword [rbp - 0x70]
test r14, r14
je 0x140024aa1
cmp qword [r14], 0
je 0x140024a92
lea rcx, [0x1401cb250]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140024a37
lea r14d, [rax + 1]
jmp 0x140024adf
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140024a99
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, [0x1402719e0]
mov rcx, r15
call rax
jmp 0x140024adc
cmp dword [r14 + 8], 0
jne 0x140024aa1
mov r14d, 1
jmp 0x140024adf
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, [0x1402719e0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r14d, eax
test r14d, r14d
jne 0x140024647
mov r14d, r13d
test r12, r12
je 0x140024afc
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 0x140024647
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 0x140024b52
cmp rax, 0x208
jae 0x140024b4c
mov word [rbp + rax], r13w
sub rax, 2
jmp 0x140024b30
call fcn.14019afe4
int3
lea rax, [rbp]
sub rax, 2
nop word [rax + rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x140024b60
movups xmm0, xmmword [0x1401cb9e0]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1401cb9f0]
movsd qword [rax + 0x10], xmm1
lea rcx, [rbp]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140024b90
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 0x140024bfb
test rsi, rsi
je 0x140024bdc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140024bf1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x60]
jmp 0x14002466f
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 0x140024bcd
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140024c49
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x78], r13d
test r15, r15
je 0x140024c60
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x70], r13d
test rsi, rsi
je 0x140024c74
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140024c89
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 0x140024c99
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140024ca9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140024ce4
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140024cc2
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 0x140024cd2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140024ce2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14019aa20
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