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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x130
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rax - 0xc8], xmm1
lea r8d, [r12 + 0x2d]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea rcx, [rsp + 0x70]
call fcn.140001ef0
nop
mov qword [rsp + 0x150], r12
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rdx, qword [rsp + 0x70]
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x150]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400053da
mov rbx, qword [rsp + 0x150]
mov qword [rsp + 0x150], rbx
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x140004f41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005405
call fcn.140024d94
movdqa xmm0, xmmword [0x140056dc0]
movdqu xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x70], r12w
test rbx, rbx
setne r15b
test rbx, rbx
je 0x14000537a
lea rdx, [0x140061cc0]
lea rcx, [rsp + 0x50]
call fcn.140002140
nop
lea r9, [rsp + 0x50]
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x68]
cmp r14, 8
cmovae r9, rsi
mov r10, qword [rsp + 0x60]
cmp r10, 4
jb 0x1400050a0
mov ecx, 4
mov r11d, r12d
lea rax, str.__
sub r9, rax
movzx edx, word [r9 + rax]
cmp dx, word [rax]
jne 0x140004fcc
add rax, 2
sub rcx, 1
jne 0x140004fb2
lea rdi, [rcx - 1]
jmp 0x140004fdd
mov rdi, 0xffffffffffffffff
mov r11d, 1
cmovb r11d, edi
test r11d, r11d
jne 0x1400050a7
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa0], xmm1
lea rax, [r10 - 4]
mov r8, rdi
cmp rax, 0xffffffffffffffff
cmovb r8, rax
lea rdx, [rsp + 0x50]
cmp r14, 8
cmovae rdx, rsi
add rdx, 8
lea rcx, [rsp + 0x90]
call fcn.140001ef0
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000506c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005067
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000540b
call fcn.140024d94
movups xmm2, xmmword [rsp + 0x90]
movups xmmword [rsp + 0x50], xmm2
movups xmm1, xmmword [rsp + 0xa0]
movups xmmword [rsp + 0x60], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r14, xmm0
movq r10, xmm1
movq rsi, xmm2
jmp 0x1400050a7
mov rdi, 0xffffffffffffffff
movabs rax, 0x7ffffffffffffffe
sub rax, r10
cmp rax, 1
jb 0x140005411
lea rax, [rsp + 0x50]
cmp r14, 8
cmovae rax, rsi
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x1400545fc]
lea rcx, [rsp + 0x90]
call fcn.140008870
nop
mov r8d, 1
lea rdx, [0x1400545fc]
lea rcx, [rsp + 0x90]
call fcn.140006290
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140005166
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005161
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005417
call fcn.140024d94
movups xmmword [rsp + 0x50], xmm6
movups xmmword [rsp + 0x60], xmm7
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x1400051b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000541d
call fcn.140024d94
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa0], xmm1
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x1400051e0
mov r8, rdi
lea rcx, [rsp + 0x90]
call fcn.140001ef0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x80], xmm1
mov r8d, 0xc
lea rdx, [0x140054600]
lea rcx, [rsp + 0x70]
call fcn.140001ef0
nop
mov eax, dword [rsp + 0xa0]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rdx, qword [rsp + 0x70]
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 0x140005423
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x1400052cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000544e
call fcn.140024d94
movdqa xmm0, xmmword [0x140056dc0]
movdqu xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x70], r12w
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x14000532a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005325
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005454
call fcn.140024d94
lea rcx, str.___Program_added_to_autostart_successfully._n
call fcn.140001e00
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000537a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005374
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000545a
call fcn.140024d94
nop
test r15b, r15b
je 0x1400053b2
mov eax, 0x80000000
add rax, rbx
cmp rax, 5
jbe 0x1400053b2
cmp rbx, 0xffffffff80000007
je 0x1400053b2
cmp rbx, 0xffffffff80000060
je 0x1400053b2
cmp rbx, 0xffffffff80000050
je 0x1400053b2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r12
ret
lea r8, str.RegCreateKeyExW_failed.
mov edx, eax
lea rcx, [rsp + 0xb8]
call fcn.140003160
lea rdx, [0x14005eeb0]
lea rcx, [rsp + 0xb8]
call fcn.140026b90
nop
call fcn.140035ab4
nop
call fcn.140035ab4
int3
call fcn.1400016c0
nop
call fcn.140035ab4
nop
call fcn.140035ab4
nop
lea r8, str.Cannot_write_string_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rsp + 0xe0]
call fcn.140003160
lea rdx, [0x14005eeb0]
lea rcx, [rsp + 0xe0]
call fcn.140026b90
nop
call fcn.140035ab4
nop
call fcn.140035ab4
nop
call fcn.140035ab4
int3