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
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.140001ef0
nop
mov qword [rsp + 0x130], r15
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae 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 0x140005310
mov rbx, qword [rsp + 0x130]
mov qword [rsp + 0x130], rbx
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140004f33
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000533b
call fcn.140024d14
movdqa xmm0, xmmword [0x140056f30]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
test rbx, rbx
setne r14b
test rbx, rbx
je 0x1400052b5
lea rdx, [0x140061cc0]
lea rcx, [rsp + 0x70]
call fcn.140002140
nop
lea r9, [rsp + 0x70]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
cmp rsi, 8
cmovae r9, rdi
mov r10, qword [rsp + 0x80]
cmp r10, 4
jb 0x140005096
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 0x140004fcd
add rax, 2
sub rcx, 1
jne 0x140004fb0
mov rcx, 0xffffffffffffffff
jmp 0x140004fde
mov rcx, 0xffffffffffffffff
mov r11d, 1
cmovb r11d, ecx
test r11d, r11d
jne 0x140005096
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, 8
cmovae rdx, rdi
add rdx, 8
mov r8, rcx
lea rcx, [rsp + 0x50]
call fcn.140001ef0
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x140005067
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005062
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005341
call fcn.140024d14
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 0x140005347
lea rax, [rsp + 0x70]
cmp rsi, 8
cmovae rax, rdi
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x1400545fc]
lea rcx, [rsp + 0x50]
call fcn.1400087a0
nop
mov r8d, 1
lea rdx, [0x1400545fc]
lea rcx, [rsp + 0x50]
call fcn.1400061c0
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, 8
jb 0x140005152
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000514d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000534d
call fcn.140024d14
movups xmmword [rsp + 0x70], xmm6
movups xmmword [rsp + 0x80], xmm7
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400051a1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000519c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005353
call fcn.140024d14
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0xc
lea rdx, [0x140054600]
lea rcx, [rsp + 0x50]
call fcn.140001ef0
nop
mov eax, dword [rsp + 0x80]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae 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 0x140005359
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140005262
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000525d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005384
call fcn.140024d14
lea rcx, str.___Program_added_to_autostart_successfully._n
call fcn.140001e00
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x1400052b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000538a
call fcn.140024d14
nop
test r14b, r14b
je 0x1400052ed
mov eax, 0x80000000
add rax, rbx
cmp rax, 5
jbe 0x1400052ed
cmp rbx, 0xffffffff80000007
je 0x1400052ed
cmp rbx, 0xffffffff80000060
je 0x1400052ed
cmp rbx, 0xffffffff80000050
je 0x1400052ed
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.140003160
lea rdx, [0x14005efa0]
lea rcx, [rsp + 0x98]
call fcn.140026b10
nop
call fcn.140035a34
nop
call fcn.140035a34
int3
call fcn.1400016c0
nop
call fcn.140035a34
nop
call fcn.140035a34
nop
lea r8, str.Cannot_write_string_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.140003160
lea rdx, [0x14005efa0]
lea rcx, [rsp + 0xc0]
call fcn.140026b10
nop
call fcn.140035a34
nop
call fcn.140035a34
int3