Function at 0x140016889
Capabilities:
Set registry value

Disassembly:
jmp 0x1400394f0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xbe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4e8]
mov rax, qword [0x140073348]
xor rax, rbp
mov qword [rbp + 0x468], rax
lea rcx, [0x14007db67]
call fcn.140016b68
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov dword [rbp + 0xa4], 0x80004005
cmp qword [rbp + 0x4a0], 0
jne 0x14003957e
mov eax, 0xc00000f1
jmp 0x140039895
mov rax, qword [rbp + 0x4a0]
cmp dword [rax + 8], 0
jne 0x140039595
mov eax, 0xc00000f1
jmp 0x140039895
cmp qword [rbp + 0x4a8], 0
jne 0x1400395a9
mov eax, 0xc00000f2
jmp 0x140039895
lea rdx, [rbp + 8]
xor ecx, ecx
call fcn.14001675d
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x1400395c5
mov eax, dword [rbp + 0x64]
jmp 0x140039895
cmp dword [rbp + 0x4b0], 0
je 0x1400396a3
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x490]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400396a3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
lea rdx, str.URL_Protocol
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp qword [rbp + 0x4b8], 0
je 0x140039699
mov rcx, qword [rbp + 0x4b8]
call fcn.1400162a3
lea rax, [rax + rax + 2]
mov qword [rbp + 0x88], rax
mov eax, dword [rbp + 0x88]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x4b8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14004d72c]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x498]
lea rcx, [rbp + 0xd0]
call fcn.1400161f9
lea rdx, str._shellopen
lea rcx, [rbp + 0xd0]
call fcn.140016af0
lea rdx, [0x14004d530]
lea rcx, [rbp + 0xd0]
call fcn.140016af0
lea rdx, str.command
lea rcx, [rbp + 0xd0]
call fcn.140016af0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xd0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003979d
mov rcx, qword [rbp + 0x4a8]
call fcn.1400162a3
lea rax, [rax + rax + 2]
mov qword [rbp + 0x88], rax
mov eax, dword [rbp + 0x88]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x4a8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14004d72c]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14003978a
mov dword [rbp + 0x64], 0
jmp 0x140039791
mov dword [rbp + 0x64], 0xc000014d
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400397a4
mov dword [rbp + 0x64], 0xc000014d
mov rcx, qword [rbp + 8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 0x64], 0
jge 0x1400397bc
mov eax, dword [rbp + 0x64]
jmp 0x140039895
mov dword [rbp + 0x64], 0xc0000001
mov rax, qword [0x140073c18]
cmp dword [rax + 8], 0x4a62
jbe 0x140039800
mov r9d, 2
mov r8, qword [rbp + 0x498]
mov rdx, qword [rbp + 0x490]
mov ecx, 2
mov rax, qword [rbp + 0x4a0]
call qword [rax]
mov dword [rbp + 0xa4], eax
jmp 0x140039882
mov rax, qword [0x140073c18]
mov eax, dword [rax + 8]
mov dword [rbp + 0x464], eax
cmp dword [rbp + 0x464], 0x4563
je 0x140039836
cmp dword [rbp + 0x464], 0x47ba
je 0x140039836
cmp dword [rbp + 0x464], 0x47bb
je 0x140039836
jmp 0x140039860
mov r9d, 2
mov r8, qword [rbp + 0x498]
mov rdx, qword [rbp + 0x490]
mov ecx, 2
mov rax, qword [rbp + 0x4a0]
call qword [rax]
mov dword [rbp + 0xa4], eax
jmp 0x140039882
mov r8, qword [rbp + 0x498]
mov rdx, qword [rbp + 0x490]
mov ecx, 2
mov rax, qword [rbp + 0x4a0]
call qword [rax]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jl 0x140039892
mov dword [rbp + 0x64], 0
mov eax, dword [rbp + 0x64]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140061390]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x468]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret