Function at 0x140004f10
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x110
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r8d, [r15 + 0x2d]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea rcx, [rsp + 0x50]
call fcn.140001f70
nop
mov qword [rsp + 0x130], r15
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x130]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400053e0
mov rbx, qword [rsp + 0x130]
mov qword [rsp + 0x130], rbx
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005003
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ffe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000540b
call fcn.1400256e4
movdqa xmm0, xmmword [0x1400590d0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
test rbx, rbx
setne r14b
test rbx, rbx
je 0x140005385
lea rdx, [0x140063d48]
lea rcx, [rsp + 0x70]
call fcn.1400021c0
nop
lea r9, [rsp + 0x70]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
cmp rsi, 7
cmova r9, rdi
mov r10, qword [rsp + 0x80]
cmp r10, 4
jb 0x140005166
mov ecx, 4
mov r11d, r15d
lea rax, [0x140056298]
sub r9, rax
nop word [rax + rax]
movzx edx, word [rax + r9]
cmp dx, word [rax]
jne 0x14000509d
add rax, 2
sub rcx, 1
jne 0x140005080
mov rcx, 0xffffffffffffffff
jmp 0x1400050ae
mov rcx, 0xffffffffffffffff
mov r11d, 1
cmovb r11d, ecx
test r11d, r11d
jne 0x140005166
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [r10 - 4]
cmp rax, 0xffffffffffffffff
cmovb rcx, rax
lea rdx, [rsp + 0x70]
cmp rsi, 7
cmova rdx, rdi
add rdx, 8
mov r8, rcx
lea rcx, [rsp + 0x50]
call fcn.140001f70
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140005137
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005132
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005411
call fcn.1400256e4
movups xmm2, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x70], xmm2
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x80], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rsi, xmm0
movq r10, xmm1
movq rdi, xmm2
movabs rax, 0x7ffffffffffffffe
sub rax, r10
cmp rax, 1
jb 0x140005417
lea rax, [rsp + 0x70]
cmp rsi, 7
cmova rax, rdi
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x1400565dc]
lea rcx, [rsp + 0x50]
call fcn.140008a80
nop
mov r8d, 1
lea rdx, [0x1400565dc]
lea rcx, [rsp + 0x50]
call fcn.140006470
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140005222
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000521d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000541d
call fcn.1400256e4
movups xmmword [rsp + 0x70], xmm6
movups xmmword [rsp + 0x80], xmm7
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005271
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000526c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005423
call fcn.1400256e4
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0xc
lea rdx, [0x1400565e0]
lea rcx, [rsp + 0x50]
call fcn.140001f70
nop
mov eax, dword [rsp + 0x80]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 7
cmova rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140005429
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005332
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000532d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005454
call fcn.1400256e4
lea rcx, str.___Program_added_to_autostart_successfully._n
call fcn.140001e20
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140005385
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000537f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000545a
call fcn.1400256e4
nop
test r14b, r14b
je 0x1400053bd
mov eax, 0x80000000
add rax, rbx
cmp rax, 5
jbe 0x1400053bd
cmp rbx, 0xffffffff80000007
je 0x1400053bd
cmp rbx, 0xffffffff80000060
je 0x1400053bd
cmp rbx, 0xffffffff80000050
je 0x1400053bd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea r8, str.RegCreateKeyExW_failed.
mov edx, eax
lea rcx, [rsp + 0x98]
call fcn.1400031f0
lea rdx, [0x1400611b0]
lea rcx, [rsp + 0x98]
call fcn.1400274c8
nop
call fcn.140036a34
nop
call fcn.140036a34
int3
call fcn.1400016e0
nop
call fcn.140036a34
nop
call fcn.140036a34
nop
lea r8, str.Cannot_write_string_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1400031f0
lea rdx, [0x1400611b0]
lea rcx, [rsp + 0xc0]
call fcn.1400274c8
nop
call fcn.140036a34
nop
call fcn.140036a34
int3