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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14049bcb8]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, rdx
lea rax, [rsp + 0x40]
mov r14, rcx
mov qword [rsp + 0x20], rax
xor r15d, r15d
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], r15
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r12d, [r15 + 1]
test eax, eax
jne 0x140209165
xor bl, bl
mov edi, r15d
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0x180]
mov qword [rsp + 0x30], r15
mov edx, edi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140209152
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x60], r15
lea rdx, [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140209148
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x58], r15
lea rdx, str.Connection
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14020913d
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [0x1403c2ab8]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x48], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140209132
mov rdx, rsi
mov word [rbp + 0x178], r15w
mov rcx, rsi
call qword [sym.imp.VBoxRT.dll_RTUtf16ICmp]
test eax, eax
movzx ebx, bl
cmove ebx, r12d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
test bl, bl
je 0x140209040
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x1402092e9
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20c
call sub.VCRUNTIME140.dll_memset
mov r9, r14
lea r8, str.::_ls
mov edx, 0x106
lea rcx, [rsp + 0x70]
call qword [sym.imp.VBoxRT.dll_RTUtf16Printf]
test rax, rax
jns 0x1402091a2
mov ebx, 0x80070057
mov eax, ebx
jmp 0x1402092eb
lea rax, [rsp + 0x48]
mov dword [rsp + 0x60], 0x7007acc7
lea r9, [0x140409e08]
mov qword [rsp + 0x20], rax
mov r8d, r12d
mov dword [rsp + 0x64], 0x11d13202
xor edx, edx
mov dword [rsp + 0x68], 0x8000d2aa
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x6c], 0xe27c15f
mov qword [rsp + 0x48], r15
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x140209277
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], r15
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov qword [rsp + 0x28], rdx
xor edx, edx
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov rax, qword [rax + 0x18]
call qword [case.0x140010858.0]
mov ebx, eax
test eax, eax
js 0x14020925a
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8, qword [rsp + 0x40]
mov r9, rsi
mov qword [rsp + 0x28], rdx
xor edx, edx
mov dword [rsp + 0x20], r15d
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x140010858.0]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140010858.0]
cmp ebx, 0x80004001
jne 0x1402092da
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x1402092e2
lea rcx, str.netshell.dll
call fcn.140204fe0
mov rdi, rax
test rax, rax
je 0x1402092e2
lea rdx, str.HrRenameConnection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1402092cc
mov rdx, rsi
lea rcx, [rsp + 0x60]
call qword [case.0x140010858.0]
mov ebx, eax
jmp 0x1402092d1
mov ebx, 0x80004005
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jns 0x1402092e9
mov eax, ebx
jmp 0x1402092eb
mov eax, 0x80004005
jmp 0x1402092eb
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140202f70
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret