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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x170
mov rax, qword [0x100008110]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edi, edi
lea rax, [rsp + 0x50]
mov rbp, 0xffffffff80000002
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rdx, [0x1000017b0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp eax, edi
jne 0x100004007
mov rcx, qword [rsp + 0x50]
lea esi, [rdi + 4]
lea rax, [rsp + 0x58]
lea rdx, [0x100001800]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp eax, edi
jne 0x100004007
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea rdx, [0x100001818]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp eax, edi
jne 0x100004007
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rdx, [0x100001840]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp eax, edi
jne 0x100004007
mov rcx, qword [rsp + 0x50]
lea r14, [0x100001428]
lea r9d, [rdi + 1]
lea rdx, [0x1000018a0]
xor r8d, r8d
mov dword [rsp + 0x28], 0x22
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp eax, edi
jne 0x100004007
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, [0x100001840]
lea r8, [0x1000018c0]
lea edx, [rsi + 0x7c]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r14
call fcn.100001b88
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp eax, edi
jne 0x100004007
mov rcx, qword [rsp + 0x50]
lea rax, [0x100001410]
lea r9d, [rdi + 1]
lea rdx, [0x1000018d0]
xor r8d, r8d
mov dword [rsp + 0x28], 0xe
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp eax, edi
jne 0x100004007
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea rdx, [0x1000018e8]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
cmp rcx, rdi
je 0x10000401c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rdi
cmp ebx, edi
je 0x100004030
lea rdx, [0x1000017b0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.100005690
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret