Function at 0x1400064b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x540
mov rax, qword [0x14007a180]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x150]
call fcn.140055bd0
mov rdx, rsi
lea rcx, [rsp + 0x150]
call fcn.140009270
nop
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x160], 6
je 0x140006600
lea rdx, str.Error_opening_file:
lea rcx, [0x14007f020]
call fcn.14000b9b0
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x140006539
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rax
call fcn.14000d330
mov rdi, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14000b1a0
movzx edx, al
mov rcx, rdi
call fcn.14000cd90
mov rcx, rdi
call fcn.14000cc30
nop
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x150], rax
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x14c], edx
lea rcx, [rsp + 0x160]
call fcn.140008fc0
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x150], rax
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x14c], edx
lea rdi, vtable.std::ios_base.0
mov qword [rsp + 0x200], rdi
lea rcx, [rsp + 0x200]
call fcn.14002a690
nop
jmp 0x140006c16
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x260]
call fcn.140055bd0
mov rdx, rdi
lea rcx, [rsp + 0x260]
call fcn.1400081b0
nop
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x270], 6
je 0x1400067b0
lea rdx, str.Error_opening_file:
lea rcx, [0x14007f020]
call fcn.14000b9b0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140006661
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.14000d330
mov rdi, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14000b1a0
movzx edx, al
mov rcx, rdi
call fcn.14000cd90
mov rcx, rdi
call fcn.14000cc30
nop
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x260], rax
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x25c], edx
lea rcx, [rsp + 0x268]
call fcn.140008fc0
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x260], rax
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x25c], edx
lea rdi, vtable.std::ios_base.0
mov qword [rsp + 0x308], rdi
lea rcx, [rsp + 0x308]
call fcn.14002a690
nop
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x150], rax
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x14c], edx
lea rcx, [rsp + 0x160]
call fcn.140008fc0
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x150], rax
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x14c], edx
mov qword [rsp + 0x200], rdi
lea rcx, [rsp + 0x200]
call fcn.14002a690
nop
jmp 0x140006c16
xor edx, edx
mov r8d, 0xd8
lea rcx, [rsp + 0x450]
call fcn.140055bd0
lea rcx, [rsp + 0x450]
call fcn.140007d80
nop
xor edx, edx
mov r8d, 0xe0
lea rcx, [rsp + 0x370]
call fcn.140055bd0
mov ecx, 0x28
call fcn.140028618
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
lea rdx, [rsp + 0x260]
mov rcx, rax
call fcn.1400040b0
nop
mov r9d, 5
mov r8, rax
lea rdx, [rsp + 0x458]
lea rcx, [rsp + 0x370]
call fcn.1400127b0
nop
mov ecx, 0x28
call fcn.140028618
mov rbx, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
xor edx, edx
mov rcx, rbx
call fcn.1400105b0
lea rax, vtable.CryptoPP::Redirector.0
mov qword [rbx], rax
lea rax, vtable.CryptoPP::Redirector.1.0
mov qword [rbx + 8], rax
lea rax, [rsp + 0x370]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], 3
mov r9, rbx
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xa0]
call fcn.140003e60
lea rcx, [rsp + 0xa0]
call fcn.1400095d0
lea rcx, [rsp + 0x160]
call fcn.14000a9c0
mov ebx, 6
mov r14d, 2
test rax, rax
jne 0x140006906
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rsp + rcx + 0x198], 0
cmovne eax, r14d
or eax, dword [rsp + rcx + 0x160]
and eax, 0x17
mov dword [rsp + rcx + 0x160], eax
and eax, dword [rsp + rcx + 0x164]
jne 0x140006c3a
cmp qword [rsi + 0x18], 0xf
jbe 0x140006910
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x268]
call fcn.14000a9c0
test rax, rax
jne 0x140006962
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
cmp qword [rsp + rcx + 0x2a8], 0
cmovne ebx, r14d
or ebx, dword [rsp + rcx + 0x270]
and ebx, 0x17
mov dword [rsp + rcx + 0x270], ebx
and ebx, dword [rsp + rcx + 0x274]
jne 0x140006c8c
lea rdx, str.File_decrypted:
lea rcx, [0x14007eea0]
call fcn.14000b9b0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140006983
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.14000d330
mov rdi, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14000b1a0
movzx edx, al
mov rcx, rdi
call fcn.14000cd90
mov rcx, rdi
call fcn.14000cc30
nop
lea rax, vtable.CryptoPP::StreamTransformationFilter.0
mov qword [rsp + 0x370], rax
lea rax, vtable.CryptoPP::StreamTransformationFilter.1.0
mov qword [rsp + 0x378], rax
lea rax, vtable.CryptoPP::FilterPutSpaceHelper.0
mov qword [rsp + 0x400], rax
mov rcx, qword [rsp + 0x418]
cmp qword [rsp + 0x410], rcx
cmovb rcx, qword [rsp + 0x410]
mov rdx, qword [rsp + 0x420]
test rdx, rdx
je 0x140006a19
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.140018bc0
nop
lea rax, vtable.CryptoPP::FilterWithBufferedInput.0
mov qword [rsp + 0x370], rax
lea rax, vtable.CryptoPP::FilterWithBufferedInput.1.0
mov qword [rsp + 0x378], rax
mov rcx, qword [rsp + 0x3d0]
cmp qword [rsp + 0x3c8], rcx
cmovb rcx, qword [rsp + 0x3c8]
mov rdx, qword [rsp + 0x3d8]
test rdx, rdx
je 0x140006a6d
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.140018bc0
nop
mov rcx, qword [rsp + 0x388]
test rcx, rcx
je 0x140006a85
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
lea rcx, [rsp + 0x450]
call fcn.1400036d0
nop
mov rcx, qword [rsp + 0x518]
cmp qword [rsp + 0x510], rcx
cmovb rcx, qword [rsp + 0x510]
mov rdx, qword [rsp + 0x520]
test rdx, rdx
je 0x140006ac9
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.140018bc0
nop
mov rcx, qword [rsp + 0x4f8]
cmp qword [rsp + 0x4f0], rcx
cmovb rcx, qword [rsp + 0x4f0]
mov rdx, qword [rsp + 0x500]
test rdx, rdx
je 0x140006aff
mov rdi, rdx
xor eax, eax
rep stosd dword [rdi], eax
mov rcx, rdx
call fcn.140018b40
nop
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x260], rax
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x25c], edx
lea rcx, [rsp + 0x268]
call fcn.140008fc0
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x260], rax
mov rax, qword [rsp + 0x260]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x25c], edx
lea rdi, vtable.std::ios_base.0
mov qword [rsp + 0x308], rdi
lea rcx, [rsp + 0x308]
call fcn.14002a690
nop
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x150], rax
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x14c], edx
lea rcx, [rsp + 0x160]
call fcn.140008fc0
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x150], rax
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x14c], edx
mov qword [rsp + 0x200], rdi
lea rcx, [rsp + 0x200]
call fcn.14002a690
nop
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400285e0
mov rbx, qword [rsp + 0x570]
add rsp, 0x540
pop r14
pop rdi
pop rsi
ret
test al, 4
je 0x140006c47
lea rdi, str.ios_base::badbit_set
jmp 0x140006c5c
test r14b, al
lea rdi, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rdi, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001840
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140002380
lea rdx, [0x140078eb8]
lea rcx, [rsp + 0x48]
call fcn.14002c474
test bl, 4
je 0x140006c9a
lea rdi, str.ios_base::badbit_set
jmp 0x140006caf
test bl, 2
lea rdi, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rdi, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001840
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140002380
lea rdx, [0x140078eb8]
lea rcx, [rsp + 0x70]
call fcn.14002c474
int3