Function at 0x14000b4f0
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 0x14000b536
mov rbx, qword [rcx]
call fcn.14000ca70
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140007cd0
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.140007e20
cmp rax, rbx
je 0x14000b59c
lea rcx, [r11 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x14000b59c
cmp dx, 0x2f
je 0x14000b59c
mov r11, rcx
cmp rax, rcx
jne 0x14000b581
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.140005940
nop
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140008f10
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000b61e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b619
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b619
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d0d4
movdqa xmm0, xmmword [0x140019100]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000b677
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b672
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b672
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d0d4
movdqa xmm0, xmmword [0x140019100]
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 0x14000bcad
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 ebx, 0xf
lea rdi, [rbp - 0x30]
lea eax, [rbx + 7]
lea rdx, [rbx - 0x10]
cmp r15, rbx
jbe 0x14000b746
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x14000b6e9
mov rbx, rcx
jmp 0x14000b6f0
cmp rbx, rax
cmovb rbx, rax
mov rcx, rbx
add rcx, 1
cmovb rcx, rdx
cmp rcx, 0x1000
jb 0x14000b730
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000bcb3
mov rcx, rax
call fcn.14000d610
test rax, rax
je 0x14000bc1d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000b742
test rcx, rcx
je 0x14000b73f
call fcn.14000d610
mov rdi, rax
jmp 0x14000b742
mov rdi, r13
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], rbx
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x140018ec0]
movups xmmword [rdi + 0x10], xmm1
movzx eax, word [0x140018ed0]
mov word [rdi + 0x20], ax
lea rcx, [rdi + 0x22]
mov r8, r14
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r15], 0
mov r15, qword [rsi + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 4
jb 0x14000bcb9
cmp qword [rsi + 0x18], 0x10
jb 0x14000b7aa
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 0x14000b83f
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x14000b7d5
mov rdi, rcx
jmp 0x14000b7e2
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 0x14000b829
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000bca7
mov rcx, rax
call fcn.14000d610
test rax, rax
je 0x14000b8d0
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000b83b
test rcx, rcx
je 0x14000b838
call fcn.14000d610
mov rbx, rax
jmp 0x14000b83b
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 0x14000b8d7
lea rcx, str.____Cant_create_service_key_n
call fcn.140001040
xor bl, bl
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14000bbdb
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bbd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bbd6
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 0x14000b924
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.____Cant_create_ImagePath_registry_value_n
jmp 0x14000b88b
mov dword [rsp + 0x28], 4
lea rax, [0x140018ea8]
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 0x14000b967
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.____Cant_create_Type_registry_value_n
jmp 0x14000b88b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x1400101c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14000b890
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 0x14000b9cb
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
jmp 0x14000b88b
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 0x14000ba24
lea rcx, [rbp - 0x70]
call fcn.140006f80
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 0x14000ba78
movsx r9d, byte [rbx]
cmp rcx, r8
jae 0x14000ba5d
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 0x14000ba66
lea rcx, [rbp - 0x70]
call fcn.1400070f0
inc rbx
cmp rbx, rdi
je 0x14000ba78
mov r8, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
jmp 0x14000ba32
lea r8, [rbp - 0x70]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x30]
call fcn.140006d00
mov rbx, rax
lea rax, [rbp - 0x70]
cmp rax, rbx
je 0x14000bb05
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14000bad5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bad0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000bb3e
call fcn.14000d0d4
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 0x14000bb4a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bb45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bb45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d0d4
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 0x14000bbc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bbbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bbbb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d0d4
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
jmp 0x14000b892
call fcn.14000d0d4
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14000bc29
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bc24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bc24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d0d4
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x14000bc77
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bc72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bc72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d0d4
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14000d0b0
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