Function at 0x4b4f70
Capabilities:
Create new key via cryptacquirecontext
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7978
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xdc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x51197c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov esi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004b4df0
test eax, eax
jne 0x4b5008
mov esi, esp
push str.HPCasl
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 8
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 1
mov esi, esp
push 0x10
push 1
push 0x4dd940
mov edi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4b50b1
push 0x10
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004b81e1
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004b4bd0
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xb8], ecx
push 0x4f3858
lea edx, [ebp - 0xb8]
push edx
call fcn.004b838e
jmp 0x4b50c7
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
je 0x4b510a
mov byte [ebp - 4], 3
mov esi, esp
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.004b81e1
jmp 0x4b50fc
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
je 0x4b5235
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 5
mov esi, esp
push 8
push 1
push 0x4dd998
mov edi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4b51a1
push 8
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004b81e1
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004b4bd0
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xbc], eax
push 0x4f3858
lea ecx, [ebp - 0xbc]
push ecx
call fcn.004b838e
jmp 0x4b5213
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jne 0x4b522a
cmp dword [ebp - 0x1c], 5
jl 0x4b5122
cmp dword [ebp - 0x18], 0
jne 0x4b5235
jmp 0x4b54c5
mov esi, esp
lea ecx, [ebp - 0x94]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x4b525a
jmp 0x4b54c5
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
add ecx, 1
push ecx
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
jne 0x4b5289
jmp 0x4b54c5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 9
mov esi, esp
push 0x4dd9f0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x68], 0
jne 0x4b52e3
mov dword [ebp - 0xc4], str.Failed_to_open_signature_file_for_Signature_Validation.
push 0x4f388c
lea edx, [ebp - 0xc4]
push edx
call fcn.004b838e
jmp 0x4b52ed
mov dword [ebp - 0x9c], 1
jmp 0x4b532a
mov dword [ebp - 4], 0
cmp dword [ebp - 0x9c], 0
jne 0x4b5344
cmp dword [ebp - 0x1c], 5
jl 0x4b529a
cmp dword [ebp - 0x68], 0
jne 0x4b534f
jmp 0x4b54c5
mov esi, esp
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x58]
push edx
push 1
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x5c], eax
mov esi, esp
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.MSVCR80.dll_ferror]
add esp, 4
cmp esi, esp
call fcn.004b81e1
test eax, eax
je 0x4b5391
jmp 0x4b54c5
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xac], 0
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004b4ac0
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jl 0x4b53e2
cmp dword [ebp - 0x4c], 0
jne 0x4b53e7
jmp 0x4b54c5
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004b5760
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jge 0x4b5416
jmp 0x4b54c5
mov dword [ebp - 0x1c], 0
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
cmp esi, esp
call fcn.004b81e1
test eax, eax
je 0x4b544d
mov dword [ebp - 0x60], 1
jmp 0x4b5471
mov dword [ebp - 0x60], 0
mov esi, esp
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.004b81e1
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x60], 0
jne 0x4b547d
cmp dword [ebp - 0x1c], 5
jl 0x4b541d
cmp dword [ebp - 0x60], 0
jne 0x4b5492
mov eax, dword [ebp - 0xa4]
add eax, 1
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0x4c], 0
je 0x4b54b2
mov esi, esp
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x60], 0
jne 0x4b54c5
cmp dword [ebp - 0xa0], 0
jge 0x4b53af
cmp dword [ebp - 0x68], 0
je 0x4b54e1
mov esi, esp
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.004b81e1
cmp dword [ebp - 0x54], 0
je 0x4b54ff
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
push ecx
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
cmp dword [ebp - 0x4c], 0
je 0x4b551f
mov esi, esp
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x40], 0
je 0x4b553f
mov esi, esp
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x34], 0
je 0x4b557b
mov byte [ebp - 4], 0xb
mov esi, esp
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.004b81e1
jmp 0x4b556d
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0xd
mov esi, esp
push 0x10
push 1
push 0x4dda68
mov edi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4b55fa
push 0x10
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004b81e1
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004b4bd0
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xcc], ecx
push 0x4f3858
lea edx, [ebp - 0xcc]
push edx
call fcn.004b838e
jmp 0x4b5609
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
je 0x4b564c
mov byte [ebp - 4], 0xf
mov esi, esp
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.004b81e1
jmp 0x4b563e
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp esi, esp
call fcn.004b81e1
mov eax, dword [ebp - 0xd0]
push edx
mov ecx, ebp
push eax
lea edx, [0x4b56a8]
call fcn.004b8204
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xdc
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 8