Function at 0x140004fc0
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.140002000
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 0x140005490
mov rbx, qword [rsp + 0x130]
mov qword [rsp + 0x130], rbx
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400050b3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054bb
call fcn.1400253f4
movdqa xmm0, xmmword [0x140057ff0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
test rbx, rbx
setne r14b
test rbx, rbx
je 0x140005435
lea rdx, [0x140062d48]
lea rcx, [rsp + 0x70]
call fcn.140002250
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 0x140005216
mov ecx, 4
mov r11d, r15d
lea rax, str.__
sub r9, rax
nop word [rax + rax]
movzx edx, word [rax + r9]
cmp dx, word [rax]
jne 0x14000514d
add rax, 2
sub rcx, 1
jne 0x140005130
mov rcx, 0xffffffffffffffff
jmp 0x14000515e
mov rcx, 0xffffffffffffffff
mov r11d, 1
cmovb r11d, ecx
test r11d, r11d
jne 0x140005216
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.140002000
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x1400051e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054c1
call fcn.1400253f4
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 0x1400054c7
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, [0x1400555cc]
lea rcx, [rsp + 0x50]
call fcn.140008ae0
nop
mov r8d, 1
lea rdx, [0x1400555cc]
lea rcx, [rsp + 0x50]
call fcn.1400064b0
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 0x1400052d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054cd
call fcn.1400253f4
movups xmmword [rsp + 0x70], xmm6
movups xmmword [rsp + 0x80], xmm7
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005321
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000531c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054d3
call fcn.1400253f4
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0xc
lea rdx, [0x1400555d0]
lea rcx, [rsp + 0x50]
call fcn.140002000
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 0x1400054d9
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400053e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005504
call fcn.1400253f4
lea rcx, str.___Program_added_to_autostart_successfully._n
call fcn.140001eb0
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 7
jbe 0x140005435
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000542f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000550a
call fcn.1400253f4
nop
test r14b, r14b
je 0x14000546d
mov eax, 0x80000000
add rax, rbx
cmp rax, 5
jbe 0x14000546d
cmp rbx, 0xffffffff80000007
je 0x14000546d
cmp rbx, 0xffffffff80000060
je 0x14000546d
cmp rbx, 0xffffffff80000050
je 0x14000546d
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.1400032a0
lea rdx, [0x140060058]
lea rcx, [rsp + 0x98]
call fcn.1400271d8
nop
call fcn.140036744
nop
call fcn.140036744
int3
call fcn.1400016e0
nop
call fcn.140036744
nop
call fcn.140036744
nop
lea r8, str.Cannot_write_string_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1400032a0
lea rdx, [0x140060058]
lea rcx, [rsp + 0xc0]
call fcn.1400271d8
nop
call fcn.140036744
nop
call fcn.140036744
int3