Function at 0x4d92b0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5d7719
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x680f10]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov edi, dword [esp + 0x128]
xor ebp, ebp
cmp edi, ebp
mov esi, ecx
mov dword [esp + 0x28], esi
je 0x4d9a8f
cmp dword [esi + 0x18], ebp
je 0x4d9a8f
push 0x5fad08
lea ecx, [esp + 0x54]
call fcn.0048cd50
lea eax, [esp + 0x50]
push eax
mov ecx, esi
mov dword [esp + 0x124], ebp
call fcn.004b7a60
cmp dword [esp + 0x6c], 0x10
mov ebx, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x120], 0xffffffff
mov dword [esp + 0x50], 0x5f1558
jb 0x4d9359
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004274fc
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebp
mov byte [esp + 0x58], 0
mov dword [esp + 0x50], 0x5f13d0
je 0x4d9a8f
mov ebx, dword [esi + 0x1c]
cmp ebx, 0xffffffff
mov eax, dword [esi + 0x20]
mov dword [esp + 0x3c], eax
je 0x4d9a8f
cmp eax, 0xffffffff
je 0x4d9a8f
push 0x5fad14
lea ecx, [esp + 0x84]
call fcn.0048cd50
lea edx, [esp + 0x80]
push edx
mov ecx, esi
mov dword [esp + 0x124], 1
call fcn.004b7a90
lea ecx, [esp + 0x80]
mov ebp, eax
mov dword [esp + 0x120], 0xffffffff
call fcn.004b36e0
test ebp, ebp
je 0x4d9a8f
mov eax, dword [esi + 0x24]
cmp byte [esp + 0x12c], 0
mov byte [eax + 0xc], 1
mov ecx, dword [esi + 0x24]
mov byte [ecx + 0xd], 0
mov eax, dword [esi + 0x24]
sete dl
mov byte [eax + 0xf], dl
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
push 0
cdq
push 0
push edx
mov edx, dword [ecx + 0x14]
lea esi, [edi + 4]
push eax
push esi
call edx
mov ecx, ebp
call fcn.004b57d0
mov eax, dword [eax + 0x14]
mov edx, dword [edi]
lea ebp, [eax + eax]
mov dword [esp + 0x7c], eax
lea eax, [ebx + ebp + 2]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov edx, dword [esp + 0x2c]
mov ecx, 0xfffffffe
sub ecx, ebp
mov edi, eax
sub ecx, ebx
add edi, ecx
push edi
push edx
push ebx
lea eax, [esp + 0xbc]
push str.__0__010lu__010lu__010lu
push eax
call fcn.005b8727
lea eax, [esp + 0xc4]
add esp, 0x14
lea ebp, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d9470
mov ecx, dword [esi]
sub eax, ebp
xor ebp, ebp
push ebp
push eax
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0xb8]
push edx
push esi
call eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x40]
push 0x5fad3c
mov ecx, ebp
call fcn.004b5800
push eax
call fcn.0048b250
add esp, 8
test al, al
je 0x4d96c2
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x48]
push edx
mov edx, dword [ecx + 0x18]
xor ebp, ebp
lea eax, [esp + 0x50]
push eax
push ebp
push 1
push edx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], ebp
call dword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
test eax, eax
je 0x4d9a76
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
push 0x8004
push ecx
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4d96ac
push ebx
call fcn.00427501
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4d9554
mov edx, dword [esi]
xor ecx, ecx
push ecx
push ecx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push 0
push ebx
push ebp
push esi
call edx
mov eax, dword [esp + 0x24]
push 0
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebp
call fcn.004274fc
add esp, 4
push edi
call fcn.00427501
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4d959a
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
push 0
cdq
push 0
push edx
mov edx, dword [ecx + 0x14]
push eax
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
push 0
push edi
push ebp
push esi
call ecx
mov edx, dword [esp + 0x24]
push 0
push edi
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebp
call fcn.004274fc
add esp, 4
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push ecx
push edx
mov dword [esp + 0x38], 0
call ebp
test eax, eax
je 0x4d96a1
mov eax, dword [esp + 0x20]
push eax
call fcn.00427501
mov edi, eax
add esp, 4
test edi, edi
je 0x4d96a1
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push edi
push 0
push 0
push edx
push eax
call ebp
test eax, eax
je 0x4d9698
mov ebp, dword [esp + 0x20]
xor eax, eax
test ebp, 0xfffffffe
jbe 0x4d9635
lea ebx, [ebx]
mov cl, byte [eax + edi]
sub ebp, eax
mov dl, byte [edi + ebp - 1]
mov byte [eax + edi], dl
mov edx, dword [esp + 0x20]
sub edx, eax
mov byte [edx + edi - 1], cl
mov ebp, dword [esp + 0x20]
mov ecx, ebp
add eax, 1
shr ecx, 1
cmp eax, ecx
jb 0x4d9610
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x34]
push eax
push 0x19
mov dword [esp + 0x3c], ebp
mov ebp, dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
push 1
mov dword [esp + 0x44], edi
call ebp
test eax, eax
je 0x4d9698
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00427501
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x4d9698
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
push 0x19
push 1
call ebp
test eax, eax
jne 0x4d9698
mov edx, dword [esp + 0x18]
push edx
call fcn.004274fc
add esp, 4
mov dword [esp + 0x18], 0
push edi
call fcn.004274fc
add esp, 4
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [esp + 0x4c], 0
je 0x4d99b7
mov ecx, dword [esp + 0x48]
push 0
jmp 0x4d99b0
push 0x5fad50
mov ecx, ebp
call fcn.004b5800
push eax
call fcn.0048b250
add esp, 8
test al, al
jne 0x4d9a76
push 0x5fad64
mov ecx, ebp
call fcn.004b5800
push eax
call fcn.0048b250
add esp, 8
test al, al
je 0x4d9a76
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x44]
push eax
mov eax, dword [edx + 0x18]
xor ebp, ebp
lea ecx, [esp + 0x3c]
push ecx
push ebp
push 1
push eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebp
call dword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
test eax, eax
je 0x4d9a76
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push ebp
push 0x8004
push edx
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4d99a5
push ebx
call fcn.00427501
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4d9798
mov edx, dword [esi]
xor ecx, ecx
push ecx
push ecx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push 0
push ebx
push ebp
push esi
call edx
mov eax, dword [esp + 0x1c]
push 0
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebp
call fcn.004274fc
add esp, 4
push edi
call fcn.00427501
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4d97de
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
push 0
cdq
push 0
push edx
mov edx, dword [ecx + 0x14]
push eax
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
push 0
push edi
push ebp
push esi
call ecx
mov edx, dword [esp + 0x1c]
push 0
push edi
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebp
call fcn.004274fc
add esp, 4
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 2
push ecx
mov dword [esp + 0x4c], 0
call ebp
test eax, eax
je 0x4d9998
mov edx, dword [esp + 0x38]
push edx
call fcn.00427501
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x2c], edi
je 0x4d9998
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x3c]
push eax
push edi
push 2
push ecx
call ebp
test eax, eax
je 0x4d998f
push 0x30
lea edx, [esp + 0x84]
push 0
push edx
call fcn.0044dac0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x8c], 0x30
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
add esp, 0xc
mov dword [esp + 0x8c], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x90], 0x5fad74
mov eax, dword [ecx + 8]
push 0
mov dword [esp + 0x78], eax
mov ecx, dword [ecx + 4]
push 0
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x58]
push ecx
push 2
push 0
mov ebp, 1
lea edx, [esp + 0x94]
lea eax, [esp + 0x88]
push 0x10001
mov dword [esp + 0x68], 0x1c
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], eax
call dword [sym.imp.CRYPT32.dll_CryptMsgOpenToEncode]
mov edi, eax
test edi, edi
je 0x4d998b
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push ebp
push edx
push eax
push edi
call dword [sym.imp.CRYPT32.dll_CryptMsgUpdate]
test eax, eax
je 0x4d9984
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edi
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
je 0x4d9984
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d9984
push eax
call fcn.00427501
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x4d9984
lea edx, [esp + 0x14]
push edx
push ebp
push 0
push 2
push edi
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
jne 0x4d9984
cmp dword [esp + 0x14], eax
je 0x4d9984
push ebp
call fcn.004274fc
add esp, 4
mov dword [esp + 0x18], 0
push edi
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
mov edi, dword [esp + 0x2c]
push edi
call fcn.004274fc
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor ebp, ebp
cmp dword [esp + 0x3c], ebp
je 0x4d99b7
mov ecx, dword [esp + 0x34]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [esp + 0x18], 0
je 0x4d9a76
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x24]
mov ebp, dword [esp + 0x7c]
mov byte [eax + 0xd], 1
cmp dword [esp + 0x14], ebp
ja 0x4d9a69
mov ecx, dword [esi]
push 0
mov eax, ebx
cdq
push 0
push edx
mov edx, dword [ecx + 0x14]
push eax
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
push 0
push 1
push 0x5fad8c
push esi
call ecx
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x4d9a3a
mov edx, dword [esp + 0x18]
movzx eax, byte [edi + edx]
push eax
lea ecx, [esp + 0x74]
push str._02X
push ecx
call fcn.005b8727
mov edx, dword [esi]
mov ecx, dword [edx + 0x10]
add esp, 0xc
push 0
push 2
lea eax, [esp + 0x78]
push eax
push esi
call ecx
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x4d9a05
cmp edi, ebp
jae 0x4d9a58
sub ebp, edi
mov edi, ebp
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 0
push 2
push 0x5fad98
push esi
call eax
sub edi, 1
jne 0x4d9a42
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
push 0
push 1
push 0x5fad9c
push esi
call edx
mov eax, dword [esp + 0x18]
push eax
call fcn.004274fc
add esp, 4
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4d9a88
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [esi + 0x18], 0
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0044abb9
add esp, 0x110
ret 8