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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rbp + 0x390], rax
xor edi, edi
lea rax, [rsp + 0x50]
mov r15, rcx
mov qword [rsp + 0x20], rax
mov ebx, edi
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov r9d, 0x20019
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r12d, edi
mov r13d, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14007e3f7
lea ecx, [rdi + 0x10]
call fcn.14000ec70
test al, al
je 0x14007e3eb
lea r8, str.SYSTEMCurrentControlSetControlClass4D36E972_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.ComponentId]
lea r9, [rsp + 0x58]
mov eax, dword [0x1400ba2c8]
lea r8, [rbp + 0x190]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x38], rdi
movsd qword [rsp + 0x60], xmm0
movups xmm0, xmmword [str.NetCfgInstanceId]
mov dword [rsp + 0x68], eax
movzx eax, byte [0x1400ba240]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x4d8], rsi
mov qword [rsp + 0x28], rdi
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x4e0], r14
mov byte [rbp - 0x80], al
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x14007e72d
mov rsi, 0xffffffffffffffff
nop dword [rax]
test eax, eax
jne 0x14007e772
lea rax, [rbp + 0x190]
mov edx, 0x100
lea r9, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x290]
call fcn.140003260
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x290]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14007e6b9
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x5c]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x58], 0x100
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007e6ae
cmp dword [rsp + 0x5c], 1
jne 0x14007e6ae
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x5c]
lea rax, [rbp + 0x90]
mov dword [rsp + 0x58], 0x100
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007e6ae
cmp dword [rsp + 0x5c], 1
jne 0x14007e6ae
lea rdx, str.tap0901
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14007e5ba
lea rdx, str.root_tap0901
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14007e5ba
lea rdx, str.wintun
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14007e6ae
lea r14d, [rax + 2]
jmp 0x14007e5c0
mov r14d, 1
test r15, r15
je 0x14007e5e8
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14007e7a4
mov rcx, qword [r15]
lea rbx, [rax + 8]
mov qword [rax], rcx
mov qword [r15], rax
jmp 0x14007e5ff
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14007e7a4
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov rcx, rsi
lea rax, [rbp + 0x90]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14007e615
inc ecx
movsxd rsi, ecx
test r15, r15
je 0x14007e658
mov rax, 0xffffffffffffffff
mov rcx, rsi
add rcx, 8
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14007e7a4
mov rcx, qword [r15]
lea rdi, [rax + 8]
mov qword [rax], rcx
mov qword [r15], rax
jmp 0x14007e672
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x14007e7a4
mov r8, rsi
lea rdx, [rbp + 0x90]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
test r12, r12
mov qword [rbx], rdi
mov rax, rbx
mov dword [rbx + 8], r14d
cmovne rax, r12
mov r12, rax
test r13, r13
je 0x14007e6a1
mov qword [r13 + 0x10], rbx
xor edi, edi
mov r13, rbx
mov ebx, dword [rsp + 0x40]
lea rsi, [rdi - 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsd xmm0, qword [str.ComponentId]
lea r9, [rsp + 0x58]
mov eax, dword [0x1400ba2c8]
lea r8, [rbp + 0x190]
mov rcx, qword [rsp + 0x50]
inc ebx
mov qword [rsp + 0x38], rdi
mov edx, ebx
movsd qword [rsp + 0x60], xmm0
movups xmm0, xmmword [str.NetCfgInstanceId]
mov dword [rsp + 0x68], eax
movzx eax, byte [0x1400ba240]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x40], ebx
mov byte [rbp - 0x80], al
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x14007e480
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x4d8]
mov rax, r12
mov r14, qword [rsp + 0x4e0]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14008aca0
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4a0
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 0x14007e798
lea r8, str.SYSTEMCurrentControlSetControlClass4D36E972_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