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

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor edi, edi
lea rax, [rsp + 0x40]
mov rsi, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov r9d, 0x20019
xor r8d, r8d
mov r12d, edi
mov r15d, edi
mov r13d, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14007e844
lea ecx, [rdi + 0x10]
call fcn.14000ec70
test al, al
je 0x14007e838
lea r8, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
lea rdx, str.Error_opening_registry_key:__s
lea ecx, [rdi + 0x10]
call fcn.14000e820
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
movsd xmm0, qword [str.Name]
lea r9, [rsp + 0x50]
movzx eax, word [0x1400ba378]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x4b8], rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x4c0], r14
movsd qword [rsp + 0x58], xmm0
mov word [rsp + 0x60], ax
mov dword [rsp + 0x50], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x14007eb43
mov r14, 0xffffffffffffffff
test eax, eax
jne 0x14007eb88
lea rax, [rsp + 0x70]
mov edx, 0x100
lea r9, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov qword [rsp + 0x20], rax
lea r8, str._s_sConnection
lea rcx, [rbp + 0x70]
call fcn.140003260
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14007eae7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rbp + 0x170]
mov dword [rsp + 0x50], 0x200
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14007eadc
cmp dword [rsp + 0x54], 1
jne 0x14007eadc
test rsi, rsi
je 0x14007e97c
lea ecx, [rax + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14007ebba
mov rcx, qword [rsi]
lea rbx, [rax + 8]
mov qword [rax], rcx
mov qword [rsi], rax
jmp 0x14007e993
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14007ebba
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x170]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
xor eax, eax
mov dword [rsp + 0x28], edi
movups xmmword [rbx], xmm0
mov r9d, r14d
mov qword [rbx + 0x10], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
mov rcx, r14
test rsi, rsi
je 0x14007ea01
add rcx, 8
mov rax, 0xffffffffffffffff
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14007ebba
mov rcx, qword [rsi]
lea rdi, [rax + 8]
mov qword [rax], rcx
mov qword [rsi], rax
jmp 0x14007ea13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14007ebba
xor eax, eax
lea r8, [rbp + 0x170]
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rax
mov ecx, 0xfde9
mov dword [rsp + 0x28], r14d
lea r9, [rax - 1]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, 0xffffffffffffffff
mov qword [rbx], rdi
mov rax, rdx
lea rcx, [rsp + 0x70]
inc rax
cmp byte [rcx + rax], 0
jne 0x14007ea53
inc eax
movsxd r14, eax
test rsi, rsi
je 0x14007ea8f
mov rcx, r14
add rcx, 8
cmovb rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14007ebba
mov rcx, qword [rsi]
lea rdi, [rax + 8]
mov qword [rax], rcx
mov qword [rsi], rax
jmp 0x14007eaa9
mov rdx, r14
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x14007ebba
mov r8, r14
lea rdx, [rsp + 0x70]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
test r12, r12
mov qword [rbx + 8], rdi
mov rax, rbx
cmovne rax, r12
mov r12, rax
test r15, r15
je 0x14007ead3
mov qword [r15 + 0x10], rbx
xor edi, edi
mov r15, rbx
lea r14, [rdi - 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsd xmm0, qword [str.Name]
lea r9, [rsp + 0x50]
movzx eax, word [0x1400ba378]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
inc r13d
mov qword [rsp + 0x38], rdi
mov edx, r13d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
movsd qword [rsp + 0x58], xmm0
mov word [rsp + 0x60], ax
mov dword [rsp + 0x50], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x14007e8b3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x4b8]
mov rax, r12
mov r14, qword [rsp + 0x4c0]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14008aca0
mov rsi, qword [rsp + 0x4c8]
add rsp, 0x480
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000ec70
test al, al
je 0x14007ebae
lea r8, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov ecx, reloc.WS2_32.dll_recv
lea rdx, str.Error_enumerating_registry_subkeys_of_key:__s
call fcn.14000e820
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
call fcn.14000ede0
int3