Function at 0x10004b95c
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x90
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov qword [rax - 0x78], rbx
lea rcx, [rax - 0x50]
call fcn.100018ee8
nop
mov dword [rbp], 1
lea rcx, [rsp + 0x50]
call fcn.10001e06c
nop
lea rdx, [0x100010690]
lea rcx, [rsp + 0x40]
call fcn.10001e134
nop
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x40]
call fcn.10001f3ec
lea rdx, [rsp + 0x30]
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 0x10004bd3f
mov dword [rsp + 0xc8], ebx
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10004ba5b
cmp eax, 2
jne 0x10004bd3f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
jmp 0x10004bd50
mov eax, dword [rsp + 0xc8]
add eax, 4
mov dword [rsp + 0xc8], eax
mov ecx, eax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rdi, qword [rsp + 0xd0]
mov qword [rdi], rax
cmp rax, rbx
je 0x10004bd3f
mov ecx, dword [rsp + 0xc8]
mov rax, qword [rsp + 0xd8]
mov dword [rax], ecx
mov r8, rcx
xor edx, edx
mov rcx, qword [rdi]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0xc8]
mov qword [rsp + 0x28], r11
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10004bd3f
mov rdx, qword [rdi]
lea rcx, [rsp + 0x58]
call fcn.10003de0c
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], rdx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.10001e09c
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.100032ac4
cmp eax, ebx
jne 0x10004bb20
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004bcb1
lea rcx, [rsp + 0x48]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x40]
call fcn.10001e06c
nop
mov eax, ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, rbx
setne al
cmp eax, ebx
jne 0x10004bb52
mov ecx, 0x80004005
call fcn.10001f28c
int3
add rdx, 0x10
lea rcx, [rsp + 0x48]
call fcn.10001e1c8
mov rdx, qword [rsi]
mov eax, ebx
cmp rdx, rbx
setne al
cmp eax, ebx
jne 0x10004bb7a
mov ecx, 0x80004005
call fcn.10001f28c
int3
mov rax, qword [rsp + 0x48]
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x10004bb98
add rax, 2
test cx, cx
jne 0x10004bb82
mov eax, ebx
jmp 0x10004bb9d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10004bc8c
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.10003de90
cmp qword [rsp + 0x68], rbx
je 0x10004bc9c
mov rdi, qword [rsp + 0x58]
cmp rdi, rbx
je 0x10004bc19
mov eax, ebx
cmp rdi, rbx
setne al
cmp eax, ebx
je 0x10004bc0e
mov rdx, rdi
mov rdi, qword [rdi]
add rdx, 0x10
lea rcx, [rsp + 0x38]
call fcn.10001e09c
nop
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.10001ee9c
nop
lea rcx, [rsp + 0x38]
call fcn.10001f3ec
cmp rdi, rbx
jne 0x10004bbc9
mov rdi, qword [rsp + 0x58]
jmp 0x10004bc19
mov ecx, 0x80004005
call fcn.10001f28c
int3
mov eax, ebx
cmp rdi, rbx
setne al
cmp eax, ebx
jne 0x10004bc30
mov ecx, 0x80004005
call fcn.10001f28c
int3
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x40]
call fcn.10001e1c8
xor r11d, r11d
lea rdx, [0x100010648]
mov rdi, rdx
mov rsi, qword [rsp + 0x40]
lea ecx, [r11 + 0x15]
repe cmpsw word [rsi], word [rdi]
je 0x10004bc60
sbb r11d, r11d
sbb r11d, 0xffffffff
cmp r11d, ebx
jne 0x10004bc9c
lea rcx, [rsp + 0x38]
call fcn.10001e134
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.10003de90
nop
lea rcx, [rsp + 0x38]
call fcn.10001f3ec
jmp 0x10004bc9c
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.10003de90
mov dword [rbp], ebx
lea rcx, [rsp + 0x40]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x48]
call fcn.10001f3ec
cmp qword [rsp + 0x68], rbx
je 0x10004bd17
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x58]
call fcn.100031ad4
mov rdi, rax
cmp rax, rbx
je 0x10004bd3f
mov ecx, dword [rsp + 0xc8]
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x10004bd0d
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10004bd3f
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10004bd2d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
jne 0x10004bd3f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
jmp 0x10004bd50
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x10004bd50
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x58]
call fcn.10001a784
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret