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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400f3080]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, r8
mov rdi, rdx
xor r14d, r14d
cmp qword [r8 + 0x10], r14
je 0x140027139
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.14008a450
cmp qword [rbx + 0x18], 8
jb 0x140027027
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.140016bc8
lea r8, [rsp + 0x58]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x140027101
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002706f
mov rdx, qword [rdi]
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x140027101
lea rcx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], r14w
jne 0x140027094
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x140027106
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
lea rdx, str.Type
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x140027111
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jle 0x140027121
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140027139
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140027337
mov r8, rdi
lea rdx, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x70]
call fcn.14001b234
nop
call fcn.140024970
mov rbx, rax
lea rsi, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rsi, qword [rsp + 0x70]
movdqa xmm0, xmmword [0x1400d76f0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x30]
call fcn.140004d70
nop
call fcn.140046480
lea rdi, [rbx + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x58], r14
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140025e20
mov rax, qword [rsp + 0x58]
mov rcx, rdi
cmp rax, qword [rbx + 8]
je 0x1400271dc
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400271e3
mov rdx, rsi
lea rcx, [rbp - 0x70]
call rbx
jmp 0x1400271e3
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140027220
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002721b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027364
call fcn.14006bb24
call fcn.140024970
mov rbx, rax
movdqa xmm0, xmmword [0x1400d76f0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x30]
call fcn.140004d70
nop
call fcn.140046480
lea rdi, [rbx + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x58], r14
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140025e20
mov rax, qword [rsp + 0x58]
mov rcx, rdi
cmp rax, qword [rbx + 8]
je 0x14002729d
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400272a3
lea rcx, [rbp - 0x70]
call rbx
mov ebx, eax
jmp 0x1400272a8
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400272e5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400272e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002736a
call fcn.14006bb24
movdqa xmm0, xmmword [0x1400d76f0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140027335
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140027330
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002735e
call fcn.14006bb24
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14006bb00
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140095014
nop
call fcn.140095014
nop
call fcn.140095014
int3