Function at 0x100052a50
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.10001e06c
nop
lea rcx, [rsp + 0x50]
call fcn.10001e06c
nop
lea rdx, [0x1000124e0]
lea rcx, [rsp + 0xf8]
call fcn.10001e134
nop
lea r8, [rsp + 0x60]
mov rdx, r12
lea rcx, [rsp + 0xf8]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0xf8]
call fcn.10001f3ec
lea rdx, [0x100012410]
lea rcx, [rsp + 0xf8]
call fcn.10001e134
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x60]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0xf8]
call fcn.10001f3ec
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 0x100052b7d
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x1000112b0]
lea ecx, [rsi + 2]
call fcn.100037e18
mov ebp, edi
jmp 0x100052bd4
cmp rbx, rdi
jne 0x100052b87
mov r14d, esi
jmp 0x100052bd4
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 7
xor r8d, r8d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
je 0x100052bd2
mov r9, qword [r12]
mov r8d, eax
lea rdx, [0x100011460]
mov ecx, 3
call fcn.100037e18
mov ebp, edi
jmp 0x100052bd4
mov ebp, esi
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x100052be4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r14d, edi
je 0x100052bfb
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [rsp + 0xf0], edi
je 0x100052dd6
lea rcx, [rsp + 0x70]
call fcn.100018ee8
nop
lea rcx, [rsp + 0xf8]
call fcn.10001e06c
nop
lea rax, [rsp + 0xf8]
cmp rax, rdi
jne 0x100052c3b
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100052c54
lea r8, [rsp + 0xf8]
mov edx, 2
mov rcx, r13
call fcn.10003e3c8
cmp eax, edi
jne 0x100052c84
lea rdx, [0x10000c4a0]
mov ecx, 3
call fcn.100037e18
mov esi, edi
lea rcx, [rsp + 0xf8]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10001a784
jmp 0x100052dd6
lea rdx, [rsp + 0xf0]
mov rcx, r13
call fcn.10003e358
cmp eax, edi
jne 0x100052cd0
mov r8, qword [rsp + 0xf8]
lea rdx, [0x100012030]
mov ecx, 3
call fcn.100037e18
mov esi, edi
lea rcx, [rsp + 0xf8]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10001a784
jmp 0x100052dd6
mov r9d, dword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
mov r8, rbx
lea rdx, [0x1000117c0]
mov ecx, esi
call fcn.100037e18
cmp dword [rsp + 0xf0], 5
je 0x100052d77
cmp dword [rsp + 0xf0], 9
jne 0x100052d8e
lea rax, [rsp + 0x70]
cmp rax, rdi
jne 0x100052d20
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100052d36
lea r8, [rsp + 0x70]
mov edx, 8
mov rcx, r13
call fcn.10003e708
cmp eax, edi
jne 0x100052d55
mov esi, edi
lea rcx, [rsp + 0xf8]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10001a784
jmp 0x100052dd6
mov r9, r15
lea r8, [rsp + 0x70]
mov rdx, r12
lea rcx, [rsp + 0xf8]
call fcn.10004df34
mov rbx, qword [rsp + 0xf8]
jmp 0x100052d8a
mov r8, r15
mov rdx, r12
lea rcx, [rsp + 0xf8]
call fcn.10004db58
cmp eax, edi
je 0x100052dbe
mov r8, rbx
lea rdx, [0x1000120a0]
mov ecx, 3
call fcn.100037e18
mov esi, edi
lea rcx, [rsp + 0xf8]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10001a784
jmp 0x100052dd6
lea rcx, [rsp + 0xf8]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10001a784
cmp ebp, edi
je 0x100052dde
cmp esi, edi
jne 0x100052de3
mov edi, 0x643
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10001f3ec
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