Function at 0x140014230
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov r13, rcx
mov rsi, rdx
lea rcx, [0x14008fcc8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400146a4
lea rdx, str.RtlGetFunctionTableListHead
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400146a4
call rax
xor edi, edi
lea r8, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov rcx, r13
mov r12, rax
lea r9d, [rdi + 0x10]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400146a9
mov r15, qword [rsp + 0x60]
mov r14d, edi
cmp r15, r12
je 0x140014307
cmp r14d, 0x800
jae 0x140014307
mov r9d, 0x58
mov qword [rsp + 0x20], rdi
lea r8, [rbp - 0x70]
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400146a9
cmp rsi, qword [rbp - 0x50]
jb 0x1400142fb
cmp rsi, qword [rbp - 0x48]
jb 0x140014311
mov r15, qword [rbp - 0x70]
inc r14d
cmp r15, r12
jne 0x1400142c1
mov ebx, 0xc0000225
jmp 0x1400146a9
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x1400143a9
mov edx, 0xff
lea rcx, [rbp + 0x20]
mov r8d, 0x400
call fcn.14007e7d0
lea rax, [rbp + 0x478]
mov r9d, 0x400
lea r8, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ecx, 0x80000000
mov ebx, eax
add eax, ecx
test ecx, eax
jne 0x14001436d
cmp ebx, 0x8000000d
jne 0x1400146a9
mov ecx, edi
nop
mov eax, ecx
cmp word [rbp + rax*2 + 0x20], di
je 0x14001438d
inc ecx
cmp ecx, 0x200
jb 0x140014370
mov ebx, 0x80000005
jmp 0x1400146a9
lea rax, [rbp + 0x20]
add cx, cx
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x20]
mov word [rsp + 0x40], cx
mov word [rsp + 0x42], cx
jmp 0x1400143b9
mov word [rbp + 0x20], di
mov rax, rdi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], edi
mov r12d, dword [rbp - 0x20]
cmp r12d, 2
jne 0x1400145a6
test rax, rax
jne 0x1400143d6
mov ebx, 0xc000000d
jmp 0x1400146a9
mov rcx, qword [0x1400a4e78]
mov rax, qword [str.SoftwareMicrosoftWindows_NTCurrentVersionKnownFunctionTableDlls]
mov word [rsp + 0x78], cx
mov word [rsp + 0x7a], cx
mov qword [rbp - 0x80], rax
cmp rcx, 0xfffe
jbe 0x140014406
mov r14d, 0xc0000106
jmp 0x140014514
lea rax, [rsp + 0x70]
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x78]
call fcn.140011150
mov r14d, eax
test eax, eax
js 0x140014514
lea r8, [rbp - 0x10]
mov edx, 0x20019
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rsp + 0x70]
mov r14d, eax
test rcx, rcx
je 0x140014450
call qword [sym.imp.ntdll.dll_NtClose]
test r14d, r14d
js 0x140014514
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x478]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, 0xc0000034
jne 0x14001449f
mov ebx, 0xc0000361
jmp 0x1400146a9
lea r9, [rsp + 0x58]
xor edx, edx
lea r8, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov ebx, eax
test eax, eax
js 0x1400146a9
mov rcx, qword [rsp + 0x58]
lea rax, str.OutOfProcessFunctionTableCallback
lea r9, [rsp + 0x30]
mov qword [rsp + 0x68], rax
xor r8d, r8d
mov dword [rsp + 0x60], 0x220021
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov r14d, eax
test eax, eax
js 0x140014509
lea r9, [rsp + 0x38]
mov rdx, r15
lea r8, [rbp + 0x470]
mov rcx, r13
call qword [rsp + 0x30]
mov r14d, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
mov ebx, r14d
test r14d, r14d
js 0x1400146a9
sub rsi, qword [rbp - 0x40]
mov r8d, dword [rbp + 0x470]
test r8d, r8d
je 0x140014562
mov r9, qword [rsp + 0x38]
nop word [rax + rax]
mov eax, edi
lea rcx, [rax + rax*2]
mov eax, dword [r9 + rcx*4]
lea rdx, [r9 + rcx*4]
cmp rsi, rax
jb 0x14001455b
mov eax, dword [rdx + 4]
cmp rsi, rax
jb 0x14001458a
inc edi
cmp edi, r8d
jb 0x140014540
mov ebx, 0xc0000225
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rsp + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400146a9
test rdx, rdx
je 0x140014562
movsd xmm0, qword [rdx]
movsd qword [0x1400a6dd0], xmm0
mov eax, dword [rdx + 8]
mov dword [0x1400a6dd8], eax
jmp 0x140014567
mov r15d, dword [rbp - 0x1c]
cmp r15d, 0x100000
ja 0x140014383
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea rbx, [r15 + r15*2]
mov qword [rbp + 0x478], rdi
shl rbx, 2
lea r9, [rsp + 0x30]
lea rdx, [rbp + 0x478]
mov qword [rsp + 0x30], rbx
lea rcx, [r8 - 1]
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x14001469d
mov r14, qword [rbp + 0x478]
test r14, r14
je 0x14001469d
mov rdx, qword [rbp - 0x60]
mov r9, rbx
mov r8, r14
mov qword [rsp + 0x20], rdi
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140014670
sub rsi, qword [rbp - 0x40]
mov edx, r15d
test r12d, r12d
mov qword [rsp + 0x38], r14
mov r9, rsi
mov dword [rbp + 0x470], r15d
sete r8b
mov rcx, r14
call fcn.140013ee0
test rax, rax
je 0x14001466b
movsd xmm0, qword [rax]
movsd qword [0x1400a6dd0], xmm0
mov eax, dword [rax + 8]
mov dword [0x1400a6dd8], eax
jmp 0x140014670
mov ebx, 0xc0000225
mov r9d, 0x8000
mov qword [rsp + 0x30], r14
lea r8, [rbp + 0x478]
mov qword [rbp + 0x478], rdi
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
jmp 0x1400146a9
mov ebx, 0xc0000017
jmp 0x1400146a9
mov ebx, 0xc000007a
mov eax, ebx
mov rbx, qword [rsp + 0x560]
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret