Function at 0x1146724
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push 0xf0
mov eax, 0x11c1a34
call fcn.010b143d
mov eax, dword [ebp + 8]
push 0x1013ed4
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
mov dword [ebp - 0x30], ebx
cmp eax, ebx
je 0x1146756
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], ebx
jne 0x1146797
push 0x1013e9c
call fcn.011565b2
push eax
push 0x2d6
mov eax, 0x1002b6a
push eax
push eax
push fcn.011569b2
lea eax, [ebp - 0xfc]
push eax
call fcn.01035074
push 0x11c9264
lea eax, [ebp - 0xfc]
push eax
call sub.msvcrt.dll__CxxThrowException
push 0x1013e80
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp eax, ebx
je 0x11467b0
mov esi, eax
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 1
cmp esi, ebx
jne 0x11467ca
push 0x1013e58
call fcn.011565b2
push eax
push 0x2df
jmp 0x114676e
push 0x1013e40
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x11467f2
push 0x1013e14
call fcn.011565b2
push eax
push 0x2e5
jmp 0x114676e
mov eax, dword [ebp - 0x30]
push 0x40
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ebp - 0x40], ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x94], esi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x74], eax
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x9c]
inc esi
push eax
mov dword [ebp - 0x9c], 0x44
mov dword [ebp - 0x68], 0x11462bf
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x78], esi
call dword [ebp - 0x2c]
test eax, eax
jne 0x114686c
lea eax, [ebp - 0x3c]
push eax
call fcn.0110e40e
lea eax, [ebp - 0x30]
push eax
call fcn.01141751
mov al, bl
jmp 0x1146b70
push dword [ebp - 0x40]
lea eax, [edi + 0xa4]
push eax
call fcn.01145953
mov eax, dword [edi + 0x94]
sub eax, ebx
je 0x11468e8
dec eax
dec eax
jne 0x1146949
cmp dword [0x11fc35c], ebx
je 0x1146949
mov al, byte [0x11fc360]
cmp al, 4
jae 0x11468aa
cmp al, bl
jne 0x1146949
mov eax, dword [0x11fc348]
mov ecx, dword [0x11fc34c]
mov edi, 0x80000000
and eax, esi
and ecx, edi
or eax, ecx
je 0x1146946
mov eax, dword [0x11fc350]
mov ecx, eax
and ecx, esi
mov esi, dword [0x11fc354]
mov edx, esi
and edx, edi
cmp ecx, eax
jne 0x1146946
cmp edx, esi
jne 0x1146946
push 0x1002170
jmp 0x1146935
cmp dword [0x11fc35c], ebx
je 0x1146949
mov al, byte [0x11fc360]
cmp al, 4
jae 0x11468fd
cmp al, bl
jne 0x1146949
mov eax, dword [0x11fc348]
mov ecx, dword [0x11fc34c]
mov edi, 0x80010000
and eax, esi
and ecx, edi
or eax, ecx
je 0x1146946
mov eax, dword [0x11fc350]
mov ecx, eax
and ecx, esi
mov esi, dword [0x11fc354]
mov edx, esi
and edx, edi
cmp ecx, eax
jne 0x1146946
cmp edx, esi
jne 0x1146946
push 0x10020b0
push dword [0x11fc334]
push dword [0x11fc330]
call fcn.010492f6
mov edi, dword [ebp - 0x24]
lea esi, [edi + 0xa4]
mov eax, dword [esi]
neg eax
sbb eax, eax
and eax, dword [fcn.0107a9df]
cmp eax, ebx
je 0x1146b5c
lea eax, [edi + 0xa8]
push eax
call fcn.01147447
cmp eax, ebx
jge 0x1146983
push 0x1013de4
push eax
push 0x30d
jmp 0x114676e
mov eax, dword [esi]
add edi, 0xc4
push edi
push eax
call fcn.011474b5
cmp eax, ebx
jge 0x11469a6
push 0x1013da0
push eax
push 0x314
jmp 0x114676e
mov esi, dword [esi]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x10001
push esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
test eax, eax
je 0x1146b3b
cmp dword [ebp - 0x34], 0xffffffff
jne 0x1146a9a
mov edi, dword [ebp - 0x2c]
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push 0xa
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
mov byte [ebp - 0x1c], 1
mov byte [ebp - 0x1b], 2
mov byte [ebp - 0x1a], 3
mov byte [ebp - 0x19], 4
mov byte [ebp - 0x18], 5
mov byte [ebp - 0x17], 6
mov byte [ebp - 0x16], 7
mov byte [ebp - 0x15], 8
mov byte [ebp - 0x14], 9
mov byte [ebp - 0x13], 0xa
mov dword [ebp - 0x38], ebx
call sub.ncrypt.dll_NCryptSignHash
mov esi, eax
cmp esi, ebx
jne 0x1146a83
push dword [ebp - 0x38]
lea ecx, [ebp - 0x58]
call fcn.0103fe03
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x54]
mov dword [ebp - 0x24], ebx
push 0xa
push eax
push ebx
push edi
call sub.ncrypt.dll_NCryptSignHash
mov esi, eax
cmp esi, 0x80090027
jne 0x1146a79
push 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x54]
mov dword [ebp - 0x28], 0x1013d90
push 0xa
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call sub.ncrypt.dll_NCryptSignHash
mov esi, eax
lea ecx, [ebp - 0x58]
call fcn.0112c1e2
cmp esi, ebx
jge 0x1146a93
push esi
call fcn.0114563b
test al, al
je 0x1146853
mov bl, 1
jmp 0x1146853
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.0114599c
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1146b25
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x1146b25
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0103f619
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x24]
call esi
lea ecx, [ebp - 0x20]
test eax, eax
je 0x1146b1c
call fcn.0112c1e2
lea eax, [ebp - 0x24]
push eax
call fcn.011456ec
jmp 0x1146a93
mov byte [ebp - 4], 2
call fcn.0112c1e2
call fcn.011565b2
mov esi, eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.011456ec
jmp 0x1146b42
call fcn.011565b2
mov esi, eax
push esi
call fcn.0114563b
test al, al
je 0x1146b5c
push 0x1013d70
push esi
push 0x35e
jmp 0x114676e
lea eax, [ebp - 0x3c]
push eax
call fcn.0110e40e
lea eax, [ebp - 0x30]
push eax
call fcn.01141751
xor al, al
call fcn.010b14cf
ret 4