Function at 0x100056b60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rax, [rsp + 0x50]
mov rbp, rcx
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x58]
mov rdi, rdx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x70], ecx
mov esi, ecx
mov qword [rsp + 0x60], rcx
lea ebx, [rcx + 1]
mov dword [rsp + 0x54], 0x104
xor edx, edx
jmp 0x100056e3b
mov ecx, dword [rsp + 0x50]
cmp ecx, edx
je 0x100056e19
mov eax, dword [rsp + 0x58]
cmp eax, edx
jbe 0x100056e0f
cmp eax, 2
jbe 0x100056d77
cmp eax, 3
je 0x100056cd5
jbe 0x100056e0f
cmp eax, 5
jbe 0x100056c76
cmp eax, 7
jne 0x100056e0f
call fcn.10007fa96
xor edx, edx
mov qword [rsp + 0x60], rax
cmp rax, rdx
je 0x100056e0f
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
cmp eax, edx
jne 0x100056d58
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
jmp 0x100056d33
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
cmp eax, edx
jne 0x100056e11
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
jmp 0x100056deb
call fcn.10007fa96
xor edx, edx
mov qword [rsp + 0x60], rax
cmp rax, rdx
je 0x100056e0f
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
cmp eax, edx
jne 0x100056d58
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov r9d, dword [rsp + 0x58]
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
cmp eax, edx
cmovne ebx, edx
mov rcx, qword [rsp + 0x60]
cmp rcx, rdx
je 0x100056e11
call fcn.10007faa2
xor edx, edx
mov qword [rsp + 0x60], rdx
jmp 0x100056e11
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x290]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 0x208
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
cmp eax, edx
jne 0x100056e11
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x290]
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x68]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x290]
mov r9d, dword [rsp + 0x58]
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
cmp eax, edx
je 0x100056e11
mov ebx, edx
mov dword [rsp + 0x54], 0x104
lea rax, [rsp + 0x50]
inc esi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov rcx, rbp
mov dword [rsp + 0x50], 0x208
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
mov dword [rsp + 0x54], 0x104
cmp eax, edx
je 0x100056bd1
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov rcx, rbp
mov edi, edx
mov qword [rsp + 0x20], rdx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x100056f8c
mov rsi, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x100056f4a
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x100056f39
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.100056b60
neg eax
sbb ecx, ecx
and ebx, ecx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100056f3b
mov ebx, ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
jmp 0x100056f4c
mov ebx, ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
inc edi
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov rcx, rbp
mov edx, edi
mov dword [rsp + 0x54], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ecx, ecx
cmp eax, ecx
je 0x100056ea6
mov eax, ebx
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret