Function at 0x140069d70
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor ebx, ebx
mov r14, rcx
mov rcx, qword [rdx]
mov rsi, rdx
mov dword [rbp - 0x20], ebx
mov r13d, ebx
mov dword [rbp + 0x58], ebx
mov edi, ebx
mov qword [rbp - 0x18], rbx
mov r12d, ebx
mov qword [rbp - 0x10], rbx
mov r15d, ebx
test rcx, rcx
je 0x14006a011
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x14006a011
cmp word [rcx], bx
je 0x14006a011
cmp word [rax], bx
je 0x14006a011
mov ecx, 0x26a
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r15, rax
test rax, rax
jne 0x140069df8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14006a016
mov rbx, qword [0x1400c02d8]
xor ecx, ecx
jmp 0x140069e28
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rbx + 8]
mov qword [rbp - 0x10], rbx
call qword [sym.imp.KERNELBASE.dll_lstrcmpiW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
je 0x140069f12
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140069e03
mov rdx, qword [rsi]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rbp - 0x18]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x3001f
mov dword [rsp + 0x20], ecx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
xor edx, edx
mov ebx, eax
test eax, eax
jne 0x14006a01a
mov rcx, qword [rsi + 0x10]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x140069e7c
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x1400b35d8]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006a01a
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor ecx, ecx
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.Order
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov qword [rbp - 0x18], rcx
xor r8d, r8d
mov dword [rbp + 0x48], ecx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140069f1b
cmp eax, 2
je 0x140069f70
jmp 0x14006a016
xor esi, esi
mov ebx, esi
jmp 0x14006a0c5
mov r13d, dword [rbp + 0x48]
test r13d, r13d
je 0x140069de5
mov ecx, r13d
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x140069de5
lea rax, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.Order
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006a01a
mov r8, qword [rsi]
lea r9, [rbp + 0x50]
mov edx, dword [rbp + 0x48]
mov rcx, rdi
call fcn.14006f97c
mov r12, rax
test rax, rax
je 0x14006a016
mov ecx, dword [rbp + 0x50]
lea rdx, str.Order
mov dword [rsp + 0x28], ecx
mov r9d, 7
mov rcx, r14
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov dword [rbp + 0x50], eax
mov ebx, eax
test eax, eax
jne 0x14006a01a
mov rax, qword [rsi]
lea r9, str.SystemCurrentControlSetControlPrintProviders
lea r8, str._ws_ws
mov qword [rsp + 0x20], rax
mov edx, 0x135
mov dword [rbp - 0x20], 1
mov rcx, r15
call fcn.14000e1f8
mov rcx, qword [rsi + 0x10]
lea r8, [rbp + 0x50]
mov rdx, r15
call fcn.14005d8cc
mov ebx, dword [rbp + 0x50]
test rax, rax
je 0x14006a016
mov rcx, qword [rbp - 0x10]
and qword [rax], 0
mov qword [rcx], rax
jmp 0x14006a016
mov ebx, 0x57
test ebx, ebx
je 0x14006a086
cmp dword [rbp + 0x58], 1
jne 0x14006a043
mov rdx, qword [rsi]
mov rcx, r14
call fcn.14006fb94
mov rdx, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
xor esi, esi
cmp dword [rbp - 0x20], esi
je 0x14006a086
lea rdx, str.Order
mov rcx, r14
test rdi, rdi
je 0x14006a078
mov dword [rsp + 0x28], r13d
lea r9d, [rsi + 7]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
jmp 0x14006a08b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
jmp 0x14006a0a3
test rdi, rdi
je 0x14006a0a3
mov rcx, qword [0x1400c02b8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test r12, r12
je 0x14006a0c0
mov rcx, qword [0x1400c02b8]
mov r8, r12
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test r15, r15
je 0x14006a0dd
mov rcx, qword [0x1400c02b8]
mov r8, r15
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14006a0f2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret