Function at 0x14005d270
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rsp - 0x17b0]
mov eax, 0x18b0
call fcn.1400ed080
sub rsp, rax
mov rax, qword [rbp + 0x1818]
xor ebx, ebx
mov qword [rbp - 0x80], rax
mov r12, r8
mov rax, qword [rbp + 0x1820]
mov r15, rdx
mov rdx, qword [rbp + 0x1828]
mov rdi, rcx
mov r8d, 0x3ff
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x70]
mov dword [rbp + 0xf90], ebx
mov word [rbp + 0x790], bx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rbp - 0x70]
mov word [rbp + 0x78e], bx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x14005d2f0
test rax, rax
je 0x14005d30b
cmp word [rbp + rax*2 - 0x72], 0x5c
jne 0x14005d30b
mov word [rbp + rax*2 - 0x72], bx
mov rax, qword [0x140124200]
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
xor r8d, r8d
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x60]
or r9d, 9
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005d390
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14005d3a4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x18b0
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret
mov ebx, dword [rbp + 0x1808]
mov qword [rsp + 0x18e0], rsi
mov rsi, qword [rbp + 0x1800]
mov qword [rsp + 0x18a8], r13
mov r13, qword [0x140124200]
mov qword [rsp + 0x18a0], r14
mov r14d, dword [rsp + 0x78]
test r14d, r14d
je 0x14005d5a8
cmp ebx, 2
je 0x14005d5a8
xor ecx, ecx
mov qword [rbp + 0xf94], rcx
dec r14d
mov qword [rsp + 0x38], rcx
lea rax, [rbp + 0xf90]
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x790]
mov qword [rsp + 0x20], rcx
mov edx, r14d
mov word [rbp + 0x790], cx
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x68], 0x400
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14005d573
lea rax, [rbp - 0x80]
mov qword [r13 + 0x18], rax
mov rcx, qword [rdi + 0x20]
cmp byte [rcx], 0x77
jne 0x14005d478
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x70]
mov r8, r15
mov edx, 2
call fcn.1400536e0
mov rcx, qword [rdi + 0x20]
mov ebx, eax
mov rax, qword [rsp + 0x70]
cmp rax, rcx
je 0x14005d450
jmp 0x14005d491
lea r9, [rsp + 0x70]
mov r8, r15
mov edx, 3
call fcn.1400536e0
mov ebx, eax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14005d4c0
cmp ebx, 6
jne 0x14005d582
cmp rax, rdi
je 0x14005d4ca
mov rcx, qword [rbp + 0x17f8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14005d859
cmp ebx, 1
je 0x14005d4ca
cmp ebx, 6
jne 0x14005d4ae
test rsi, rsi
je 0x14005d56f
mov rax, qword [0x140124200]
mov qword [0x14012b690], rsi
cmp byte [rax + 0x139], 0
je 0x14005d52a
movsxd rax, dword [0x140128af0]
lea rbx, [0x140000000]
mov qword [rbx + rax*8 + 0x129140], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140128af0]
mov dword [rbx + rdx*4 + 0x128b00], eax
inc edx
cmp edx, 0x190
mov eax, 0
cmovge edx, eax
mov dword [0x140128af0], edx
cmp qword [0x140126980], 0xffffffffffffffff
je 0x14005d53c
mov rdx, rsi
call fcn.140008630
xor r9d, r9d
xor edx, edx
mov rcx, rsi
lea r8, [r9 - 1]
call fcn.14009efb0
mov ebx, eax
cmp eax, 1
jne 0x14005d4ae
mov rcx, qword [0x140129e60]
lea ebx, [rax + 4]
call fcn.140091610
test eax, eax
jne 0x14005d4ae
inc qword [r13 + 8]
test r14d, r14d
je 0x14005d5a2
dec r14d
xor ecx, ecx
jmp 0x14005d3f3
cmp rax, rdi
jne 0x14005d4a4
mov rcx, qword [rsp + 0x60]
mov byte [r12], 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14005d859
mov ebx, dword [rbp + 0x1808]
mov eax, dword [rsp + 0x7c]
test eax, eax
je 0x14005d849
movzx r12d, byte [rbp + 0x1810]
cmp ebx, 1
jne 0x14005d5ca
test r12b, r12b
je 0x14005d849
mov dword [rbp + 0xf90], 0xfffffffe
lea r14d, [rax - 1]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
lea rax, [rbp + 0xf94]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
xor eax, eax
mov dword [rsp + 0x68], 0x400
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x790]
mov qword [rsp + 0x28], rax
mov edx, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14005d814
cmp ebx, 1
je 0x14005d758
lea rax, [rbp - 0x80]
mov qword [r13 + 0x18], rax
mov rcx, qword [rdi + 0x20]
cmp byte [rcx], 0x77
jne 0x14005d669
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x70]
mov r8, r15
mov edx, 2
call fcn.1400536e0
mov rcx, qword [rdi + 0x20]
mov ebx, eax
mov rax, qword [rsp + 0x70]
cmp rax, rcx
je 0x14005d641
jmp 0x14005d682
lea r9, [rsp + 0x70]
mov r8, r15
mov edx, 3
call fcn.1400536e0
mov ebx, eax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14005d69b
cmp ebx, 6
jne 0x14005d827
cmp rax, rdi
jne 0x14005d4a4
jmp 0x14005d6a9
cmp ebx, 1
je 0x14005d6a9
cmp ebx, 6
jne 0x14005d4ae
test rsi, rsi
je 0x14005d74e
mov rax, qword [0x140124200]
mov qword [0x14012b690], rsi
cmp byte [rax + 0x139], 0
je 0x14005d709
movsxd rax, dword [0x140128af0]
lea rbx, [0x140000000]
mov qword [rbx + rax*8 + 0x129140], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140128af0]
mov dword [rbx + rdx*4 + 0x128b00], eax
inc edx
cmp edx, 0x190
mov eax, 0
cmovge edx, eax
mov dword [0x140128af0], edx
cmp qword [0x140126980], 0xffffffffffffffff
je 0x14005d71b
mov rdx, rsi
call fcn.140008630
xor r9d, r9d
xor edx, edx
mov rcx, rsi
lea r8, [r9 - 1]
call fcn.14009efb0
mov ebx, eax
cmp eax, 1
jne 0x14005d4ae
mov rcx, qword [0x140129e60]
lea ebx, [rax + 4]
call fcn.140091610
test eax, eax
jne 0x14005d4ae
inc qword [r13 + 8]
mov ebx, dword [rbp + 0x1808]
test r12b, r12b
je 0x14005d814
cmp word [rbp - 0x70], 0
lea rcx, [0x140107260]
lea rax, [0x1400ef7d4]
mov edx, 0x400
cmovne rax, rcx
lea r9, [rbp - 0x70]
lea rcx, [rbp + 0x790]
mov qword [rsp + 0x28], rcx
lea r8, [0x140109928]
lea rcx, [rbp + 0xfa0]
mov qword [rsp + 0x20], rax
call fcn.1400ce4e0
mov r9, qword [rbp + 0x17f8]
lea rax, [rbp + 0xfa0]
mov r8, qword [rbp + 0x17f0]
mov rdx, r15
mov qword [rsp + 0x48], rax
mov rcx, rdi
mov rax, qword [rbp + 0x1820]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x1818]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], r12b
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
call fcn.14005d270
mov ebx, eax
cmp eax, 1
jne 0x14005d4ae
mov rax, qword [rbp + 0x17f0]
cmp byte [rax], 0
jne 0x14005d849
mov rax, qword [rbp + 0x17f8]
cmp qword [rax], 0
jne 0x14005d849
test r14d, r14d
je 0x14005d849
mov ebx, dword [rbp + 0x1808]
dec r14d
jmp 0x14005d5e0
cmp rax, rdi
jne 0x14005d4a4
mov rax, qword [rbp + 0x17f0]
mov rcx, qword [rsp + 0x60]
mov byte [rax], 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14005d859
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov r13, qword [rsp + 0x18a8]
mov rsi, qword [rsp + 0x18e0]
mov r14, qword [rsp + 0x18a0]
add rsp, 0x18b0
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret