Function at 0x100048a0c
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r14d, r9d
mov r12, r8
mov rsi, rcx
mov edi, 1
mov r13d, edi
xor ebx, ebx
mov r15, qword [rsp + 0xe0]
mov dword [r15], ebx
mov qword [rsp + 0x30], rbx
mov ebp, ebx
lea rcx, [rax + 0x18]
call fcn.100020360
nop
lea rcx, [rsp + 0xe0]
call fcn.100020360
nop
lea rdx, [0x100010400]
lea rcx, [rsp + 0x38]
call fcn.100020428
nop
lea r8, [rsp + 0xd0]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.100032a84
nop
lea rcx, [rsp + 0x38]
call fcn.10002006c
lea rdx, [0x100010330]
lea rcx, [rsp + 0x38]
call fcn.100020428
nop
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xd0]
call fcn.100032a84
nop
lea rcx, [rsp + 0x38]
call fcn.10002006c
lea r11, [rsp + 0x30]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0xe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x100048b35
cmp eax, 2
je 0x100048b22
mov r9, qword [rsi]
mov r8d, eax
lea rdx, [0x10000f1d0]
lea ecx, [rdi + 2]
call fcn.100054fd8
mov r13d, ebx
jmp 0x100048b86
mov r8, qword [rsi]
lea rdx, [0x10000f2b0]
mov ecx, edi
call fcn.100054fd8
jmp 0x100048b86
cmp r12, rbx
jne 0x100048b3e
mov ebp, edi
jmp 0x100048b86
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r12
mov r9d, 7
xor r8d, r8d
lea rdx, [0x10000e598]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x100048b83
mov r9, qword [rsi]
mov r8d, eax
lea rdx, [0x10000f380]
mov ecx, 3
call fcn.100054fd8
mov r13d, ebx
jmp 0x100048b86
mov r13d, edi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x100048b96
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x100048c14
mov rdx, qword [rsp + 0xe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r14d, 0x80000000
mov r8d, r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
cmp rax, rbx
je 0x100048c14
mov r8d, r14d
mov rdx, qword [rsi]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp rax, rbx
jne 0x100048c02
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x100048c0b
mov rdx, qword [rsp + 0xd0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x100048c0b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [rsp + 0x50]
call fcn.1000193b8
nop
cmp r12, rbx
je 0x100048c31
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.10003cc14
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.100020390
nop
mov r9, r15
lea r8, [rsp + 0x50]
mov edx, dword [rsp + 0xc8]
mov rcx, rax
call fcn.10004a5e0
cmp eax, ebx
jne 0x100048c77
lea rdx, [0x10000f440]
mov ecx, 3
call fcn.100054fd8
mov edi, ebx
cmp r13d, ebx
je 0x100048c80
cmp edi, ebx
jne 0x100048c85
mov ebx, 0x643
lea rcx, [rsp + 0x50]
call fcn.10001f994
nop
lea rcx, [rsp + 0xe0]
call fcn.10002006c
nop
lea rcx, [rsp + 0xd0]
call fcn.10002006c
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret