Function at 0x444485
Capabilities:
Get file size
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a282
mov eax, dword fs:[0]
push eax
mov eax, 0x1694
call fcn.00434d30
push ebx
push esi
push edi
mov eax, dword [0x485118]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [esi + 0x34]
push ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], 1
call fcn.00444009
mov eax, dword [eax + 0x20]
mov ecx, dword [esi + 0x34]
push 1
mov dword [ebp - 0x28], eax
call fcn.00444009
mov eax, dword [eax + 0x20]
mov ecx, dword [esi + 0x34]
push 2
mov dword [ebp - 0x44], eax
call fcn.00444009
mov eax, dword [eax + 0x20]
mov ecx, dword [esi + 0x34]
push 3
mov dword [ebp - 0x34], eax
call fcn.00444009
push 0x4061e8
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::insert_unsigned_int__unsigned_short_int_const__]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
lea ecx, [ebp + 8]
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x44455c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44455f
mov byte [ebp - 0xd], bl
mov ecx, dword [esi + 0x34]
sub edi, dword [ebp - 0x34]
push 3
call fcn.00444009
push 0x8c
mov dword [eax + 0x20], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
cmp edi, ebx
mov byte [ebp - 4], 1
je 0x44459c
push 1
push 3
mov ecx, edi
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dword [edi + 0x58], 0x4061e4
jmp 0x44459e
xor edi, edi
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx]
push 1
push ebx
push edi
mov byte [ebp - 4], bl
call dword [eax + 0x1c]
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov ecx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
cmp eax, dword [esi + 0x30]
lea ecx, [ebp - 0x64]
setb byte [ebp - 0xe]
mov byte [ebp - 4], bl
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0xe], bl
je 0x44462b
mov eax, edi
neg eax
lea ecx, [edi + 8]
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x1c], eax
push 0x4061e0
push dword [ebp - 0x1c]
call dword [sym.imp.msvcp60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
pop ecx
pop ecx
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov ecx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
cmp eax, dword [esi + 0x30]
lea ecx, [ebp - 0x64]
setb byte [ebp - 0xe]
mov byte [ebp - 4], bl
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0xe], bl
jne 0x4445eb
cmp byte [ebp - 0xd], bl
je 0x4446af
push ebx
push ebx
push dword [esi + 0x2c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x444649
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x4446af
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 1
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
push ebx
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x14], 3
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp - 0x24]
push eax
call dword [sym.imp.msvcp60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov byte [ebp - 0xe], 1
je 0x4446b2
mov byte [ebp - 0xe], bl
test byte [ebp - 0x14], 2
mov dword [ebp - 4], 3
je 0x4446cc
and dword [ebp - 0x14], 0xfffffffd
lea ecx, [ebp - 0x64]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [ebp - 0x14], 1
mov dword [ebp - 4], ebx
je 0x4446e2
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp - 0x74]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0xe], bl
je 0x4446ea
mov byte [ebp - 0xd], bl
cmp edi, ebx
je 0x4446fc
mov eax, dword [edi]
mov eax, dword [eax + 4]
lea ecx, [eax + edi]
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp - 0xd], bl
je 0x444764
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x444718
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x444764
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [esi + 0x38]
push ebx
push ebx
push dword [eax + 4]
call dword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
test eax, eax
jne 0x444744
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x444764
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x444764
mov byte [ebp - 0xd], bl
mov edi, 0x10000
push edi
call fcn.0043565b
cmp byte [ebp - 0xd], bl
mov dword [ebp - 0x24], eax
je 0x444802
push ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
push edi
jmp 0x4447f2
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
jbe 0x444802
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
jb 0x4447cb
mov edx, dword [ebp - 0x44]
add eax, edx
cmp ecx, eax
ja 0x4447cb
add ecx, edi
cmp ecx, eax
jbe 0x4447cb
mov edi, edx
sub edi, dword [ebp - 0x20]
cmp byte [ebp - 0xd], bl
je 0x4447e8
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x4447ce
mov byte [ebp - 0xd], bl
jmp 0x4447ce
add dword [ebp - 0x20], edi
cmp byte [ebp - 0xd], bl
je 0x4447e8
push ebx
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4447e8
mov byte [ebp - 0xd], bl
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x10000
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444786
push dword [ebp - 0x24]
call fcn.0043567b
cmp byte [ebp - 0xd], bl
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
je 0x444829
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push 4
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x444829
mov byte [ebp - 0xd], bl
mov eax, dword [ebp - 0x30]
imul eax, eax, 5
push eax
mov dword [ebp - 0x30], eax
call fcn.0043565b
cmp byte [ebp - 0xd], bl
mov dword [ebp - 0x34], eax
je 0x44485a
push ebx
lea ecx, [ebp - 0x30]
push ecx
push eax
push 2
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x44485a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0xd], bl
xor eax, eax
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x30
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0xc0]
push ebx
push eax
mov dword [ebp - 0x60], 0x4061c8
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xb4], ecx
lea esi, [ebp - 0x60]
lea edi, [ebp - 0xb0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
push 0xc
pop ecx
lea esi, [ebp - 0xc0]
lea edi, [ebp - 0x16a0]
mov dword [ebp - 0xa4], ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3e0], ecx
mov dword [ebp - 0x3dc], eax
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
inc eax
cmp byte [ebp - 0xd], bl
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x16a0]
lea eax, [ebp - 0x3e0]
mov dword [ebp - 0x90], 0x1c
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
je 0x444b18
push dword [ebp - 0x30]
lea eax, [ebp - 0x90]
push ebx
push eax
push 2
push ebx
mov esi, 0x10001
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgCalculateEncodedLength]
cmp eax, ebx
mov dword [ebp - 0x38], eax
jne 0x44494b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x444b18
cmp dword [ebp - 0x38], ebx
jbe 0x44496b
push dword [ebp - 0x38]
call fcn.0043565b
cmp eax, ebx
mov dword [ebp - 0x3c], eax
jne 0x44496b
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x444b18
push ebx
push ebx
lea eax, [ebp - 0x90]
push eax
push 2
push ebx
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgOpenToEncode]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x48], esi
jne 0x444993
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x444b18
push 1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgUpdate]
test eax, eax
jne 0x4449b2
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x444b18
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
push ebx
push 2
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
jne 0x4449d3
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x444b18
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x44]
push ebx
push ebx
add eax, ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4449f8
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x444b18
push 0x30
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x444a25
push dword [ebp - 0x38]
mov ecx, eax
push dword [ebp - 0x3c]
call fcn.0044d2f4
mov edi, eax
jmp 0x444a27
xor edi, edi
push 0x8c
mov byte [ebp - 4], bl
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
mov dword [ebp - 0x28], esi
cmp esi, ebx
mov byte [ebp - 4], 6
je 0x444a57
push 1
push 3
mov ecx, esi
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dword [esi + 0x58], 0x4061e4
jmp 0x444a59
xor esi, esi
mov eax, dword [edi]
push 1
push ebx
push esi
mov ecx, edi
mov byte [ebp - 4], bl
call dword [eax + 0x1c]
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov ecx, eax
mov byte [ebp - 4], 7
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov dword [ebp - 0x28], eax
or dword [ebp - 0x14], 4
push 8
pop edi
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov esi, eax
mov ecx, dword [ebp - 0x28]
or dword [ebp - 0x14], edi
push ebx
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 4], 9
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
dec eax
push eax
mov ecx, esi
call dword [sym.imp.msvcp60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb al, al
inc al
test byte [ebp - 0x14], 8
mov byte [ebp - 0xe], al
mov dword [ebp - 4], edi
je 0x444afe
and dword [ebp - 0x14], 0xfffffff7
lea ecx, [ebp - 0x74]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test byte [ebp - 0x14], 4
mov dword [ebp - 4], ebx
je 0x444b10
lea ecx, [ebp - 0x64]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0xe], bl
je 0x444b18
mov byte [ebp - 0xd], bl
push dword [ebp - 0x34]
call fcn.0043567b
push dword [ebp - 0x3c]
call fcn.0043567b
push ebx
call fcn.0043567b
cmp dword [ebp - 0x48], ebx
je 0x444b3c
push dword [ebp - 0x48]
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
cmp dword [ebp - 0x54], ebx
je 0x444b4b
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x2c], ebx
je 0x444b59
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x18], 0xffffffff
je 0x444b68
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], bl
lea ecx, [ebp + 8]
setne bl
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10