Function at 0x14000bdc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
xor r12d, r12d
mov rdi, r9
mov qword [rsp + 0x50], r12
mov rbx, r8
mov qword [rbp + 0x1b0], r12
mov r14, rdx
mov qword [rsp + 0x58], r12
mov rsi, rcx
test r8, r8
je 0x14000c047
cmp dword [r8 + 8], r12d
je 0x14000c047
test r9, r9
jne 0x14000be23
mov eax, 0xc00000f2
jmp 0x14000c04c
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.14000b9d8
test eax, eax
js 0x14000c04c
mov r13d, 2
cmp dword [rbp + 0x1c0], r12d
je 0x14000bf09
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov rdx, rsi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000bf09
mov rcx, qword [rbp + 0x1b0]
lea r9d, [r13 - 1]
mov dword [rsp + 0x28], r12d
lea rdx, str.URL_Protocol
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1c8]
test rcx, rcx
je 0x14000befc
mov rax, rcx
cmp word [rcx], r12w
je 0x14000bec9
add rax, r13
cmp word [rax], r12w
jne 0x14000bec0
sub rax, rcx
lea rdx, [0x14001f808]
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, r14
lea rcx, [rsp + 0x60]
call fcn.140001a5c
lea rdx, str._shellopen
lea rcx, [rsp + 0x60]
call fcn.140001a20
lea rdx, [0x14001f628]
lea rcx, [rsp + 0x60]
call fcn.140001a20
lea rdx, str.command
lea rcx, [rsp + 0x60]
call fcn.140001a20
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000bfe3
mov rax, rdi
cmp word [rdi], r12w
je 0x14000bf96
add rax, r13
cmp word [rax], r12w
jne 0x14000bf8d
mov rcx, qword [rsp + 0x58]
lea rdx, [0x14001f808]
sub rax, rdi
mov r9d, 1
sar rax, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, r12d
sub ecx, eax
neg ecx
mov rcx, qword [rsp + 0x58]
sbb edi, edi
and edi, 0xc000014d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000bfe8
mov edi, 0xc000014d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x14000bffb
mov eax, edi
jmp 0x14000c04c
mov rax, qword [0x1400268c8]
mov edx, dword [rax + 0xc]
cmp edx, 0x4a62
ja 0x14000c02f
sub edx, 0x4563
je 0x14000c02f
sub edx, 0x257
je 0x14000c02f
cmp edx, 1
je 0x14000c02f
mov r8, r14
mov rdx, rsi
mov ecx, r13d
call qword [rbx]
jmp 0x14000c03d
mov r9d, r13d
mov r8, r14
mov rdx, rsi
mov ecx, r13d
call qword [rbx]
sar eax, 0x1f
and eax, 0xc0000001
jmp 0x14000c04c
mov eax, 0xc00000f1
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret