Function at 0x1000b990
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026e27
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x10037018]
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 ecx, dword [0x1002afcc]
mov edx, dword [str.456789abcdef]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x1002afd4]
xor ebx, ebx
mov dword [ebp - 0x20], edx
mov edx, dword [0x1002afd8]
mov dword [ebp - 0x1c], ecx
mov cl, byte [0x1002afdc]
push eax
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x474], ebx
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x14], cl
call sym.libBasic.dll_public:_static_wchar_t____cdecl_BASUtilityString::ConvertUtf8ToUnicode_char_const__
mov esi, eax
add esp, 4
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x47c], esi
push ebx
push 0x8000000
push 3
push ebx
push 1
push Ordinal_3
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x478], edi
cmp edi, 0xffffffff
jne 0x1000ba7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_opening_file__s_nError:__d_n
call dword [sym.imp.MSVCR100.dll_printf]
push 1
call dword [sym.imp.MSVCR100.dll_malloc]
mov edx, dword [ebp - 0x464]
mov esi, eax
push edx
mov byte [esi], bl
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x14
jmp 0x1000bd89
mov dword [ebp - 0x488], edi
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x46c]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1000bad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptAcquireContext_failed:__d_n
call dword [sym.imp.MSVCR100.dll_printf]
push 1
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 0xc
mov esi, eax
mov byte [esi], bl
cmp edi, ebx
je 0x1000baca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x464]
push ecx
jmp 0x1000bd80
lea edx, [ebp - 0x46c]
mov dword [ebp - 0x484], edx
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x46c]
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000bb58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptAcquireContext_failed:__d_n
call dword [sym.imp.MSVCR100.dll_printf]
push 0x10029520
call sym.libBasic.dll_public:_static_char____cdecl_BASUtilityString::Strdup_char_const__
mov edx, dword [ebp - 0x46c]
add esp, 0xc
push ebx
push edx
mov dword [ebp - 0x464], eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp edi, ebx
je 0x1000bb43
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 0x464]
add esp, 4
jmp 0x1000bd8b
lea eax, [ebp - 0x468]
mov dword [ebp - 0x480], eax
push ebx
lea ecx, [ebp - 0x474]
push ecx
push 0x400
lea edx, [ebp - 0x444]
push edx
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call esi
cmp eax, ebx
je 0x1000bc38
lea ecx, [ecx]
mov ecx, dword [ebp - 0x474]
cmp ecx, ebx
je 0x1000bc34
push ebx
push ecx
mov ecx, dword [ebp - 0x468]
lea eax, [ebp - 0x444]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000bbe1
push ebx
lea edx, [ebp - 0x474]
push edx
push 0x400
lea eax, [ebp - 0x444]
push eax
push edi
call esi
cmp eax, ebx
jne 0x1000bb90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_failed:__d_n
jmp 0x1000bbed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptHashData_failed:__d_n
call dword [sym.imp.MSVCR100.dll_printf]
push 0x10029520
call sym.libBasic.dll_public:_static_char____cdecl_BASUtilityString::Strdup_char_const__
mov ecx, dword [ebp - 0x468]
add esp, 0xc
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x46c]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp edi, ebx
je 0x1000bc28
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x464]
push eax
jmp 0x1000bd80
cmp eax, ebx
jne 0x1000bc46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_failed:__d_n
jmp 0x1000bbed
mov dword [ebp - 0x470], 0x20
mov dword [ebp - 0x44c], 0xf
mov dword [ebp - 0x450], ebx
mov byte [ebp - 0x460], bl
push ebx
lea ecx, [ebp - 0x470]
push ecx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x468]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1000bda7
mov ecx, dword [ebp - 0x464]
push ecx
push str.MD5_hash_of_file__s_is:
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
xor esi, esi
cmp dword [ebp - 0x470], ebx
jbe 0x1000bd0c
movzx eax, byte [ebp + esi - 0x44]
mov edx, eax
and edx, 0xf
movsx ecx, byte [ebp + edx - 0x24]
shr eax, 4
movsx edx, byte [ebp + eax - 0x24]
push ecx
push edx
push str._c_c
call dword [sym.imp.MSVCR100.dll_printf]
movzx eax, byte [ebp + esi - 0x44]
shr eax, 4
mov bl, byte [ebp + eax - 0x24]
add esp, 0xc
lea edi, [ebp - 0x460]
call fcn.1000c000
movzx ecx, byte [ebp + esi - 0x44]
and ecx, 0xf
mov bl, byte [ebp + ecx - 0x24]
call fcn.1000c000
inc esi
cmp esi, dword [ebp - 0x470]
jb 0x1000bcac
mov edi, dword [ebp - 0x478]
xor ebx, ebx
push 0x1002b07c
call dword [sym.imp.MSVCR100.dll_printf]
mov eax, dword [ebp - 0x460]
add esp, 4
cmp dword [ebp - 0x44c], 0x10
jae 0x1000bd2f
lea eax, [ebp - 0x460]
push eax
call sym.libBasic.dll_public:_static_char____cdecl_BASUtilityString::Strdup_char_const__
add esp, 4
cmp dword [ebp - 0x44c], 0x10
mov esi, eax
jb 0x1000bd53
mov edx, dword [ebp - 0x460]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x468]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0x46c]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp edi, ebx
je 0x1000bd79
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, esi
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.100256d0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptGetHashParam_failed:__d_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
jmp 0x1000bd29