Function at 0x1281d7a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x168
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, r9
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r8
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [rsp + 0x1b0]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0x1c0]
mov qword [rsp + 0x98], rcx
mov rcx, qword [rsp + 0x1d0]
mov qword [rsp + 0x90], rcx
mov ebx, 6
test rdx, rdx
je 0x1281dc3e
test rax, rax
je 0x1281dc3e
xor edi, edi
mov qword [r11 - 0xd8], rdi
mov qword [r11 - 0xd0], rdi
mov dword [rsp + 0xc0], edi
mov dword [rsp + 0xc4], edi
mov dword [rsp + 0xc8], edi
mov dword [rsp + 0xcc], edi
mov dword [rsp + 0xd0], edi
mov dword [rsp + 0xd4], edi
mov dword [rsp + 0xd8], edi
mov dword [rsp + 0xdc], edi
mov dword [rsp + 0xe0], 1
lea rax, [r11 - 0xa0]
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x80], 7
mov qword [r11 - 0x88], rdi
mov word [rsp + 0xf0], di
lea rcx, [r11 - 0x78]
call fcn.12805600
nop
mov r9d, dword [rsp + 0x1d8]
or r9d, 0x20019
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r8, qword [rsp + 0x80]
mov rdx, rsi
lea rcx, [rsp + 0xb0]
call fcn.1281abb0
mov ebx, eax
test eax, eax
je 0x1281d91a
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x1281dc31
cmp ebx, 2
sete dil
mov dword [rax], edi
jmp 0x1281dc31
mov rsi, qword [rbp + 8]
mov qword [rsp + 0x70], rsi
mov ecx, dword [rsp + 0xd0]
test rsi, rsi
je 0x1281d935
cmp rcx, qword [rbp]
jbe 0x1281d97d
call fcn.12958238
mov rbx, rax
mov rcx, qword [rbp + 8]
cmp rax, rcx
je 0x1281d94b
call fcn.12958250
mov qword [rbp + 8], rbx
mov qword [rsp + 0x70], rbx
test rbx, rbx
jne 0x1281d972
mov qword [rbp], rdi
lea rcx, [rsp + 0xb0]
call fcn.1281aae0
lea eax, [rbx + 8]
jmp 0x1281dc40
mov eax, dword [rsp + 0xd0]
mov qword [rbp], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rdi
mov eax, dword [rsp + 0x1e0]
or eax, 0x20006
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x1b8]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1281dc31
mov dword [rsp + 0x64], edi
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x78], edi
mov edx, dword [rsp + 0xd4]
cmp rdx, 0xffffffffffffffff
je 0x1281da40
mov rax, qword [rsp + 0x100]
cmp rdx, rax
je 0x1281da40
cmp rdx, rax
ja 0x1281da2d
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0xe8]
call fcn.128033a0
jmp 0x1281da40
xor r8d, r8d
sub rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.12803b90
lea rcx, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rcx
mov esi, edi
cmp dword [rsp + 0xc8], edi
jbe 0x1281db1d
nop
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0x64], eax
mov eax, dword [rbp]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x64]
mov r8, rcx
mov edx, esi
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
jne 0x1281db10
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x1281dc22
inc esi
cmp esi, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x68]
jb 0x1281da70
jmp 0x1281db1d
cmp eax, 0x103
jne 0x1281dc22
mov ebx, edi
mov esi, dword [rsp + 0x1c8]
test esi, esi
je 0x1281dc22
xor r8d, r8d
mov edx, dword [rsp + 0xd8]
lea rcx, [rsp + 0xb0]
call fcn.1281add0
inc dword [rsp + 0xd8]
mov ebx, eax
test eax, eax
jne 0x1281dc1a
nop word [rax + rax]
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x108]
cmp rax, 8
cmovae rdx, rcx
lea r8, [rsp + 0xf0]
cmp rax, 8
cmovae r8, rcx
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x1d8]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x1b8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, rbp
call fcn.1281d7a0
mov ebx, eax
test eax, eax
jne 0x1281dc22
xor r8d, r8d
mov edx, dword [rsp + 0xd8]
lea rcx, [rsp + 0xb0]
call fcn.1281add0
inc dword [rsp + 0xd8]
mov ebx, eax
test eax, eax
je 0x1281db60
cmp eax, 0x103
cmove ebx, edi
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0xb0]
call fcn.1281aae0
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.12959850
add rsp, 0x168
pop rdi
pop rsi
pop rbp
pop rbx
ret