Function at 0x140016889
Capabilities:
Set registry value

Disassembly:
jmp 0x1400396d0
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 [0x140075340]
xor rax, rbp
mov qword [rbp + 0x468], rax
lea rcx, [0x14007fb67]
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 0x14003975e
mov eax, 0xc00000f1
jmp 0x140039a75
mov rax, qword [rbp + 0x4a0]
cmp dword [rax + 8], 0
jne 0x140039775
mov eax, 0xc00000f1
jmp 0x140039a75
cmp qword [rbp + 0x4a8], 0
jne 0x140039789
mov eax, 0xc00000f2
jmp 0x140039a75
lea rdx, [rbp + 8]
xor ecx, ecx
call fcn.14001675d
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x1400397a5
mov eax, dword [rbp + 0x64]
jmp 0x140039a75
cmp dword [rbp + 0x4b0], 0
je 0x140039883
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 0x140039883
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 0x140039879
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, [0x14004e79c]
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, [0x14004e5a0]
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 0x14003997d
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, [0x14004e79c]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14003996a
mov dword [rbp + 0x64], 0
jmp 0x140039971
mov dword [rbp + 0x64], 0xc000014d
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140039984
mov dword [rbp + 0x64], 0xc000014d
mov rcx, qword [rbp + 8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 0x64], 0
jge 0x14003999c
mov eax, dword [rbp + 0x64]
jmp 0x140039a75
mov dword [rbp + 0x64], 0xc0000001
mov rax, qword [0x140075c58]
cmp dword [rax + 8], 0x4a62
jbe 0x1400399e0
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 0x140039a62
mov rax, qword [0x140075c58]
mov eax, dword [rax + 8]
mov dword [rbp + 0x464], eax
cmp dword [rbp + 0x464], 0x4563
je 0x140039a16
cmp dword [rbp + 0x464], 0x47ba
je 0x140039a16
cmp dword [rbp + 0x464], 0x47bb
je 0x140039a16
jmp 0x140039a40
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 0x140039a62
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 0x140039a72
mov dword [rbp + 0x64], 0
mov eax, dword [rbp + 0x64]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140062ae0]
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