Function at 0x140041be0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x678]
sub rsp, 0x750
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400b3030]
xor rax, rsp
mov qword [rbp + 0x640], rax
mov r15, r8
mov rdi, rdx
mov rcx, rdx
call fcn.140042f30
mov rbx, rax
mov r9, rax
xor r8d, r8d
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140036430
nop
mov r9, qword [rdi + 0x10]
inc r9
lea r8, [rbx + 1]
lea rdx, [rbp + 0x168]
mov rcx, rdi
call fcn.140036430
nop
lea rsi, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rsi, qword [rbp - 0x18]
mov ecx, 0x18
call fcn.140055344
mov rdi, rax
mov qword [rsp + 0x68], rax
xor ebx, ebx
test rax, rax
je 0x140041c98
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140054f80
mov qword [rdi], rax
jmp 0x140041c9b
mov rdi, rbx
test rdi, rdi
jne 0x140041cab
mov ecx, 0x8007000e
call fcn.140054da0
int3
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne sil
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x140041d11
mov rcx, qword [rdi]
test rcx, rcx
je 0x140041cf2
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140041d04
call fcn.140055640
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.140055640
test sil, sil
je 0x140041e2f
lea rsi, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rsi, qword [rbp - 0x18]
mov ecx, 0x18
call fcn.140055344
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140041d57
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140054f80
mov qword [rdi], rax
jmp 0x140041d5a
mov rdi, rbx
test rdi, rdi
jne 0x140041d6a
mov ecx, 0x8007000e
call fcn.140054da0
int3
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne sil
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x140041dd0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140041db1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140041dc3
call fcn.140055640
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.140055640
test sil, sil
je 0x140041e2f
lea rdx, str.iusl::WindowsRegistry::FindKeyWithUnknownPath
lea rcx, [rbp + 0x190]
call fcn.140024040
nop
mov dword [rax + 0x4c], 3
lea rdx, str.Couldnt_find__
mov rcx, rax
call fcn.140024650
mov rbx, rax
lea rdx, [rbp - 0x18]
mov rcx, rax
call fcn.140024840
lea rdx, str.__in_registry.
mov rcx, rbx
call fcn.140024650
nop
lea rcx, [rbp + 0x190]
call fcn.1400241f0
jmp 0x1400425a6
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x430]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x78], 0x104
mov dword [rsp + 0x60], ebx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x430]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400425a6
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14004258e
mov r14d, ebx
lea r12, [0x1400b94d0]
mov dword [rsp + 0x7c], 0xff
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x7c]
lea r8, [rbp + 0x230]
mov edx, r14d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400423f6
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
cmp word [rbp + 0x230], ax
jne 0x140041f30
mov r8, rbx
jmp 0x140041f4b
lea rax, [rbp + 0x230]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140041f40
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 0x60]
call fcn.140022640
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x48]
call fcn.140023950
nop
mov r8, rax
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.140043080
nop
lea r8, [rbp + 0x168]
mov rdx, rax
lea rcx, [rbp + 0x108]
call fcn.1400430e0
nop
mov rax, qword [rbp + 0x40]
cmp rax, 0x10
jb 0x140041fdf
inc rax
mov rcx, qword [rbp + 0x28]
cmp rax, 0x1000
jb 0x140041fda
test cl, 0x1f
jne 0x14004241e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140042417
sub rcx, rax
cmp rcx, 8
jb 0x140042410
cmp rcx, 0x27
ja 0x140042409
mov rcx, rax
call fcn.140055628
mov qword [rbp + 0x40], 0xf
mov qword [rbp + 0x38], rbx
mov byte [rbp + 0x28], 0
mov rax, qword [rbp + 0x60]
cmp rax, 0x10
jb 0x14004203d
inc rax
mov rcx, qword [rbp + 0x48]
cmp rax, 0x1000
jb 0x140042038
test cl, 0x1f
jne 0x14004243a
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140042433
sub rcx, rax
cmp rcx, 8
jb 0x14004242c
cmp rcx, 0x27
ja 0x140042425
mov rcx, rax
call fcn.140055628
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], rbx
mov byte [rbp + 0x48], 0
lea rdx, [rbp + 0x108]
call fcn.140041a60
test al, al
je 0x1400423ea
mov qword [rbp + 0x20], 0xf
mov qword [rbp + 0x18], rbx
mov byte [rbp + 8], 0
lea rcx, [rbp + 0x148]
call fcn.140041a20
nop
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x40], bx
cmp word [rbp + 0x230], 0
jne 0x14004209d
mov r8, rbx
jmp 0x1400420bb
lea rax, [rbp + 0x230]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400420b0
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 0x40]
call fcn.140022640
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0xe8]
call fcn.140023950
mov rdi, rax
lea r8, [0x1400978c0]
lea rdx, [rbp + 0x148]
lea rcx, [rbp + 0xc8]
call fcn.14002b960
nop
lea r8, [rbp - 0x18]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.1400430e0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.140043130
nop
lea r8, [0x1400978c0]
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.140034780
nop
lea r8, [0x1400b9450]
mov rdx, rax
lea rcx, [rbp + 0x128]
call fcn.1400430e0
nop
mov rax, qword [rbp + 0x80]
cmp rax, 0x10
jb 0x14004219c
inc rax
mov rcx, qword [rbp + 0x68]
cmp rax, 0x1000
jb 0x140042197
test cl, 0x1f
jne 0x140042456
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14004244f
sub rcx, rax
cmp rcx, 8
jb 0x140042448
cmp rcx, 0x27
ja 0x140042441
mov rcx, rax
call fcn.140055628
mov qword [rbp + 0x80], 0xf
mov qword [rbp + 0x78], rbx
mov byte [rbp + 0x68], 0
mov rax, qword [rbp + 0xa0]
cmp rax, 0x10
jb 0x140042203
inc rax
mov rcx, qword [rbp + 0x88]
cmp rax, 0x1000
jb 0x1400421fe
test cl, 0x1f
jne 0x140042472
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14004246b
sub rcx, rax
cmp rcx, 8
jb 0x140042464
cmp rcx, 0x27
ja 0x14004245d
mov rcx, rax
call fcn.140055628
mov qword [rbp + 0xa0], 0xf
mov qword [rbp + 0x98], rbx
mov byte [rbp + 0x88], 0
mov rax, qword [rbp + 0xc0]
cmp rax, 0x10
jb 0x140042270
inc rax
mov rcx, qword [rbp + 0xa8]
cmp rax, 0x1000
jb 0x14004226b
test cl, 0x1f
jne 0x14004248e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140042487
sub rcx, rax
cmp rcx, 8
jb 0x140042480
cmp rcx, 0x27
ja 0x140042479
mov rcx, rax
call fcn.140055628
mov qword [rbp + 0xc0], 0xf
mov qword [rbp + 0xb8], rbx
mov byte [rbp + 0xa8], 0
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1400422dd
inc rax
mov rcx, qword [rbp + 0xc8]
cmp rax, 0x1000
jb 0x1400422d8
test cl, 0x1f
jne 0x1400424aa
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400424a3
sub rcx, rax
cmp rcx, 8
jb 0x14004249c
cmp rcx, 0x27
ja 0x140042495
mov rcx, rax
call fcn.140055628
mov qword [rbp + 0xe0], 0xf
mov qword [rbp + 0xd8], rbx
mov byte [rbp + 0xc8], 0
mov rax, qword [rbp + 0x100]
cmp rax, 0x10
jb 0x14004234a
inc rax
mov rcx, qword [rbp + 0xe8]
cmp rax, 0x1000
jb 0x140042345
test cl, 0x1f
jne 0x1400424c6
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400424bf
sub rcx, rax
cmp rcx, 8
jb 0x1400424b8
cmp rcx, 0x27
ja 0x1400424b1
mov rcx, rax
call fcn.140055628
mov qword [rbp + 0x100], 0xf
mov qword [rbp + 0xf8], rbx
mov byte [rbp + 0xe8], 0
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x128]
call fcn.1400425f0
test eax, eax
jne 0x1400423c6
mov rdx, r12
cmp qword [0x1400b94e8], 0x10
cmovae rdx, qword [0x1400b94d0]
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rcx, qword [rbp + 8]
mov rdi, qword [0x1400b94e0]
mov r8, rdi
mov rsi, qword [rbp + 0x18]
cmp rsi, rdi
cmovb r8, rsi
test r8, r8
je 0x1400423bb
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400423c6
cmp rsi, rdi
jb 0x1400423c6
jbe 0x1400424cd
lea rcx, [rbp + 0x128]
call fcn.1400224c0
nop
lea rcx, [rbp + 0x148]
call fcn.1400224c0
nop
lea rcx, [rbp + 8]
call fcn.1400224c0
nop
lea rcx, [rbp + 0x108]
call fcn.1400224c0
inc r14d
cmp r14d, dword [rsp + 0x60]
jae 0x14004258e
jmp 0x140041ed0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [rbp + 0x108]
cmp r15, rax
je 0x1400424ef
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x108]
mov rcx, r15
call fcn.140022ac0
lea rdx, str.iusl::WindowsRegistry::FindKeyWithUnknownPath
lea rcx, [rbp + 0x1e0]
call fcn.140024040
nop
mov dword [rax + 0x4c], 1
lea rdx, str.Found_matching_key:__
mov rcx, rax
call fcn.140024650
mov rdi, rax
mov rdx, r15
mov rcx, rax
call fcn.140024840
lea rdx, [0x14009bbf8]
mov rcx, rdi
call fcn.140024650
nop
lea rcx, [rbp + 0x1e0]
call fcn.1400241f0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0x128]
call fcn.1400224c0
nop
lea rcx, [rbp + 0x148]
call fcn.1400224c0
nop
lea rcx, [rbp + 8]
call fcn.1400224c0
nop
lea rcx, [rbp + 0x108]
call fcn.1400224c0
jmp 0x1400425ab
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 5
lea rcx, [rbp + 0x168]
call fcn.1400224c0
nop
lea rcx, [rbp - 0x18]
call fcn.1400224c0
mov eax, ebx
mov rcx, qword [rbp + 0x640]
xor rcx, rsp
call fcn.140055320
lea r11, [rsp + 0x750]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret