Function at 0x1400059a0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x520
mov rax, qword [0x14007a180]
xor rax, rsp
mov qword [rsp + 0x510], 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 0x140005af0
lea rdx, str.Error_opening_file:
lea rcx, [0x14007f020]
call fcn.14000b9b0
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x140005a29
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 0x140006164
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 0x140005ca0
lea rdx, str.Error_opening_file:
lea rcx, [0x14007f020]
call fcn.14000b9b0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140005b51
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 0x140006164
xor edx, edx
mov r8d, 0xb8
lea rcx, [rsp + 0x370]
call fcn.140055bd0
lea rcx, [rsp + 0x370]
call fcn.140007fb0
nop
xor edx, edx
mov r8d, 0xe0
lea rcx, [rsp + 0x430]
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 + 0x378]
lea rcx, [rsp + 0x430]
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 + 0x430]
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 0x140005df6
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 0x140006188
cmp qword [rsi + 0x18], 0xf
jbe 0x140005e00
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 0x140005e52
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 0x1400061da
lea rdx, str.File_encrypted:
lea rcx, [0x14007eea0]
call fcn.14000b9b0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140005e73
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 + 0x430], rax
lea rax, vtable.CryptoPP::StreamTransformationFilter.1.0
mov qword [rsp + 0x438], rax
lea rax, vtable.CryptoPP::FilterPutSpaceHelper.0
mov qword [rsp + 0x4c0], rax
mov rcx, qword [rsp + 0x4d8]
cmp qword [rsp + 0x4d0], rcx
cmovb rcx, qword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x4e0]
test rdx, rdx
je 0x140005f09
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 + 0x430], rax
lea rax, vtable.CryptoPP::FilterWithBufferedInput.1.0
mov qword [rsp + 0x438], rax
mov rcx, qword [rsp + 0x490]
cmp qword [rsp + 0x488], rcx
cmovb rcx, qword [rsp + 0x488]
mov rdx, qword [rsp + 0x498]
test rdx, rdx
je 0x140005f5d
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.140018bc0
nop
mov rcx, qword [rsp + 0x448]
test rcx, rcx
je 0x140005f75
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rsp + 0x3b8]
cmp qword [rsp + 0x3b0], rcx
cmovb rcx, qword [rsp + 0x3b0]
mov rdx, qword [rsp + 0x3c0]
test rdx, rdx
je 0x140005fab
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.140018bc0
nop
mov rcx, qword [rsp + 0x398]
cmp qword [rsp + 0x390], rcx
cmovb rcx, qword [rsp + 0x390]
mov rdx, qword [rsp + 0x3a0]
test rdx, rdx
je 0x140005fe1
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.140018bc0
nop
mov rcx, qword [rsp + 0x418]
cmp qword [rsp + 0x410], rcx
cmovb rcx, qword [rsp + 0x410]
mov rdx, qword [rsp + 0x420]
test rdx, rdx
je 0x140006017
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.140018bc0
nop
mov rcx, qword [rsp + 0x3f8]
cmp qword [rsp + 0x3f0], rcx
cmovb rcx, qword [rsp + 0x3f0]
mov rdx, qword [rsp + 0x400]
test rdx, rdx
je 0x14000604d
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 + 0x510]
xor rcx, rsp
call fcn.1400285e0
mov rbx, qword [rsp + 0x550]
add rsp, 0x520
pop r14
pop rdi
pop rsi
ret
test al, 4
je 0x140006195
lea rdi, str.ios_base::badbit_set
jmp 0x1400061aa
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 0x1400061e8
lea rdi, str.ios_base::badbit_set
jmp 0x1400061fd
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