Function at 0x140016889
Capabilities:
Set registry value

Disassembly:
jmp 0x140039e90
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 [0x140074400]
xor rax, rbp
mov qword [rbp + 0x468], rax
lea rcx, [0x14007eb67]
call fcn.140016b68
nop
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 0x140039f1f
mov eax, 0xc00000f1
jmp 0x14003a254
mov rax, qword [rbp + 0x4a0]
cmp dword [rax + 8], 0
jne 0x140039f36
mov eax, 0xc00000f1
jmp 0x14003a254
cmp qword [rbp + 0x4a8], 0
jne 0x140039f4a
mov eax, 0xc00000f2
jmp 0x14003a254
lea rdx, [rbp + 8]
xor ecx, ecx
call fcn.14001675d
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x140039f66
mov eax, dword [rbp + 0x64]
jmp 0x14003a254
cmp dword [rbp + 0x4b0], 0
je 0x14003a047
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 0x14003a047
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]
nop
cmp qword [rbp + 0x4b8], 0
je 0x14003a03c
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, [0x14004e75c]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x498]
lea rcx, [rbp + 0xd0]
call fcn.1400161f9
nop
lea rdx, str._shellopen
lea rcx, [rbp + 0xd0]
call fcn.140016af0
nop
lea rdx, [0x14004e560]
lea rcx, [rbp + 0xd0]
call fcn.140016af0
nop
lea rdx, str.command
lea rcx, [rbp + 0xd0]
call fcn.140016af0
nop
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 0x14003a146
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, [0x14004e75c]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14003a132
mov dword [rbp + 0x64], 0
jmp 0x14003a139
mov dword [rbp + 0x64], 0xc000014d
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14003a14d
mov dword [rbp + 0x64], 0xc000014d
mov rcx, qword [rbp + 8]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp dword [rbp + 0x64], 0
jge 0x14003a166
mov eax, dword [rbp + 0x64]
jmp 0x14003a254
mov dword [rbp + 0x64], 0xc0000001
mov rax, qword [0x140074d18]
cmp dword [rax + 8], 0x4a62
jbe 0x14003a1aa
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 0x14003a22c
mov rax, qword [0x140074d18]
mov eax, dword [rax + 8]
mov dword [rbp + 0x464], eax
cmp dword [rbp + 0x464], 0x4563
je 0x14003a1e0
cmp dword [rbp + 0x464], 0x47ba
je 0x14003a1e0
cmp dword [rbp + 0x464], 0x47bb
je 0x14003a1e0
jmp 0x14003a20a
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 0x14003a22c
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 0x14003a23e
mov dword [rbp + 0x64], 0
jmp 0x14003a251
cmp dword [rbp + 0xa4], 0x80070005
jne 0x14003a251
mov dword [rbp + 0x64], 0xc0000022
mov eax, dword [rbp + 0x64]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140062530]
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