Function at 0x180059878
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor edi, edi
mov r15d, edx
mov r14, rcx
test rcx, rcx
je 0x180059b9d
mov qword [rsp + 0x50], rdi
test edx, edx
je 0x1800598db
cmp edx, 1
jne 0x180059b9d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionSeCEditPolicies
jmp 0x1800598e2
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionSeCEditSvcEngs
lea rax, [rsp + 0x50]
mov r13, 0xffffffff80000002
mov rcx, r13
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x180059b84
mov r12d, edi
mov qword [rsp + 0x48], rdi
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov edx, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x180059b4f
mov ecx, dword [rsp + 0x40]
inc r12d
add ecx, 0x3d
mov dword [rsp + 0x5c], r12d
mov dword [rsp + 0x40], ecx
lea edx, [rcx + 1]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov r12, rax
mov qword [rsp + 0x60], rax
xor eax, eax
test r12, r12
je 0x180059b41
test r15d, r15d
je 0x1800599f9
cmp r15d, 1
jne 0x180059a57
mov edx, dword [rsp + 0x40]
lea rax, [rsp + 0x70]
inc edx
mov qword [rsp + 0x20], rax
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionSeCEditPolicies
mov rcx, r12
lea r8, str._s_s
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
lea r8, str.PolicyAttachmentPath
jmp 0x180059a2d
mov edx, dword [rsp + 0x40]
lea rax, [rsp + 0x70]
inc edx
mov qword [rsp + 0x20], rax
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionSeCEditSvcEngs
mov rcx, r12
lea r8, str._s_s
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
lea r8, str.ServiceAttachmentPath
xor ecx, ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x48]
mov rcx, r13
mov qword [rsp + 0x20], rax
mov rdx, r12
call fcn.180010c40
mov rdi, qword [rsp + 0x48]
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x180059b2a
lea edx, [rbx + 0x30]
lea ecx, [rbx + 0x40]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
xor r12d, r12d
mov rbx, rax
test rax, rax
je 0x180059b02
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x180059a89
lea eax, [rax*2 + 2]
xor ecx, ecx
mov edx, eax
mov r12d, eax
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
xor ecx, ecx
mov qword [rbx], rax
test rax, rax
je 0x180059af0
mov qword [rbx + 8], rcx
lea r8, [rsp + 0x70]
shr r12, 1
mov rcx, rax
mov rdx, r12
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
xor r12d, r12d
mov word [rbx + 0x10], r12w
mov qword [rbx + 0x18], rdi
mov rax, qword [r14]
mov qword [rbx + 0x28], rax
mov qword [r14], rbx
mov ebx, r12d
jmp 0x180059b1b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor r12d, r12d
mov ebx, 8
test rdi, rdi
je 0x180059b1b
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rdi, r12
mov qword [rsp + 0x48], r12
mov r12, qword [rsp + 0x60]
jmp 0x180059b30
cmp ebx, 2
cmove ebx, eax
mov rcx, r12
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
jmp 0x180059b46
mov ebx, 8
test ebx, ebx
jne 0x180059b5b
mov r12d, dword [rsp + 0x5c]
cmp esi, 0x103
jne 0x18005991d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor edi, edi
test esi, esi
je 0x180059b80
cmp esi, 0x103
je 0x180059b80
test ebx, ebx
jne 0x180059b84
mov ebx, esi
test ebx, ebx
je 0x180059b94
mov rcx, qword [r14]
test rcx, rcx
je 0x180059b94
call fcn.1800117f4
mov qword [r14], rdi
mov ecx, ebx
call fcn.18000ec90
jmp 0x180059ba2
mov eax, 1
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.180002a90
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret