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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, rcx
mov rdi, qword [rcx + 0x10]
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14000b5e6
mov rbx, qword [rcx]
call fcn.14000cb94
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140007d90
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea rbx, [rcx + rax*2]
mov r11, rbx
mov rdx, rbx
call fcn.140007ee0
cmp rax, rbx
je 0x14000b64c
lea rcx, [r11 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x14000b64c
cmp dx, 0x2f
je 0x14000b64c
mov r11, rcx
cmp rax, rcx
jne 0x14000b631
sub rbx, r11
sar rbx, 1
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov r8, rbx
mov rdx, r11
lea rcx, [rsp + 0x60]
call fcn.140005960
nop
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140009140
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000b6ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b6c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b6c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d284
movdqa xmm0, xmmword [0x140019160]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000b727
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b722
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b722
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d284
movdqa xmm0, xmmword [0x140019160]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r13w
mov r14, qword [rbp]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 0x22
jb 0x14000bd5d
lea r12, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae r12, qword [rbp - 0x10]
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
lea r15, [r14 + 0x22]
mov edi, 0xf
lea rbx, [rbp - 0x30]
lea eax, [rdi + 7]
lea rdx, [rdi - 0x10]
cmp r15, rdi
jbe 0x14000b7f6
mov rdi, r15
or rdi, 0xf
cmp rdi, rcx
jbe 0x14000b799
mov rdi, rcx
jmp 0x14000b7a0
cmp rdi, rax
cmovb rdi, rax
mov rcx, rdi
add rcx, 1
cmovb rcx, rdx
cmp rcx, 0x1000
jb 0x14000b7e0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000bd63
mov rcx, rax
call fcn.14000d7c0
test rax, rax
je 0x14000bccd
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000b7f2
test rcx, rcx
je 0x14000b7ef
call fcn.14000d7c0
mov rbx, rax
jmp 0x14000b7f2
mov rbx, r13
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], rdi
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [0x140018f20]
movups xmmword [rbx + 0x10], xmm1
movzx eax, word [0x140018f30]
mov word [rbx + 0x20], ax
lea rcx, [rbx + 0x22]
mov r8, r14
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r15], 0
mov r15, qword [rsi + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 4
jb 0x14000bd69
cmp qword [rsi + 0x18], 0x10
jb 0x14000b85a
mov rsi, qword [rsi]
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
lea r14, [r15 + 4]
mov edi, 0xf
lea rbx, [rbp - 0x50]
cmp r14, rdi
jbe 0x14000b8ef
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x14000b885
mov rdi, rcx
jmp 0x14000b892
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
mov rcx, rdi
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x14000b8d9
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000bd57
mov rcx, rax
call fcn.14000d7c0
test rax, rax
je 0x14000b980
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000b8eb
test rcx, rcx
je 0x14000b8e8
call fcn.14000d7c0
mov rbx, rax
jmp 0x14000b8eb
mov rbx, r13
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], rdi
mov dword [rbx], 0x5c3f3f5c
lea rcx, [rbx + 4]
mov r8, r15
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r14], 0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x14000b987
lea rcx, str.____Cant_create_service_key_n
call fcn.140001040
xor bl, bl
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14000bc8b
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bc86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bc86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
mov rcx, qword [rbp - 0x80]
test eax, eax
je 0x14000b9d4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.____Cant_create_ImagePath_registry_value_n
jmp 0x14000b93b
mov dword [rsp + 0x28], 4
lea rax, [0x140018f08]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
mov rcx, qword [rbp - 0x80]
test eax, eax
je 0x14000ba17
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.____Cant_create_Type_registry_value_n
jmp 0x14000b93b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14000b940
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtLoadDriver
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea r9, [rbp - 0x78]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call rbx
test eax, eax
jns 0x14000ba7b
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
jmp 0x14000b93b
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
mov rdi, qword [rbp]
add rdi, rdx
lea rbx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rbx, qword [rbp - 0x10]
mov rcx, r13
mov qword [rbp - 0x60], rcx
mov r8d, 7
mov qword [rbp - 0x58], r8
mov word [rbp - 0x70], r13w
mov rdx, rdi
sub rdx, rbx
cmp rdx, 8
jb 0x14000bad4
lea rcx, [rbp - 0x70]
call fcn.140006fa0
mov rcx, r13
mov qword [rbp - 0x60], rcx
mov r8, qword [rbp - 0x58]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
cmp rbx, rdi
je 0x14000bb28
movsx r9d, byte [rbx]
cmp rcx, r8
jae 0x14000bb0d
lea rax, [rcx + 1]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x70]
cmp r8, 8
cmovae rax, qword [rbp - 0x70]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r13w
jmp 0x14000bb16
lea rcx, [rbp - 0x70]
call fcn.140007110
inc rbx
cmp rbx, rdi
je 0x14000bb28
mov r8, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
jmp 0x14000bae2
lea r8, [rbp - 0x70]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x30]
call fcn.140006d20
mov rbx, rax
lea rax, [rbp - 0x70]
cmp rax, rbx
je 0x14000bbb5
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14000bb85
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bb80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000bbee
call fcn.14000d284
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000bbfa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bbf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bbf5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d284
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
lea rcx, [rbp + 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x10]
call rsi
mov ebx, eax
mov edx, eax
lea rcx, str.___NtLoadDriver_Status_0x_lx_n
call fcn.140001040
test ebx, ebx
setns bl
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14000bc70
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bc6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bc6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d284
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
jmp 0x14000b942
call fcn.14000d284
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14000bcd9
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bcd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bcd4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d284
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x14000bd27
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bd22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bd22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d284
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14000d260
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400011a0
nop
call fcn.140001240
int3
call fcn.1400011a0
nop
call fcn.140001240
int3