Function at 0x10005d3b4
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xa0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x60]
call fcn.100019218
nop
mov dword [rbp], 1
lea rcx, [rsp + 0x58]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x50]
call fcn.10001fee0
nop
lea rdx, [0x100012840]
lea rcx, [rsp + 0x30]
call fcn.10001ff98
nop
lea r8, [rsp + 0x58]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1000327cc
nop
lea rcx, [rsp + 0x30]
call fcn.10001fba0
lea rdx, [0x100012770]
lea rcx, [rsp + 0x30]
call fcn.10001ff98
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.1000327cc
nop
lea rcx, [rsp + 0x30]
call fcn.10001fba0
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10005d7c6
mov dword [rsp + 0xe8], ebx
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1000107a0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10005d4ee
cmp eax, 2
jne 0x10005d7c6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rbx
mov ebx, 1
jmp 0x10005d7d7
mov eax, dword [rsp + 0xe8]
add eax, 4
mov dword [rsp + 0xe8], eax
mov ecx, eax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rdi, qword [rsp + 0xf0]
mov qword [rdi], rax
cmp rax, rbx
je 0x10005d7c6
mov ecx, dword [rsp + 0xe8]
mov rax, qword [rsp + 0xf8]
mov dword [rax], ecx
mov r8, rcx
xor edx, edx
mov rcx, qword [rdi]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0xe8]
mov qword [rsp + 0x28], r11
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1000107a0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10005d7c6
mov rdx, qword [rdi]
lea rcx, [rsp + 0x60]
call fcn.100044e08
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], rdx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.10001ff10
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.100036084
cmp eax, ebx
je 0x10005d738
lea rcx, [rsp + 0x48]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x30]
call fcn.10001fee0
nop
mov eax, ebx
mov rdx, qword [rsp + 0x60]
cmp rdx, rbx
setne al
cmp eax, ebx
jne 0x10005d5d9
mov ecx, 0x80004005
call fcn.10001fd10
int3
add rdx, 0x10
lea rcx, [rsp + 0x48]
call fcn.10001ecdc
mov rdx, qword [rsi]
mov eax, ebx
cmp rdx, rbx
setne al
cmp eax, ebx
jne 0x10005d601
mov ecx, 0x80004005
call fcn.10001fd10
int3
mov rax, qword [rsp + 0x48]
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x10005d61f
add rax, 2
test cx, cx
jne 0x10005d609
mov eax, ebx
jmp 0x10005d624
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10005d713
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.100044e98
cmp qword [rsp + 0x70], rbx
je 0x10005d723
mov rdi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x10005d6a0
mov eax, ebx
cmp rdi, rbx
setne al
cmp eax, ebx
je 0x10005d695
mov rdx, rdi
mov rdi, qword [rdi]
add rdx, 0x10
lea rcx, [rsp + 0x40]
call fcn.10001ff10
nop
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call fcn.10001f488
nop
lea rcx, [rsp + 0x40]
call fcn.10001fba0
cmp rdi, rbx
jne 0x10005d650
mov rdi, qword [rsp + 0x60]
jmp 0x10005d6a0
mov ecx, 0x80004005
call fcn.10001fd10
int3
mov eax, ebx
cmp rdi, rbx
setne al
cmp eax, ebx
jne 0x10005d6b7
mov ecx, 0x80004005
call fcn.10001fd10
int3
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.10001ecdc
xor r11d, r11d
lea rdx, [0x100010770]
mov rdi, rdx
mov rsi, qword [rsp + 0x30]
lea ecx, [r11 + 0x15]
repe cmpsw word [rsi], word [rdi]
je 0x10005d6e7
sbb r11d, r11d
sbb r11d, 0xffffffff
cmp r11d, ebx
jne 0x10005d723
lea rcx, [rsp + 0x40]
call fcn.10001ff98
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.100044e98
nop
lea rcx, [rsp + 0x40]
call fcn.10001fba0
jmp 0x10005d723
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.100044e98
mov dword [rbp], ebx
lea rcx, [rsp + 0x30]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x48]
call fcn.10001fba0
cmp qword [rsp + 0x70], rbx
je 0x10005d79e
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x60]
call fcn.100034e1c
mov rdi, rax
cmp rax, rbx
je 0x10005d7c6
mov ecx, dword [rsp + 0xe8]
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, [0x1000107a0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x10005d794
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10005d7c6
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10005d7b4
lea rdx, [0x1000107a0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
jne 0x10005d7c6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
jmp 0x10005d7d7
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x10005d7d7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x50]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x58]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x60]
call fcn.10001f53c
mov eax, ebx
add rsp, 0xa0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret