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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rbx, rcx
lea rcx, [rbp - 0x49]
call fcn.7ff787125e40
nop
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
mov rcx, qword [rbp - 0x39]
sub rax, rcx
cmp rax, 0x22
jb 0x7ff78712d599
lea rax, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova rax, qword [rbp - 0x49]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x22
lea r9, [0x7ff787439130]
lea r8, [rbp - 0x49]
movzx edx, byte [rbp + 0x6f]
lea rcx, [rbp + 0x17]
call fcn.7ff78712b710
nop
mov rcx, qword [rbx + 0x10]
mov rax, rdi
sub rax, rcx
cmp rax, 4
jb 0x7ff78712d59f
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x7ff78712d3ba
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 4
lea r9, [0x7ff787439120]
mov r8, rbx
movzx edx, byte [rbp + 0x6f]
lea rcx, [rbp - 0x29]
call fcn.7ff78712b710
nop
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rdx, qword [rbp + 0x17]
lea r8, [rbp + 0x77]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegCreateKeyW]
test eax, eax
jne 0x7ff78712d44b
mov eax, dword [rbp - 0x19]
add eax, eax
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rcx, qword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, [0x7ff787439188]
xor edx, edx
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.advapi32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
je 0x7ff78712d480
call qword [sym.imp.advapi32.dll_RegCloseKey]
xor bl, bl
lea rcx, [rbp - 0x29]
call fcn.7ff787129950
nop
lea rcx, [rbp + 0x17]
call fcn.7ff787129950
nop
lea rcx, [rbp - 0x49]
call fcn.7ff787129950
movzx eax, bl
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x28], 4
lea rax, [0x7ff78744a0d8]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [0x7ff787439178]
xor edx, edx
call qword [sym.imp.advapi32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
jne 0x7ff78712d445
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea rcx, [0x7ff7874391b8]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x7ff78712d44b
lea rdx, [0x7ff7874391a0]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rbx, rax
lea rdx, [0x7ff787439240]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rsi, rax
lea r9, [rbp + 0x6f]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call rbx
test eax, eax
js 0x7ff78712d44b
mov rcx, qword [rbp - 0x39]
sub rdi, rcx
cmp rdi, 0x34
jb 0x7ff78712d593
lea rax, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova rax, qword [rbp - 0x49]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, [0x7ff7874391d0]
lea r8, [rbp - 0x49]
movzx edx, byte [rbp + 0x6f]
lea rcx, [rbp - 9]
call fcn.7ff78712b710
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rdx, qword [rbp - 9]
lea rcx, [rbp + 0x37]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x37]
call rsi
mov ebx, eax
cmp eax, 0xc000010e
jne 0x7ff78712d57f
mov bl, 1
jmp 0x7ff78712d585
shr ebx, 0x1f
xor bl, 1
lea rcx, [rbp - 9]
call fcn.7ff787129950
jmp 0x7ff78712d44d
call fcn.7ff78711d960
nop
call fcn.7ff78711d960
nop
call fcn.7ff78711d960
int3