Function at 0x1400462d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x380
mov rax, qword [0x140083010]
xor rax, rsp
mov qword [rsp + 0x370], rax
xor r12d, r12d
mov r8d, 0x104
lea rdx, [rsp + 0x160]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14004670e
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x128]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ares
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140046736
mov dword [rsp + 0x28], 0x26
lea rax, str.URL:_Ares_Protocol
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004675e
mov dword [rsp + 0x28], 2
lea rax, [0x140078528]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.URL_Protocol
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140046786
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x130]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.shellopencommand
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400467ae
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x70]
call fcn.140048e80
mov rdi, rax
mov rax, qword [rax + 0x10]
mov rdx, qword [rdi + 0x18]
mov rcx, rdx
sub rcx, rax
cmp rcx, 1
jb 0x1400464d2
lea r8, [rax + 1]
mov qword [rdi + 0x10], r8
mov r14, rdi
cmp rdx, 8
jb 0x14004645c
mov r14, qword [rdi]
lea rcx, [0x1400785da]
lea r15, [0x1400785d8]
cmp rcx, r14
jbe 0x14004648d
lea rax, [r14 + rax*2]
cmp r15, rax
ja 0x14004648d
cmp r14, r15
ja 0x140046482
mov rsi, r12
jmp 0x140046492
mov rsi, r14
sub rsi, r15
sar rsi, 1
jmp 0x140046492
mov esi, 1
lea rcx, [r14 + 2]
add r8, r8
mov rdx, r14
call sub.VCRUNTIME140.dll_memmove
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsi + 1]
lea rdx, [r15 + rdx*2]
lea rcx, [r14 + rbx]
mov r8d, 1
sub r8, rsi
add r8, r8
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400464eb
mov qword [rsp + 0x28], 1
mov edx, 1
mov rcx, rdi
call fcn.14004a380
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov r8d, 6
lea rdx, str.____1_
lea rcx, [rsp + 0x50]
call fcn.140048e00
xorps xmm0, xmm0
movups xmmword [rsp + 0x138], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x148], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x138], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x148], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400465b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400465b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400465b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004b934
movdqa xmm0, xmmword [0x1400789e0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r12w
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x140046613
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004660e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004660e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004b934
movdqa xmm0, xmmword [0x1400789e0]
movdqu xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x70], r12w
mov eax, dword [rsp + 0x148]
add eax, eax
lea rcx, [rsp + 0x138]
cmp qword [rsp + 0x150], 8
cmovae rcx, qword [rsp + 0x138]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400467d7
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x150]
cmp rdx, 8
jb 0x1400466e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x138]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400466da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400466da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004b934
nop
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.14004b8d0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
lea rdx, str.Failed_to_retrieve_executable_path.
lea rcx, [rsp + 0x98]
call fcn.140034760
lea rdx, [0x140080898]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_create_registry_key.
lea rcx, [rsp + 0xb0]
call fcn.140034760
lea rdx, [0x140080898]
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_set_default_value.
lea rcx, [rsp + 0xc8]
call fcn.140034760
lea rdx, [0x140080898]
lea rcx, [rsp + 0xc8]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_set_URL_Protocol_value.
lea rcx, [rsp + 0xe0]
call fcn.140034760
lea rdx, [0x140080898]
lea rcx, [rsp + 0xe0]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_create_command_subkey.
lea rcx, [rsp + 0xf8]
call fcn.140034760
lea rdx, [0x140080898]
lea rcx, [rsp + 0xf8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Failed_to_set_command_value.
lea rcx, [rsp + 0x110]
call fcn.140034760
lea rdx, [0x140080898]
lea rcx, [rsp + 0x110]
call sub.VCRUNTIME140.dll__CxxThrowException
int3