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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x90
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x58]
call fcn.100019218
nop
mov dword [rbp], 1
lea rcx, [rsp + 0x50]
call fcn.10001fee0
nop
lea rdx, [0x1000107c0]
lea rcx, [rsp + 0x40]
call fcn.10001ff98
nop
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1000327cc
nop
lea rcx, [rsp + 0x40]
call fcn.10001fba0
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 0x10005642d
mov dword [rsp + 0xd8], ebx
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1000107a0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x100056149
cmp eax, 2
jne 0x10005642d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
jmp 0x10005643e
mov eax, dword [rsp + 0xd8]
add eax, 4
mov dword [rsp + 0xd8], eax
mov ecx, eax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rdi, qword [rsp + 0xe0]
mov qword [rdi], rax
cmp rax, rbx
je 0x10005642d
mov ecx, dword [rsp + 0xd8]
mov rax, qword [rsp + 0xe8]
mov dword [rax], ecx
mov r8, rcx
xor edx, edx
mov rcx, qword [rdi]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0xd8]
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 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10005642d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x58]
call fcn.100044e08
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], rdx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.10001ff10
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.100036084
cmp eax, ebx
jne 0x10005620e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10005639f
lea rcx, [rsp + 0x48]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x40]
call fcn.10001fee0
nop
mov eax, ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, rbx
setne al
cmp eax, ebx
jne 0x100056240
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 0x100056268
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 0x100056286
add rax, 2
test cx, cx
jne 0x100056270
mov eax, ebx
jmp 0x10005628b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10005637a
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.100044e98
cmp qword [rsp + 0x68], rbx
je 0x10005638a
mov rdi, qword [rsp + 0x58]
cmp rdi, rbx
je 0x100056307
mov eax, ebx
cmp rdi, rbx
setne al
cmp eax, ebx
je 0x1000562fc
mov rdx, rdi
mov rdi, qword [rdi]
add rdx, 0x10
lea rcx, [rsp + 0x38]
call fcn.10001ff10
nop
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.10001f488
nop
lea rcx, [rsp + 0x38]
call fcn.10001fba0
cmp rdi, rbx
jne 0x1000562b7
mov rdi, qword [rsp + 0x58]
jmp 0x100056307
mov ecx, 0x80004005
call fcn.10001fd10
int3
mov eax, ebx
cmp rdi, rbx
setne al
cmp eax, ebx
jne 0x10005631e
mov ecx, 0x80004005
call fcn.10001fd10
int3
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x40]
call fcn.10001ecdc
xor r11d, r11d
lea rdx, [0x100010770]
mov rdi, rdx
mov rsi, qword [rsp + 0x40]
lea ecx, [r11 + 0x15]
repe cmpsw word [rsi], word [rdi]
je 0x10005634e
sbb r11d, r11d
sbb r11d, 0xffffffff
cmp r11d, ebx
jne 0x10005638a
lea rcx, [rsp + 0x38]
call fcn.10001ff98
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.100044e98
nop
lea rcx, [rsp + 0x38]
call fcn.10001fba0
jmp 0x10005638a
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.100044e98
mov dword [rbp], ebx
lea rcx, [rsp + 0x40]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x48]
call fcn.10001fba0
cmp qword [rsp + 0x68], rbx
je 0x100056405
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x58]
call fcn.100034e1c
mov rdi, rax
cmp rax, rbx
je 0x10005642d
mov ecx, dword [rsp + 0xd8]
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 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x1000563fb
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10005642d
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10005641b
lea rdx, [0x1000107a0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
jne 0x10005642d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
jmp 0x10005643e
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x10005643e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x50]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x58]
call fcn.10001f53c
mov eax, ebx
add rsp, 0x90
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret