Function at 0x497b10
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b475
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5ec3c8]
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 eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x497b55
mov dword [eax + 4], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], 0x5d6494
mov dword [ebp - 0x28], 0
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004980d0
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x497bf5
call fcn.0044f060
push 1
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], str.sha_256.cpp
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x30], 0x2a
call fcn.0041a580
mov edx, str.Failed_to_initialize_SHA256_hash._Error_0x
lea ecx, [ebp - 0xd8]
call fcn.0041a5e0
mov edx, 0x432150
lea ecx, [ebp - 0xd8]
call fcn.00423bd0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xd8]
call fcn.00430260
lea ecx, [ebp - 0x80]
call fcn.0044dd10
mov byte [ebp - 4], 1
jmp 0x497d22
test esi, esi
je 0x497c8c
test edi, edi
jne 0x497c08
mov eax, 0xc000000d
jmp 0x497c15
push 0
push dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.bcrypt.dll_BCryptHashData]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x497c8c
call fcn.0044f060
push 1
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], str.sha_256.cpp
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x30], 0x34
call fcn.0041a580
mov edx, str.Failed_to_hash_salt._Error_0x
lea ecx, [ebp - 0xd8]
call fcn.0041a5e0
mov edx, 0x432150
lea ecx, [ebp - 0xd8]
call fcn.00423bd0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xd8]
call fcn.00430260
lea ecx, [ebp - 0x80]
call fcn.0044dd10
mov byte [ebp - 4], 2
jmp 0x497d22
test ebx, ebx
je 0x497d3c
test edi, edi
jne 0x497c9f
mov eax, 0xc000000d
jmp 0x497cac
push 0
push dword [ebp + 0x14]
push ebx
push edi
call dword [sym.imp.bcrypt.dll_BCryptHashData]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x497d3c
call fcn.0044f060
push 1
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], str.sha_256.cpp
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x30], 0x3f
call fcn.0041a580
mov edx, str.Failed_to_hash_salt._Error_0x
lea ecx, [ebp - 0xd8]
call fcn.0041a5e0
mov edx, 0x432150
lea ecx, [ebp - 0xd8]
call fcn.00423bd0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xd8]
call fcn.00430260
lea ecx, [ebp - 0x80]
call fcn.0044dd10
mov byte [ebp - 4], 3
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], vtable.std::ios_base.0
push eax
call fcn.004f317c
add esp, 4
xor bl, bl
jmp 0x497eed
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
test edi, edi
jne 0x497d72
mov esi, 0xc000000d
jmp 0x497e1d
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0
push eax
push str.HashDigestLength
push edi
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov esi, eax
test esi, esi
jne 0x497e1d
mov esi, dword [ebp - 0x1c]
mov edx, esi
mov ecx, dword [ebp - 0x20]
sub edx, ecx
mov ebx, dword [ebp - 0x14]
cmp ebx, edx
jae 0x497db4
lea esi, [ecx + ebx]
jmp 0x497de6
jbe 0x497de9
mov eax, dword [ebp - 0x18]
sub eax, ecx
cmp ebx, eax
jbe 0x497dd1
push ecx
push ebx
lea ecx, [ebp - 0x20]
call fcn.0048eed0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
jmp 0x497de9
sub ebx, edx
je 0x497de6
push ebx
push 0
push esi
call fcn.0050cdd0
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add esi, ebx
mov dword [ebp - 0x1c], esi
push 0
sub esi, ecx
push esi
push ecx
push edi
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov esi, eax
test esi, esi
jne 0x497e10
mov eax, edi
xor edi, edi
mov dword [ebp - 0x28], edi
test eax, eax
je 0x497e1d
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
jmp 0x497e1d
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], ecx
cmovne ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], esi
test esi, esi
je 0x497eaa
call fcn.0044f060
push 1
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], str.sha_256.cpp
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x30], 0x48
call fcn.0041a580
mov edx, str.Failed_to_get_finish_hash._Error_0x
lea ecx, [ebp - 0xd8]
call fcn.0041a5e0
mov edx, 0x432150
lea ecx, [ebp - 0xd8]
call fcn.00423bd0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xd8]
call fcn.00430260
lea ecx, [ebp - 0x80]
call fcn.0044dd10
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x80], vtable.std::ios_base.0
call fcn.004f317c
add esp, 4
xor bl, bl
jmp 0x497ee5
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
mov esi, dword [esi]
cmp esi, eax
je 0x497ee3
mov ecx, esi
call fcn.0048e350
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov bl, 1
lea ecx, [ebp - 0x20]
call fcn.0048e350
test edi, edi
je 0x497ef8
push edi
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
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.0050a47b
mov esp, ebp
pop ebp
ret 0x10