Function at 0x1400a8c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x140136490]
mov r15, r9
mov r14, r8
mov byte [rsp + 0x20], 1
mov rsi, rdx
mov r12, rcx
mov rdi, 0xffffffffffffffff
mov rcx, rbx
mov r8, rdi
xor r9d, r9d
xor edx, edx
call fcn.1400b0830
test rsi, rsi
jne 0x1400a8c9b
lea esi, [rdi + 0x58]
jmp 0x1400a8d80
mov rax, qword [0x14012fc08]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
mov r9d, dword [rax + 0x110]
lea rax, [rbp - 8]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x1400a8d80
mov rcx, qword [rbp - 8]
lea r9, [rbp - 0x10]
xor r13d, r13d
xor r8d, r8d
mov qword [rsp + 0x28], r13
mov rdx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400a8d76
mov eax, dword [rbp - 0x10]
sub eax, 1
je 0x1400a8ee4
sub eax, 1
je 0x1400a8ee4
sub eax, 1
je 0x1400a8dae
sub eax, 1
je 0x1400a8d36
cmp eax, 3
je 0x1400a8ee4
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x65e
jmp 0x1400a8d80
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0xc]
mov dword [rbp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400a8d76
mov edx, dword [rbp - 0xc]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.1400014b0
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
setne dl
mov r8d, esi
mov rcx, r12
call fcn.140050dc0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rdx, r15
mov dword [rbp + 0x38], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400a8d76
mov eax, dword [rbp + 0x38]
test eax, eax
je 0x1400a8d76
lea r8d, [rax + rax]
mov byte [rsp + 0x20], 1
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call fcn.1400b0830
cmp eax, 1
jne 0x1400a8f3b
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.1400016b0
mov r14, rax
xor r9d, r9d
xor r8d, r8d
mov word [rax], r13w
mov edx, dword [rbp + 0x38]
mov rcx, qword [rbp - 8]
lea edi, [rdx + rdx]
add rdi, rdi
sub rdi, rdx
mov rdx, r15
add rdi, rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 8]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1400a8d82
mov edx, r13d
mov r9d, r13d
cmp dword [rbp + 0x38], edx
jbe 0x1400a8ea2
mov r8, r14
lea r10, str.0123456789ABCDEF
nop dword [rax]
mov eax, edx
lea r8, [r8 + 4]
add r9d, 2
inc edx
movzx ecx, byte [rax + rdi]
mov eax, ecx
shr rcx, 4
and eax, 0xf
movzx eax, word [r10 + rax*2]
mov word [r8 - 2], ax
movzx eax, word [r10 + rcx*2]
mov word [r8 - 4], ax
cmp edx, dword [rbp + 0x38]
jb 0x1400a8e70
movsxd rax, r9d
mov word [r14 + rax*2], r13w
cmp byte [rbx + 0x23], r13b
jne 0x1400a8eb4
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x1400a9069
cmp qword [0x1401372c0], r13
je 0x1400a9069
lea rcx, [0x1401372a8]
call fcn.140007040
test eax, eax
je 0x1400a9062
jmp 0x1400a8d80
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rdx, r15
mov dword [rbp + 0x38], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1400a8d76
mov eax, dword [rbp + 0x38]
test eax, eax
je 0x1400a8d76
shr eax, 1
xor r9d, r9d
xor edx, edx
mov byte [rsp + 0x20], 1
mov rcx, rbx
lea r8d, [rax + 2]
call fcn.1400b0830
cmp eax, 1
je 0x1400a8f4c
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400a8d90
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.1400016b0
mov rcx, qword [rbp - 8]
mov r14, rax
lea rax, [rbp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 8]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1400a8fe7
mov edx, dword [rbp + 0x38]
test edx, edx
je 0x1400a8fe7
shr edx, 1
lea ecx, [rdx - 1]
cmp word [r14 + rcx*2], r13w
jne 0x1400a8fa6
mov edx, ecx
jmp 0x1400a8fab
mov word [r14 + rdx*2], r13w
cmp dword [rbp - 0x10], 7
jne 0x1400a8ff0
test edx, edx
je 0x1400a8fbf
lea eax, [rdx - 1]
cmp word [r14 + rax*2], r13w
je 0x1400a8fc6
inc edx
mov word [r14 + rdx*2], r13w
test edx, edx
je 0x1400a8ff0
mov rax, r14
mov ecx, edx
nop
cmp word [rax], r13w
jne 0x1400a8fdb
mov word [rax], 0xa
add rax, 2
sub rcx, 1
jne 0x1400a8fd0
jmp 0x1400a8ff0
mov word [r14], r13w
nop dword [rax + rax]
cmp word [r14 + rdi*2 + 2], r13w
lea rdi, [rdi + 1]
jne 0x1400a8ff0
cmp byte [rbx + 0x23], r13b
jne 0x1400a9008
mov r14, qword [rbx + 0x10]
jmp 0x1400a900b
mov r14, rbx
cmp byte [r14 + 0x23], 1
jne 0x1400a9027
test byte [r14 + 0x21], 8
je 0x1400a9021
mov rcx, r14
call fcn.140001550
add r14, 0x10
jmp 0x1400a902e
lea r14, [0x140137fd0]
lea rax, [rdi + rdi]
mov qword [r14], rax
cmp byte [rbx + 0x23], r13b
jne 0x1400a903f
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x1400a9069
cmp qword [0x1401372c0], r13
je 0x1400a9069
lea rcx, [0x1401372a8]
call fcn.140007040
test eax, eax
jne 0x1400a8d80
xor eax, eax
jmp 0x1400a8d90
and byte [rbx + 0x21], 0x86
jmp 0x1400a8d80