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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rbx, rcx
lea rcx, [rbp - 0x49]
call fcn.1400023a4
nop
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
mov rcx, qword [rbp - 0x39]
sub rax, rcx
cmp rax, 0x22
jb 0x140010fad
lea rax, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rax, qword [rbp - 0x49]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x22
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0x17]
call fcn.14000b668
nop
mov rcx, qword [rbx + 0x10]
mov rax, rdi
sub rax, rcx
mov esi, 4
cmp rax, rsi
jb 0x140010fb3
cmp qword [rbx + 0x18], 8
jb 0x140010d71
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
lea r9, [0x14004af48]
lea rcx, [rbp - 0x29]
call fcn.14000b668
nop
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rdx, qword [rbp + 0x17]
lea r8, [rbp + 0x77]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140010dc0
lea rdx, str.____Cant_create_service_key
jmp 0x140010e43
mov eax, dword [rbp - 0x19]
add eax, eax
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
je 0x140010e0c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.____Cant_create_ImagePath_registry_value
jmp 0x140010e43
mov dword [rsp + 0x28], esi
lea rax, [0x14004aef0]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
je 0x140010e8b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.____Cant_create_Type_registry_value
call fcn.14000a09c
mov rcx, rax
call fcn.1400093c0
xor sil, sil
lea rcx, [rbp - 0x29]
call fcn.140007cb8
nop
lea rcx, [rbp + 0x17]
call fcn.140007cb8
nop
lea rcx, [rbp - 0x49]
call fcn.140007cb8
mov al, sil
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [0x14004a760]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x140010e50
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtLoadDriver
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea r9, [rbp + 0x6f]
xor r8d, r8d
mov sil, 1
mov dl, sil
lea ecx, [r8 + 0xa]
call rbx
test eax, eax
jns 0x140010ef0
lea rdx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator.
jmp 0x140010e43
mov rcx, qword [rbp - 0x39]
sub rdi, rcx
cmp rdi, 0x34
jb 0x140010fa7
lea rax, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rax, qword [rbp - 0x49]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 9]
call fcn.14000b668
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
lea rcx, [rbp + 0x37]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x37]
call r14
mov ebx, eax
lea rdx, str.___NtLoadDriver_Status_0x
call fcn.14000a09c
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
mov edx, ebx
mov rcx, rax
call fcn.14000f200
mov rcx, rax
call fcn.1400093c0
cmp ebx, 0xc000010e
je 0x140010f99
test ebx, ebx
setns sil
lea rcx, [rbp - 9]
call fcn.140007cb8
jmp 0x140010e53
call fcn.140001354
nop
call fcn.140001354
nop
call fcn.140001354
int3