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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400f4080]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, r8
mov rdi, rdx
cmp qword [r8 + 0x10], 0
je 0x140024673
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x78], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.140088180
cmp qword [rbx + 0x18], 8
jb 0x140024562
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.140013564
lea r8, [rbp - 0x80]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x14002463c
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400245a9
mov rdx, qword [rdi]
lea r8, [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x14002463c
lea rcx, [rbp - 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400245d0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test eax, eax
jne 0x140024641
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
lea rdx, [0x1400d4360]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
jle 0x14002464c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jle 0x14002465b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140024673
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140024802
mov r8, rdi
lea rdx, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x70]
call fcn.1400183e0
nop
call fcn.140021910
mov rbx, rax
lea rdi, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdi, qword [rbp - 0x70]
mov ecx, 0x20
call fcn.14006967c
mov qword [rsp + 0x60], 0x14
mov qword [rsp + 0x68], 0x1f
movups xmm0, xmmword [str.RtlInitUnicodeString]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400d4270]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400231f0
test rax, rax
je 0x1400246f1
mov rdx, rdi
lea rcx, [rbp - 0x50]
call rax
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14002472e
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024729
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002482c
call fcn.140069674
call fcn.140021910
mov rbx, rax
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x40], 0xc
mov r8d, 0xc
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x30]
call fcn.140087d20
mov byte [rsp + 0x3c], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400231f0
test rax, rax
je 0x140024785
lea rcx, [rbp - 0x50]
call rax
mov ebx, eax
jmp 0x14002478a
mov ebx, 0xc0000138
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400247c4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400247be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024832
call fcn.140069674
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140024800
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400247fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024826
call fcn.140069674
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140069650
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400927c0
nop
call fcn.1400927c0
nop
call fcn.1400927c0
int3