Function at 0x7ff798114a50
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
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
lea rcx, [rbp + 0x17]
call fcn.7ff7980c85d0
nop
lea r8, [rbp + 0x17]
lea rdx, [0x7ff79818d0e0]
lea rcx, [rbp - 9]
call fcn.7ff7981148d0
nop
mov r8, rbx
lea rdx, [0x7ff79818d128]
lea rcx, [rbp - 0x49]
call fcn.7ff7981148d0
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rdx, qword [rbp - 9]
lea r8, [rbp - 0x59]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegCreateKeyW]
xor esi, esi
test eax, eax
jne 0x7ff798114c47
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
lea r9d, [rsi + 2]
lea r8, [0x7ff79818d138]
xor edx, edx
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.advapi32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x59]
test eax, eax
jne 0x7ff798114c41
mov dword [rsp + 0x28], 4
lea rax, [0x7ff79818d0d0]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
lea r8, [0x7ff79818d150]
xor edx, edx
call qword [sym.imp.advapi32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x59]
test eax, eax
jne 0x7ff798114c41
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea rcx, [0x7ff798187c98]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x7ff798114c47
lea rdx, [0x7ff79818d160]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rbx, rax
lea rdx, [0x7ff79818d178]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rdi, rax
lea r9, [rbp - 0x51]
xor r8d, r8d
mov dl, 1
lea ecx, [rsi + 0xa]
call rbx
test eax, eax
js 0x7ff798114c47
lea r8, [rbp + 0x17]
lea rdx, [0x7ff79818d190]
lea rcx, [rbp - 0x29]
call fcn.7ff7981148d0
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
lea rcx, [rbp + 0x37]
call sub.ntdll.dll_RtlInitUnicodeString
lea rcx, [rbp + 0x37]
call rdi
mov ebx, eax
cmp eax, 0xc000010e
jne 0x7ff798114be5
mov bl, 1
jmp 0x7ff798114beb
shr ebx, 0x1f
xor bl, 1
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x7ff798114c2e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff798114c29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff798114c29
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff798179c7c
movdqa xmm0, xmmword [0x7ff798187cc0]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], si
jmp 0x7ff798114c49
call qword [sym.imp.advapi32.dll_RegCloseKey]
xor bl, bl
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x7ff798114c8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff798114c87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff798114c87
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff798179c7c
movdqa xmm0, xmmword [0x7ff798187cc0]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], si
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x7ff798114ce0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff798114cdb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff798114cdb
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff798179c7c
movdqa xmm0, xmmword [0x7ff798187cc0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], si
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x7ff798114d34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff798114d2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff798114d2f
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff798179c7c
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.7ff798179f10
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret