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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb68
mov rax, qword [0x140211040]
xor rax, rsp
mov qword [rsp + 0xb50], rax
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x120]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140114f0f
lea rdx, str.Failed_to_open_registry_key
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140060410
mov qword [rsp + 0x58], rax
lea rdx, [fcn.140060800]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rsp + 0xb78]
call fcn.140115930
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xb78]
jmp 0x140115273
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x138]
call fcn.140014d20
lea rcx, [rsp + 0x138]
call fcn.140115930
nop
mov dword [rsp + 0x4c], 0
xor eax, eax
cmp eax, 1
je 0x140115230
mov dword [rsp + 0x128], 0x100
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x128]
lea r8, [rsp + 0x150]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x103
jne 0x140114fb8
jmp 0x140115230
cmp dword [rsp + 0x44], 0
je 0x140114fef
lea rdx, str.Failed_to_enumerate_registry_key
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140060410
mov qword [rsp + 0x60], rax
lea rdx, [fcn.140060800]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
jmp 0x140115230
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1401151ea
mov dword [rsp + 0x12c], 4
lea rax, [rsp + 0x12c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401151d9
cmp dword [rsp + 0x130], 1
jne 0x1401151d9
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x98]
call fcn.14005f170
nop
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0xb70]
call fcn.1401149a0
mov byte [rsp + 0x40], al
lea rcx, [rsp + 0x98]
call fcn.140038e30
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x1401150d9
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140114f37
mov dword [rsp + 0x134], 0x800
lea rax, [rsp + 0x134]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x350]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401151d9
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x350]
mov rcx, qword [rsp + 0x68]
call fcn.14005f170
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x70]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0xb70]
call fcn.140114a80
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xb8]
call fcn.14005f170
nop
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x138]
call fcn.1401158d0
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.140106530
nop
lea rcx, [rsp + 0xb8]
call fcn.140038e30
nop
lea rcx, [rsp + 0xd8]
call fcn.140038e30
nop
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14011522b
lea rdx, str.Failed_to_open_service_key_for
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140060410
lea rdx, [rsp + 0x150]
mov rcx, rax
call fcn.140060410
mov qword [rsp + 0x90], rax
lea rdx, [fcn.140060800]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
jmp 0x140114f37
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0xb78]
call fcn.140115900
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x138]
call fcn.140115290
mov rax, qword [rsp + 0xb78]
mov rcx, qword [rsp + 0xb50]
xor rcx, rsp
call fcn.140165580
add rsp, 0xb68
ret