Function at 0x44fd40
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x62c140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x62d034]
mov edx, dword [eax + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0x62d034
mov dword [ebp - 0x574], ebx
mov dword [ebp - 0x568], edi
mov dword [ebp - 0x55c], esi
mov dword [ebp - 0x558], esi
mov dword [ebp - 0x56c], esi
mov dword [ebp - 0x564], 0x41
mov dword [ebp - 0x560], esi
call edx
add eax, 0x10
mov dword [ebp - 0x550], eax
push 0xfde9
lea eax, [ebp - 0x548]
push ebx
lea ecx, [ebp - 0x54c]
mov dword [ebp - 0x54c], eax
call fcn.00427130
mov edx, dword [ebp - 0x54c]
cmp edx, esi
jne 0x44fdcf
xor eax, eax
jmp 0x44fdf3
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x554], ecx
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x44fde0
sub eax, dword [ebp - 0x554]
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x550]
call fcn.00411ba0
mov eax, dword [ebp - 0x54c]
lea edx, [ebp - 0x548]
cmp eax, edx
je 0x44fe19
push eax
call fcn.0057f05b
add esp, 4
push 0x400
lea eax, [ebp - 0x448]
push esi
push eax
call fcn.00584f40
push 0x41
call fcn.0057f2a0
push 0x41
push esi
push eax
mov dword [edi], eax
call fcn.00584f40
mov edi, dword [ebp - 0x550]
add esp, 0x1c
cmp dword [edi - 4], 1
jle 0x44fe61
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x550]
call fcn.00410ea0
mov edi, dword [ebp - 0x550]
push esi
push 0x8000000
push 3
push esi
push 1
push SQLAllocStmt
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x570], esi
cmp esi, 0xffffffff
jne 0x44fed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push str.GetSHA256HashFromFile
push str._s_:_Error_while_opening_file__s_nError_:__d_n
call fcn.0043d500
lea eax, [edi - 0x10]
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44febd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
push 0xf0000000
push 0x18
push 0
push 0
lea ecx, [ebp - 0x55c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x44ff3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.GetSHA256HashFromFile
push str._s_:_CryptAcquireContext_failed_:__d_n
call fcn.0043d500
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44ff2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x55c]
lea ecx, [ebp - 0x558]
push ecx
push 0
push 0
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x44ffa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.GetSHA256HashFromFile
push str._s_:_CryptCreateHash_failed_:__d_n
call fcn.0043d500
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x55c]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x44ff1e
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x560]
push ecx
push 0x400
lea edx, [ebp - 0x448]
push edx
push esi
call ebx
test eax, eax
je 0x450077
lea ebx, [ebx]
mov ecx, dword [ebp - 0x560]
test ecx, ecx
je 0x450073
push 0
push ecx
mov ecx, dword [ebp - 0x558]
lea eax, [ebp - 0x448]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x450017
push 0
lea edx, [ebp - 0x560]
push edx
push 0x400
lea eax, [ebp - 0x448]
push eax
push esi
call ebx
test eax, eax
jne 0x44ffd0
jmp 0x450077
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.GetSHA256HashFromFile
push str._s_:_CryptHashData_failed_:__d_n
call fcn.0043d500
mov ecx, dword [ebp - 0x55c]
add esp, 0xc
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp - 0x558]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x550]
call fcn.00402790
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4500aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.GetSHA256HashFromFile
push str._s_:_ReadFile_failed_:__d_n
call fcn.0043d500
mov eax, dword [ebp - 0x55c]
add esp, 0xc
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x558]
push ecx
jmp 0x450048
mov ecx, dword [ebp - 0x558]
push 0
lea edx, [ebp - 0x564]
push edx
lea eax, [ebp - 0x48]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x450209
mov edx, dword [0x62d034]
mov eax, dword [edx + 0xc]
mov ecx, 0x62d034
call eax
xor ebx, ebx
lea edi, [eax + 0x10]
mov dword [ebp - 0x554], edi
cmp dword [ebp - 0x564], ebx
jbe 0x45016f
movzx ecx, byte [ebp + ebx - 0x48]
push ecx
lea edx, [ebp - 0x554]
push str._02x
push edx
call fcn.00402d20
mov eax, dword [ebp - 0x554]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x45012c
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x554]
call fcn.004028c0
mov eax, dword [ebp - 0x554]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x450130
sub eax, ecx
mov esi, ecx
mov ecx, dword [ebp - 0x568]
mov edi, dword [ecx]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x450144
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
cmp ebx, dword [ebp - 0x564]
jb 0x4500f1
mov esi, dword [ebp - 0x570]
mov edi, dword [ebp - 0x554]
mov edx, dword [ebp - 0x568]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x574]
push eax
push ecx
push str.GetSHA256HashFromFile
push str._s_:_SHA_256_hash_of_File__s_is_:__s_n
call fcn.0043d390
lea eax, [edi - 0x10]
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4501ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x550]
mov ecx, dword [ebp - 0x558]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x55c]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4501f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x56c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSHA256HashFromFile
push str._s_:_CryptGetHashParam_failed_:__d_n
mov dword [ebp - 0x56c], eax
call fcn.0043d500
add esp, 0xc
jmp 0x4501b3