Function at 0x14000fd08
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
xor edi, edi
mov rbx, r9
mov qword [rsp + 0x50], rdi
mov rsi, r8
mov qword [rbp + 0x1b0], rdi
mov r15, rdx
mov qword [rsp + 0x58], rdi
mov r14, rcx
test r8, r8
je 0x14000ff99
cmp dword [r8 + 8], edi
je 0x14000ff99
test rbx, rbx
jne 0x14000fd6a
mov eax, 0xc00000f2
jmp 0x14000ff9e
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.14000f8fc
test eax, eax
js 0x14000ff9e
mov r13d, 2
cmp dword [rbp + 0x1c0], edi
je 0x14000fe4b
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov rdx, r14
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000fe4b
mov rcx, qword [rbp + 0x1b0]
lea r9d, [r13 - 1]
mov dword [rsp + 0x28], edi
lea rdx, str.URL_Protocol
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1c8]
test rcx, rcx
je 0x14000fe3e
mov rax, rcx
cmp word [rcx], di
je 0x14000fe0b
add rax, r13
cmp word [rax], di
jne 0x14000fe03
sub rax, rcx
lea rdx, [0x140026778]
sar rax, 1
mov r9d, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.140001b00
lea rdx, str._shellopen
lea rcx, [rsp + 0x60]
call fcn.140001ac4
lea rdx, [0x1400265c0]
lea rcx, [rsp + 0x60]
call fcn.140001ac4
lea rdx, str.command
lea rcx, [rsp + 0x60]
call fcn.140001ac4
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000ff23
mov rax, rbx
cmp word [rbx], di
je 0x14000fed5
add rax, r13
cmp word [rax], di
jne 0x14000fecd
mov rcx, qword [rsp + 0x58]
lea rdx, [0x140026778]
sub rax, rbx
mov r9d, 1
sar rax, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
sub eax, ebx
neg eax
sbb ebx, ebx
and ebx, 0xc000014d
jmp 0x14000ff28
mov ebx, 0xc000014d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x14000ff3b
mov eax, ebx
jmp 0x14000ff9e
mov rax, qword [0x14002eae0]
mov ebx, 0xc0000001
mov edx, dword [rax + 8]
cmp edx, 0x4a62
ja 0x14000ff74
sub edx, 0x4563
je 0x14000ff74
sub edx, 0x257
je 0x14000ff74
cmp edx, 1
je 0x14000ff74
mov r8, r15
mov rdx, r14
mov ecx, r13d
call qword [rsi]
jmp 0x14000ff82
mov r9d, r13d
mov r8, r15
mov rdx, r14
mov ecx, r13d
call qword [rsi]
test eax, eax
jns 0x14000ff95
cmp eax, 0x80070005
mov ecx, 0xc0000022
cmove ebx, ecx
mov edi, ebx
mov eax, edi
jmp 0x14000ff9e
mov eax, 0xc00000f1
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret