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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbx, r8
mov r12, rdx
mov r13, rcx
mov esi, 1
mov ebp, esi
xor edi, edi
mov r15, qword [rsp + 0xf8]
mov dword [r15], edi
mov qword [rax - 0x70], rdi
mov r14d, edi
lea rcx, [rax - 0x68]
call fcn.100020360
nop
lea rcx, [rsp + 0x50]
call fcn.100020360
nop
lea rdx, [0x100010400]
lea rcx, [rsp + 0xf8]
call fcn.100020428
nop
lea r8, [rsp + 0x60]
mov rdx, r12
lea rcx, [rsp + 0xf8]
call fcn.100032a84
nop
lea rcx, [rsp + 0xf8]
call fcn.10002006c
lea rdx, [0x100010330]
lea rcx, [rsp + 0xf8]
call fcn.100020428
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x60]
call fcn.100032a84
nop
lea rcx, [rsp + 0xf8]
call fcn.10002006c
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x10004b0d1
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x10000f1d0]
lea ecx, [rsi + 2]
call fcn.100054fd8
mov ebp, edi
jmp 0x10004b128
cmp rbx, rdi
jne 0x10004b0db
mov r14d, esi
jmp 0x10004b128
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 7
xor r8d, r8d
lea rdx, [0x10000e598]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
je 0x10004b126
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x10000f380]
mov ecx, 3
call fcn.100054fd8
mov ebp, edi
jmp 0x10004b128
mov ebp, esi
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x10004b138
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r14d, edi
je 0x10004b14f
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [rsp + 0xf0], edi
je 0x10004b32a
lea rcx, [rsp + 0x70]
call fcn.1000193b8
nop
lea rcx, [rsp + 0xf8]
call fcn.100020360
nop
lea rax, [rsp + 0xf8]
cmp rax, rdi
jne 0x10004b18f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10004b1a8
lea r8, [rsp + 0xf8]
mov edx, 2
mov rcx, r13
call fcn.10003d2d8
cmp eax, edi
jne 0x10004b1d8
lea rdx, [0x10000cc10]
mov ecx, 3
call fcn.100054fd8
mov esi, edi
lea rcx, [rsp + 0xf8]
call fcn.10002006c
nop
lea rcx, [rsp + 0x70]
call fcn.10001f994
jmp 0x10004b32a
lea rdx, [rsp + 0xf0]
mov rcx, r13
call fcn.10003d268
cmp eax, edi
jne 0x10004b224
mov r8, qword [rsp + 0xf8]
lea rdx, [0x10000ff50]
mov ecx, 3
call fcn.100054fd8
mov esi, edi
lea rcx, [rsp + 0xf8]
call fcn.10002006c
nop
lea rcx, [rsp + 0x70]
call fcn.10001f994
jmp 0x10004b32a
mov r9d, dword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
mov r8, rbx
lea rdx, [0x10000f6e0]
mov ecx, esi
call fcn.100054fd8
cmp dword [rsp + 0xf0], 5
je 0x10004b2cb
cmp dword [rsp + 0xf0], 9
jne 0x10004b2e2
lea rax, [rsp + 0x70]
cmp rax, rdi
jne 0x10004b274
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10004b28a
lea r8, [rsp + 0x70]
mov edx, 8
mov rcx, r13
call fcn.10003d658
cmp eax, edi
jne 0x10004b2a9
mov esi, edi
lea rcx, [rsp + 0xf8]
call fcn.10002006c
nop
lea rcx, [rsp + 0x70]
call fcn.10001f994
jmp 0x10004b32a
mov r9, r15
lea r8, [rsp + 0x70]
mov rdx, r12
lea rcx, [rsp + 0xf8]
call fcn.100045480
mov rbx, qword [rsp + 0xf8]
jmp 0x10004b2de
mov r8, r15
mov rdx, r12
lea rcx, [rsp + 0xf8]
call fcn.100044dfc
cmp eax, edi
je 0x10004b312
mov r8, rbx
lea rdx, [0x10000ffc0]
mov ecx, 3
call fcn.100054fd8
mov esi, edi
lea rcx, [rsp + 0xf8]
call fcn.10002006c
nop
lea rcx, [rsp + 0x70]
call fcn.10001f994
jmp 0x10004b32a
lea rcx, [rsp + 0xf8]
call fcn.10002006c
nop
lea rcx, [rsp + 0x70]
call fcn.10001f994
cmp ebp, edi
je 0x10004b332
cmp esi, edi
jne 0x10004b337
mov edi, 0x643
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
lea rcx, [rsp + 0x60]
call fcn.10002006c
mov eax, edi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret