Function at 0x140004f60
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.140001fa0
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 0x140005430
mov rbx, qword [rsp + 0x130]
mov qword [rsp + 0x130], rbx
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005053
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000504e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000545b
call fcn.140024d64
movdqa xmm0, xmmword [0x1400580c0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
test rbx, rbx
setne r14b
test rbx, rbx
je 0x1400053d5
lea rdx, [0x140062d48]
lea rcx, [rsp + 0x70]
call fcn.1400021f0
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 0x1400051b6
mov ecx, 4
mov r11d, r15d
lea rax, [0x140055298]
sub r9, rax
nop word [rax + rax]
movzx edx, word [rax + r9]
cmp dx, word [rax]
jne 0x1400050ed
add rax, 2
sub rcx, 1
jne 0x1400050d0
mov rcx, 0xffffffffffffffff
jmp 0x1400050fe
mov rcx, 0xffffffffffffffff
mov r11d, 1
cmovb r11d, ecx
test r11d, r11d
jne 0x1400051b6
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.140001fa0
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140005187
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005182
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005461
call fcn.140024d64
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 0x140005467
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, [0x1400555dc]
lea rcx, [rsp + 0x50]
call fcn.140008a80
nop
mov r8d, 1
lea rdx, [0x1400555dc]
lea rcx, [rsp + 0x50]
call fcn.140006450
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 0x140005272
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000526d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000546d
call fcn.140024d64
movups xmmword [rsp + 0x70], xmm6
movups xmmword [rsp + 0x80], xmm7
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400052c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005473
call fcn.140024d64
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0xc
lea rdx, [0x1400555e0]
lea rcx, [rsp + 0x50]
call fcn.140001fa0
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 0x140005479
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005382
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000537d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054a4
call fcn.140024d64
lea rcx, str.___Program_added_to_autostart_successfully._n
call fcn.140001e50
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x1400053d5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054aa
call fcn.140024d64
nop
test r14b, r14b
je 0x14000540d
mov eax, 0x80000000
add rax, rbx
cmp rax, 5
jbe 0x14000540d
cmp rbx, 0xffffffff80000007
je 0x14000540d
cmp rbx, 0xffffffff80000060
je 0x14000540d
cmp rbx, 0xffffffff80000050
je 0x14000540d
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.140003240
lea rdx, [0x140060118]
lea rcx, [rsp + 0x98]
call fcn.140026b48
nop
call fcn.1400360b4
nop
call fcn.1400360b4
int3
call fcn.1400016e0
nop
call fcn.1400360b4
nop
call fcn.1400360b4
nop
lea r8, str.Cannot_write_string_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.140003240
lea rdx, [0x140060118]
lea rcx, [rsp + 0xc0]
call fcn.140026b48
nop
call fcn.1400360b4
nop
call fcn.1400360b4
int3