Function at 0x480116
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf0000000
push 1
mov dword [esp + 0x34], ecx
mov esi, edx
xor ecx, ecx
mov dword [esp + 0x2c], esi
push ecx
mov dword [eax], ecx
mov ebx, ecx
push ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], ecx
push eax
mov edi, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x48017d
call fcn.004c73cc
mov esi, eax
push esi
push 0x1f8a0139
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x48043c
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8004
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4801a8
call fcn.004c73cc
mov esi, eax
push esi
push 0x1f8f0139
jmp 0x480172
test esi, esi
je 0x48040d
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
and dword [esp + 0x28], 0
mov edx, esi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0047ff84
mov esi, eax
test esi, esi
jne 0x480405
lea ecx, [esp + 0x30]
call fcn.00480070
test eax, eax
je 0x4803f8
mov eax, dword [esp + 0x30]
dec eax
sub eax, 1
je 0x4802bc
sub eax, 1
je 0x48023f
push esi
push 8
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x480391
push esi
push dword [esp + 0x38]
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x480359
call fcn.004c73cc
mov esi, eax
push esi
push 0x1ff20139
jmp 0x48041a
cmp dword [esp + 0x18], 0
jne 0x4803cb
test edi, edi
je 0x4803be
lea eax, [esp + 0x18]
xor esi, esi
push eax
mov eax, dword [edi + 0xc]
inc esi
add eax, 0x38
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
je 0x4803af
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x40]
push dword [esp + 0x20]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x4803a0
mov ecx, 0x981
mov dword [esp + 0x28], esi
call fcn.004cf8b9
push eax
call fcn.004c5942
mov dword [esp], 0x406520
call fcn.004c5942
pop ecx
jmp 0x480359
cmp dword [0x51996c], 0
jne 0x4802ce
cmp dword [0x519984], 0
je 0x4802f0
push 0xffffffffffffffff
push 0
push 0
push dword [esp + 0x40]
xor ecx, ecx
xor edx, edx
push dword [esp + 0x20]
inc ecx
call fcn.0045bba5
mov esi, eax
test esi, esi
jne 0x4803f0
test edi, edi
jne 0x4803e3
push dword [esp + 0x34]
push dword [esp + 0x14]
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov edi, eax
test edi, edi
je 0x4803d4
mov edx, dword [edi + 0xc]
lea eax, [esp + 0x20]
push eax
push 0x2000003
add edx, 0x30
call fcn.004c76e7
test eax, eax
je 0x480337
push eax
push 0x1fc10139
call dword [sym.imp.certcli.dll_Ordinal_357]
mov ecx, 0x8d3
call fcn.004cf8b9
push eax
call fcn.004c5942
mov ebx, dword [esp + 0x24]
push ebx
push 0x41d764
call fcn.004c5942
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x24]
and dword [esp + 0x10], 0
push 0xfffffffffffffff8
pop eax
sub eax, dword [esp + 0x34]
add esi, eax
mov dword [esp + 0x24], esi
jne 0x4801b0
cmp dword [esp + 0x28], 0
je 0x48040d
xor esi, esi
jmp 0x480420
call fcn.004c73cc
mov esi, eax
push esi
push 0x1fed0139
jmp 0x48041a
call fcn.004c73cc
mov esi, eax
push esi
push 0x1fe20139
jmp 0x48041a
call fcn.004c73cc
mov esi, eax
push esi
push 0x1fd70139
jmp 0x48041a
mov esi, 0x80096002
push esi
push 0x1fce0139
jmp 0x48041a
push 0
push 0x1fc90139
jmp 0x48041a
call fcn.004c73cc
mov esi, eax
push esi
push 0x1fba0139
jmp 0x48041a
mov esi, 0x800700b7
push esi
push 0x1fb10139
jmp 0x48041a
push esi
push 0x1fab0139
jmp 0x48041a
mov eax, 0x8007000d
push eax
push 0x1f9d0139
jmp 0x480418
push esi
push 0x1f980139
jmp 0x48041a
mov eax, 0x8007000d
push eax
push 0x1ffe0139
mov esi, eax
call dword [sym.imp.certcli.dll_Ordinal_357]
test ebx, ebx
je 0x48042b
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0
je 0x48043c
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x18], 0
je 0x48044d
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [esp + 0x14], 0
je 0x48045e
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [esp + 0x1c], 0
je 0x480471
push 0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4