Function at 0x4981b0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp ebx, 0x14
jne 0x4981ce
mov edi, dword [0x521bc8]
mov eax, str.SHA1
jmp 0x498202
cmp ebx, 0x20
jne 0x4981e0
mov edi, dword [0x521bcc]
mov eax, str.SHA256
jmp 0x498202
cmp ebx, 0x30
jne 0x4981f2
mov edi, dword [0x521bd0]
mov eax, str.SHA384
jmp 0x498202
cmp ebx, 0x40
jne 0x498233
mov edi, dword [0x521bd4]
mov eax, str.SHA512
mov esi, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x24], eax
call fcn.0042da5e
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
je 0x498233
push ebx
call fcn.0042da5e
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x49823d
push dword [ebp + 0xc]
call fcn.0041d2d7
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.00418f20
add esp, 0xc
lea eax, [ebp - 0x18]
push 0
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push str.HashDigestLength
push edi
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x4982d4
cmp dword [ebp - 0x14], ebx
jne 0x4982d4
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 8]
push eax
push str.ObjectLength
push edi
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x4982d4
push dword [ebp - 8]
call fcn.0042da5e
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4982d4
push 0
push 0
push 0
push dword [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jns 0x498330
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
test ecx, ecx
je 0x4982cb
mov eax, edx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4982c0
push edx
call fcn.0041d2d7
add esp, 4
or edi, 0xffffffff
test esi, esi
je 0x4982eb
mov eax, dword [ebp + 0xc]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x4982e0
push dword [ebp + 0xc]
call fcn.0041d2d7
add esp, 4
test edi, edi
je 0x49839f
test ebx, ebx
je 0x4983cb
mov eax, dword [ebp - 4]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ebx, 1
jne 0x498310
push dword [ebp - 4]
call fcn.0041d2d7
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 0
push dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
push edi
call sub.bcrypt.dll_BCryptHashData
xor ecx, ecx
test eax, eax
push 0
push esi
push dword [ebp - 4]
setns cl
dec ecx
push edi
mov dword [ebp - 0x10], ecx
call sub.bcrypt.dll_BCryptFinishHash
push edi
mov esi, eax
call sub.bcrypt.dll_BCryptDestroyHash
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
test eax, eax
je 0x498380
mov ecx, edx
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x498375
push edx
call fcn.0041d2d7
xor eax, eax
add esp, 4
test esi, esi
mov esi, dword [ebp + 0x1c]
setns al
dec eax
or dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x10]
jmp 0x4982d7
mov esi, dword [ebp + 0x14]
push esi
call fcn.0042da5e
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
test edi, edi
jne 0x4983e0
test ebx, ebx
je 0x4983cb
mov eax, dword [ebp - 4]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ebx, 1
jne 0x4983c0
push dword [ebp - 4]
call fcn.0041d2d7
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0x10]
push edi
call fcn.00418f20
mov eax, dword [ebp + 0x20]
add esp, 0xc
test al, 2
mov ecx, 0
push eax
push esi
push edi
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
push ebx
push edi
cmove eax, ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call sub.bcrypt.dll_BCryptVerifySignature
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x49842b
mov ecx, edi
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub ebx, 1
jne 0x498420
push edi
call fcn.0041d2d7
mov ecx, dword [ebp + 0xc]
add esp, 4
test esi, esi
je 0x49844b
mov eax, ecx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x498440
push ecx
call fcn.0041d2d7
add esp, 4
xor eax, eax
cmp dword [ebp - 0x20], eax
setge al
pop edi
pop esi
dec eax
pop ebx
mov esp, ebp
pop ebp
ret