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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
lea rcx, [rbp + 0x17]
call fcn.1400c8680
nop
lea r8, [rbp + 0x17]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 9]
call fcn.1400cb3a0
nop
mov r8, rbx
lea rdx, str.___
lea rcx, [rbp - 0x49]
call fcn.1400cb3a0
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rdx, qword [rbp - 9]
lea r8, [rbp - 0x61]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor esi, esi
movdqa xmm6, xmmword [0x140114780]
test eax, eax
jne 0x1400cb5e3
mov eax, dword [rbp - 0x39]
add eax, eax
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova rcx, qword [rbp - 0x49]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x61]
test eax, eax
je 0x1400cb642
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x14011024d]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400c5190
xor bl, bl
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x1400cb7cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cb7bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cb7bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x28], 4
lea rax, [0x14011d420]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x61]
test eax, eax
jne 0x1400cb5dd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x14011d2b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x1400cb5f6
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 rdi, rax
lea r9, [rbp - 0x69]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call rbx
test eax, eax
js 0x1400cb5e3
lea r8, [rbp + 0x17]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 0x29]
call fcn.1400cb3a0
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x59]
call sub.ntdll.dll_RtlInitUnicodeString
lea rcx, [rbp - 0x59]
call rdi
mov ebx, eax
lea rdx, [0x14011024d]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400c5190
cmp ebx, 0xc0000603
jne 0x1400cb7a0
lea rdx, [0x14011024d]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400c5190
lea rdx, [0x14011024d]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400c5190
lea rdx, [0x14011024d]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400c5190
shr ebx, 0x1f
xor bl, 1
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x1400cb7b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cb7ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cb7ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp ebx, 0xc000010e
jne 0x1400cb75c
mov bl, 1
jmp 0x1400cb762
call fcn.140105794
movdqu xmmword [rbp - 0x19], xmm6
mov word [rbp - 0x29], si
jmp 0x1400cb5f8
call fcn.140105794
movdqa xmm6, xmmword [0x140114780]
movdqu xmmword [rbp - 0x39], xmm6
mov word [rbp - 0x49], si
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x1400cb820
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cb813
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cb813
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140105794
movdqa xmm6, xmmword [0x140114780]
movdqu xmmword [rbp + 7], xmm6
mov word [rbp - 9], si
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x1400cb86c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cb867
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cb867
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140105794
movzx eax, bl
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140105b50
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret