Function at 0x14003d930
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x548]
sub rsp, 0x630
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x1400ab020]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov r14, r8
call fcn.14003e990
mov rbx, rax
mov r9, rax
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [0x1400b0a80]
call fcn.140035950
nop
mov r9, qword [0x1400b0a90]
inc r9
lea r8, [rbx + 1]
lea rdx, [rbp - 0x18]
lea rcx, [0x1400b0a80]
call fcn.140035950
nop
lea rsi, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rsi, qword [rbp - 0x38]
mov ecx, 0x18
call fcn.140054e64
mov rbx, rax
mov qword [rsp + 0x70], rax
xor edi, edi
test rax, rax
je 0x14003d9e6
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140054790
mov qword [rbx], rax
jmp 0x14003d9e9
mov rbx, rdi
test rbx, rbx
jne 0x14003d9f9
mov ecx, 0x8007000e
call fcn.140054630
int3
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne sil
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14003da5f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003da40
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003da52
call fcn.140055150
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.140055150
test sil, sil
je 0x14003db86
lea rsi, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rsi, qword [rbp - 0x38]
mov ecx, 0x18
call fcn.140054e64
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14003daa5
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140054790
mov qword [rbx], rax
jmp 0x14003daa8
mov rbx, rdi
test rbx, rbx
jne 0x14003dab8
mov ecx, 0x8007000e
call fcn.140054630
int3
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne sil
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14003db1e
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003daff
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003db11
call fcn.140055150
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.140055150
test sil, sil
je 0x14003db86
lea rdx, str.iusl::WindowsRegistry::FindKeyWithUnknownPath
lea rcx, [rbp + 0x70]
call fcn.14001c5c0
nop
mov dword [rax + 0x4c], 3
lea rdx, str._ERR___N_A_
mov rcx, rax
call fcn.14001cc00
mov rcx, rax
lea rdx, str.Couldnt_find__
call fcn.14001cc00
mov rbx, rax
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.14001cdd0
lea rdx, str.__in_registry.
mov rcx, rbx
call fcn.14001cc00
nop
lea rcx, [rbp + 0x70]
call fcn.14001c780
jmp 0x14003ded0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x310]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x78], 0x104
mov dword [rsp + 0x60], edi
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 + 0x310]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14003ded0
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14003deb8
mov ebx, edi
nop
mov dword [rsp + 0x7c], 0xff
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x7c]
lea r8, [rbp + 0x110]
mov edx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14003ddbc
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
cmp word [rbp + 0x110], ax
jne 0x14003dc7f
mov r8, rdi
jmp 0x14003dc9b
lea rax, [rbp + 0x110]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14003dc90
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x60]
call fcn.140022190
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x28]
call fcn.14001be70
nop
mov r8, rax
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 8]
call fcn.14003eaf0
nop
lea r8, [rbp - 0x18]
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.14003eb50
nop
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x14003dd33
inc rax
mov rcx, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
ja 0x14003dde9
cmp rax, 0x1000
jb 0x14003dd2e
test cl, 0x1f
jne 0x14003dde2
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14003dddb
sub rcx, rax
cmp rcx, 8
jb 0x14003ddd4
cmp rcx, 0x27
ja 0x14003ddcd
mov rcx, rax
call fcn.140055148
mov qword [rbp + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x18], rdi
mov byte [rbp + 8], 0
mov rax, qword [rbp + 0x40]
cmp rax, 0x10
jb 0x14003dd93
inc rax
mov rcx, qword [rbp + 0x28]
cmp rax, 0xffffffffffffffff
ja 0x14003de0c
cmp rax, 0x1000
jb 0x14003dd8e
test cl, 0x1f
jne 0x14003de05
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14003ddfe
sub rcx, rax
cmp rcx, 8
jb 0x14003ddf7
cmp rcx, 0x27
ja 0x14003ddf0
mov rcx, rax
call fcn.140055148
mov qword [rbp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x38], rdi
mov byte [rbp + 0x28], 0
xor r8d, r8d
lea rdx, [rbp + 0x48]
call fcn.14003d4a0
test al, al
jne 0x14003de13
lea rcx, [rbp + 0x48]
call fcn.1400212b0
inc ebx
cmp ebx, dword [rsp + 0x60]
jae 0x14003deb8
jmp 0x14003dc20
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
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [rbp + 0x48]
cmp r14, rax
je 0x14003de2f
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x48]
mov rcx, r14
call fcn.1400226a0
lea rdx, str.iusl::WindowsRegistry::FindKeyWithUnknownPath
lea rcx, [rbp + 0xc0]
call fcn.14001c5c0
nop
mov dword [rax + 0x4c], 2
lea rdx, str._INF___N_A_
mov rcx, rax
call fcn.14001cc00
mov rcx, rax
lea rdx, str.Found_matching_key:__
call fcn.14001cc00
mov rbx, rax
mov rdx, r14
mov rcx, rax
call fcn.14001cdd0
lea rdx, [0x140090ac8]
mov rcx, rbx
call fcn.14001cc00
nop
lea rcx, [rbp + 0xc0]
call fcn.14001c780
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0x48]
call fcn.1400212b0
mov ebx, edi
jmp 0x14003ded5
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 5
mov rax, qword [rbp]
cmp rax, 0x10
jb 0x14003df3d
inc rax
mov rcx, qword [rbp - 0x18]
cmp rax, 0xffffffffffffffff
jbe 0x14003def3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rax, 0x1000
jb 0x14003df38
test byte [rbp - 0x18], 0x1f
je 0x14003df08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003df18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003df28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003df35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140055148
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov qword [rbp - 8], rdi
mov byte [rbp - 0x18], 0
mov rax, qword [rbp - 0x20]
cmp rax, 0x10
jb 0x14003dfb4
inc rax
mov rcx, qword [rbp - 0x38]
cmp rax, 0xffffffffffffffff
jbe 0x14003df6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rax, 0x1000
jb 0x14003dfaf
test cl, 0x1f
je 0x14003df7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003df8f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003df9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003dfac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140055148
mov eax, ebx
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.140054e30
lea r11, [rsp + 0x630]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret