Function at 0x1400883b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x2690]
mov eax, 0x2790
call fcn.1400b0700
sub rsp, rax
mov rax, qword [0x14010bcf8]
xor rax, rsp
mov qword [rbp + 0x2670], rax
mov r13, rcx
lea rdx, [rsp + 0x70]
lea rcx, [0x1400de338]
call fcn.140087240
mov r12d, eax
cmp eax, 0xffffffff
jne 0x14008840e
lea rdx, [0x1400de350]
xor ecx, ecx
call fcn.140082080
mov eax, r12d
jmp 0x140088644
test r12d, r12d
jne 0x14008842b
lea rdx, [0x1400de390]
xor ecx, ecx
call fcn.140082080
lea eax, [r12 - 1]
jmp 0x140088644
mov qword [rsp + 0x27b8], rbx
lea rdx, [0x1400de3c8]
mov qword [rsp + 0x27c0], rsi
mov r8d, r12d
mov qword [rsp + 0x27c8], rdi
mov ecx, 3
mov qword [rsp + 0x2788], r14
mov qword [rsp + 0x2780], r15
call fcn.140082080
xor r14d, r14d
test r12d, r12d
jle 0x140088617
nop dword [rax]
nop word [rax + rax]
mov eax, r14d
lea r15, [rsp + 0x70]
imul rcx, rax, 0x130
lea rdx, [rsp + 0x38]
add r15, rcx
mov rcx, r15
call fcn.140087530
test eax, eax
je 0x14008860b
xor edx, edx
lea rcx, [rbp + 0x2570]
mov r8d, 0xff
call fcn.1400b1300
xor edi, edi
mov dword [rsp + 0x30], edi
mov rcx, rdi
call fcn.140082370
mov r9d, 1
lea r8, [r15 + 0x27]
lea rdx, [0x1400e2018]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_Interface_List_SizeA]
mov ebx, eax
test eax, eax
jne 0x1400885c7
mov ecx, dword [rsp + 0x30]
call fcn.140082380
mov r9d, dword [rsp + 0x30]
lea rdx, [r15 + 0x27]
mov r8, rax
mov dword [rsp + 0x20], 1
lea rcx, [0x1400e2018]
mov rdi, rax
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_Interface_ListA]
mov ebx, eax
cmp eax, 0x1a
je 0x1400884c1
test eax, eax
jne 0x1400885c7
mov r8d, 0xff
lea rcx, [rbp + 0x2570]
mov rdx, rdi
call fcn.1400b9860
mov rcx, rdi
mov byte [rbp + 0x266e], bl
call fcn.140082370
lea rax, [rbp + 0x2570]
mov r8d, 0xcb
mov qword [rsp + 0x28], rax
lea r9, [0x1400de0f8]
lea rax, [0x1400de0e8]
lea rdx, str.hb_b_
mov qword [rsp + 0x20], rax
lea ecx, [rbx + 4]
call fcn.140082160
mov rcx, r13
call fcn.140085dd0
lea r9d, [rbx + 2]
mov rdx, r13
lea r8, [rbp + 0x2570]
mov rcx, rax
call fcn.14009a9a0
mov ebx, eax
test eax, eax
jns 0x1400885e4
mov ecx, eax
call fcn.140091550
mov r9, rax
lea r8, [rbp + 0x2570]
lea rdx, [0x1400de130]
xor ecx, ecx
call fcn.140082080
jmp 0x1400885e4
mov rcx, rdi
call fcn.140082370
mov r9d, ebx
lea r8, [r15 + 0x27]
lea rdx, [0x1400de0a0]
xor ecx, ecx
call fcn.140082080
test ebx, ebx
jns 0x140088660
mov ecx, ebx
call fcn.140091550
mov r9d, dword [rsp + 0x38]
lea r8, [r15 + 0x27]
lea rdx, str.wintun_open_...__failed_to_open__s__index__d_:__s
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.140082080
inc r14d
cmp r14d, r12d
jl 0x140088480
mov eax, 0xffffffff
mov r14, qword [rsp + 0x2788]
mov rdi, qword [rsp + 0x27c8]
mov rsi, qword [rsp + 0x27c0]
mov rbx, qword [rsp + 0x27b8]
mov r15, qword [rsp + 0x2780]
mov rcx, qword [rbp + 0x2670]
xor rcx, rsp
call fcn.1400b06c0
add rsp, 0x2790
pop r13
pop r12
pop rbp
ret
xor ecx, ecx
mov edx, 0x1020018
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x1400886a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140086b90
mov r8, rax
lea rdx, str._bef_b
xor ecx, ecx
call fcn.140082080
jmp 0x140088761
mov edx, gethostbyname
lea ecx, [rdx - 0x2f]
call fcn.140082340
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
mov dword [rax], 0x81000c
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400886f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140086b90
mov r8, rax
lea rdx, [0x1400de1a8]
xor ecx, ecx
call fcn.140082080
jmp 0x140088748
lea rax, [rdi + 0x81000c]
mov dword [rbx + 0x18], 0x81000c
xor r9d, r9d
mov qword [rbx + 0x20], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140088779
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140086b90
mov r8, rax
lea rdx, [0x1400de1a8]
xor ecx, ecx
call fcn.140082080
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
call fcn.140082370
lea rdx, str.wintun_open_...__wintun_rings_alloc_failed
xor ecx, ecx
call fcn.140082080
mov eax, 0xfffffffe
jmp 0x14008861c
lea rax, [rsp + 0x34]
mov qword [rsp + 0x58], gethostbyname
xor esi, esi
mov qword [rsp + 0x60], rax
mov rcx, r13
mov dword [rsp + 0x34], esi
mov qword [rsp + 0x68], 4
mov qword [rsp + 0x50], rbx
call fcn.140085da0
lea r8, [rsp + 0x50]
mov edx, 0xca6ce5c0
mov rcx, rax
call fcn.14009aa60
mov edi, eax
test eax, eax
jns 0x140088861
mov ecx, eax
call fcn.140091550
mov r8, rax
lea rdx, [0x1400de2f0]
mov r9d, edi
xor ecx, ecx
call fcn.140082080
lea rdx, str.wintun_open_...__failed_to_register_rings.
xor ecx, ecx
call fcn.140082080
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140088800
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140088813
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140088854
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x14008884c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140086b90
mov r8, rax
lea rdx, [0x1400de1e8]
xor ecx, ecx
call fcn.140082080
mov qword [rbx + 8], rsi
mov qword [rbx + 0x20], rsi
mov rcx, rbx
call fcn.140082370
jmp 0x140088617
lea rdx, str.wintun_open_...__rings_registered_successfully
mov ecx, 3
call fcn.140082080
mov eax, dword [rsp + 0x38]
lea rcx, [r13 + 0x130]
mov r9, r15
mov dword [r13 + 0x230], eax
lea r8, [0x1400fc750]
mov qword [r13 + 0x250], rbx
mov edx, 0x100
call fcn.140082280
mov rcx, r13
call fcn.140085db0
mov r9d, dword [rsp + 0x38]
lea rdx, str.wintun_open_...__successfully_opened__s__index__d_
mov r8, rax
mov ecx, 3
call fcn.140082080
lea rax, [rsp + 0x48]
mov dword [rsp + 0x34], esi
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x44], esi
lea rdx, [0x1400ddfa8]
mov dword [rsp + 0x40], esi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x3c], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x140088a23
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400ddfe0]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x1400889e9
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400ddff8]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x30], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x1400889e9
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400de010]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x1400889e9
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400de028]
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x30], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140088a23
mov eax, dword [rsp + 0x3c]
lea rdx, [0x1400de068]
mov r9d, dword [rsp + 0x44]
lea ecx, [rbx + 2]
mov r8d, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
call fcn.140082080
jmp 0x140088a3b
mov ecx, ebx
call fcn.140086b90
mov r8, rax
lea rdx, [0x1400de040]
xor ecx, ecx
call fcn.140082080
mov eax, dword [r15 + 0x128]
mov dword [r13 + 0x248], eax
mov eax, dword [r15 + 0x12c]
mov dword [r13 + 0x24c], eax
xor eax, eax
jmp 0x14008861c