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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov rax, qword [0x7ff9b9dc6200]
xor rax, rsp
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0xd8]
call fcn.7ff9b9c1ae60
nop
lea rcx, [rsp + 0xf8]
call fcn.7ff9b9c1ae60
nop
mov dword [rsp + 0x40], 0xc0000002
mov dword [rsp + 0xd4], 1
mov rax, qword [rsp + 0x130]
mov r8, rax
lea rdx, [0x7ff9b9dade48]
lea rcx, [rsp + 0x88]
call fcn.7ff9b9cb9b20
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xd8]
call fcn.7ff9b9c1acc0
lea rcx, [rsp + 0x88]
call fcn.7ff9b9c1ac70
mov rax, qword [rsp + 0x130]
add rax, 0x40
mov rcx, rax
call fcn.7ff9b9c13900
lea r8, [rsp + 0xc8]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegCreateKeyW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x7ff9b9cb9919
lea rcx, [rsp + 0xd8]
call fcn.7ff9b9c15640
shl rax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0xd8]
call fcn.7ff9b9c13900
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [0x7ff9b9dade58]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.advapi32.dll_RegSetKeyValueW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x7ff9b9cb990b
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xd4]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [0x7ff9b9dadfb0]
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.advapi32.dll_RegSetKeyValueW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x7ff9b9cb990b
lea rcx, [0x7ff9b9dadf28]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
lea rdx, [0x7ff9b9dadfc0]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0xd0]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call qword [rsp + 0x70]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x7ff9b9cb990b
mov rax, qword [rsp + 0x130]
add rax, 0x20
mov r8, rax
lea rdx, [0x7ff9b9dadf40]
lea rcx, [rsp + 0xa8]
call fcn.7ff9b9cb9b20
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xf8]
call fcn.7ff9b9c1acc0
lea rcx, [rsp + 0xa8]
call fcn.7ff9b9c1ac70
lea rcx, [rsp + 0xf8]
call fcn.7ff9b9c13900
mov rcx, rax
call fcn.7ff9b9d5da28
mov rcx, qword [rsp + 0x130]
add rcx, 0x60
mov rdx, rax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [0x7ff9b9dae008]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
adc eax, 0xcdbea
lea rdx, [0x7ff9b9dadff8]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x130]
add rax, 0x60
mov rcx, rax
call qword [rsp + 0x80]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x7ff9b9cb990b
mov rcx, qword [rsp + 0x138]
call fcn.7ff9b9c13900
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.kernel32.dll_CreateFileW]
mov rcx, qword [rsp + 0x130]
mov qword [rcx + 0x70], rax
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x70], 0
je 0x7ff9b9cb9903
mov dword [rsp + 0x40], 0
jmp 0x7ff9b9cb990b
mov dword [rsp + 0x40], 0xc0000001
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0xf8]
call fcn.7ff9b9c1ac70
nop
lea rcx, [rsp + 0xd8]
call fcn.7ff9b9c1ac70
nop
mov rcx, qword [rsp + 0x138]
call fcn.7ff9b9c1ac70
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.7ff9b9d49770
add rsp, 0x128
ret