Function at 0x537720
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.00537ab8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0x20
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5377a7
add eax, 8
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x5377d2
push 0x19
push 0x4396e30
push 6
call fcn.005769b1
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x5377e2
push ebx
call fcn.005769c9
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov eax, str.HashDigestLength
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00537ab8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x537838
push ebx
call fcn.005769c9
add esp, 4
mov dword [ebp - 0x34], esp
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x537857
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x537881
push 0x5b
push 0x4396e30
push 6
call fcn.005769b1
add esp, 0xc
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x537891
push ebx
call fcn.005769c9
add esp, 4
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.00578e70
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5378c4
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esp
push 0
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5378df
add eax, 8
push eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x537917
push 0xd9
push 0x4396e30
push 6
call fcn.005769b1
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x537968
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x537952
push 0x15b
push 0x4396e30
push 6
call fcn.005769b1
add esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00537d38
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
jmp 0x537a8f
push VariantClear
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x53797d
mov eax, 0x834e87
push eax
push 1
mov ebx, 0x194
call fcn.00578ea0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x5379aa
add eax, 8
push eax
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.bcrypt.dll_BCryptHashData]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x5379d4
push 0x1d4
push 0x4396e30
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5379e9
add eax, 8
push eax
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x537a13
push 0x1f8
push 0x4396e30
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x537a3f
push 0x229
push 0x4396e30
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x537a70
push 0x243
push 0x4396e30
push 6
call fcn.005769b1
add esp, 0xc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x537a8a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x537a8f
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x537aa0
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x537ab0
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8