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

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rax, rsp
sub rsp, 0x88
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov r14d, r9d
mov r12, r8
mov rsi, rcx
mov edi, 1
mov r13d, edi
xor ebx, ebx
mov r15, qword [rsp + 0xf0]
mov dword [r15], ebx
mov qword [rax - 0x58], rbx
mov ebp, ebx
lea rcx, [rax + 0x58]
call fcn.10001fee0
nop
lea rcx, [rsp + 0xf0]
call fcn.10001fee0
nop
lea rdx, [0x100012840]
lea rcx, [rsp + 0x38]
call fcn.10001ff98
nop
lea r8, [rsp + 0xe0]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1000327cc
nop
lea rcx, [rsp + 0x38]
call fcn.10001fba0
lea rdx, [0x100012770]
lea rcx, [rsp + 0x38]
call fcn.10001ff98
nop
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xe0]
call fcn.1000327cc
nop
lea rcx, [rsp + 0x38]
call fcn.10001fba0
lea r11, [rsp + 0x30]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10005c3fa
cmp eax, 2
je 0x10005c3e7
mov r9, qword [rsi]
mov r8d, eax
lea rdx, [0x100011610]
lea ecx, [rdi + 2]
call fcn.10003c3c0
mov r13d, ebx
jmp 0x10005c44b
mov r8, qword [rsi]
lea rdx, [0x1000116f0]
mov ecx, edi
call fcn.10003c3c0
jmp 0x10005c44b
cmp r12, rbx
jne 0x10005c403
mov ebp, edi
jmp 0x10005c44b
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r12
mov r9d, 7
xor r8d, r8d
lea rdx, [0x1000107a0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x10005c448
mov r9, qword [rsi]
mov r8d, eax
lea rdx, [0x1000117c0]
mov ecx, 3
call fcn.10003c3c0
mov r13d, ebx
jmp 0x10005c44b
mov r13d, edi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x10005c45b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x10005c4d9
mov rdx, qword [rsp + 0xf0]
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 0x10005c4d9
mov r8d, r14d
mov rdx, qword [rsi]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp rax, rbx
jne 0x10005c4c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x10005c4d0
mov rdx, qword [rsp + 0xe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x10005c4d0
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.100019218
nop
cmp r12, rbx
je 0x10005c4f6
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.100044e08
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.10001ff10
nop
mov r9, r15
lea r8, [rsp + 0x50]
mov edx, dword [rsp + 0xd8]
mov rcx, rax
call fcn.10005de88
cmp eax, ebx
jne 0x10005c53c
lea rdx, [0x100011880]
mov ecx, 3
call fcn.10003c3c0
mov edi, ebx
cmp r13d, ebx
je 0x10005c545
cmp edi, ebx
jne 0x10005c54a
mov ebx, 0x643
lea rcx, [rsp + 0x50]
call fcn.10001f53c
nop
lea rcx, [rsp + 0xf0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0xe0]
call fcn.10001fba0
mov eax, ebx
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret