Function at 0x42c210
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x45a6c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
mov esi, ecx
mov ecx, dword [esp + 0x7c]
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], edx
cmp eax, ebx
je 0x42c6e1
cmp ecx, ebx
je 0x42c6e1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x6c], 2
lea ecx, [esp + 0x20]
call fcn.00406fc0
mov bl, 3
mov byte [esp + 0x6c], bl
push edi
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0042c0e0
mov byte [esp + 0x6c], 4
push eax
lea ecx, [esp + 0x24]
call fcn.00406800
mov byte [esp + 0x6c], bl
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov ecx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
push str.Microsoft_Strong_Cryptographic_Provider
push ecx
lea edx, [esp + 0x2c]
push edx
call ebp
test eax, eax
jne 0x42c2e6
call fcn.00412090
mov dword [esp + 0x14], eax
jmp 0x42c2ee
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x42c3b3
push 8
push 1
push 0
push str.keyContainer
lea eax, [esp + 0x44]
push eax
call ebp
test eax, eax
je 0x42c3b3
push 0
push 1
push str.Microsoft_Strong_Cryptographic_Provider
push 0
lea ecx, [esp + 0x2c]
push ecx
call ebp
test eax, eax
jne 0x42c452
call fcn.00412090
mov ebp, eax
test ebp, ebp
je 0x42c452
push str.Provider_initialisation_failed
lea ecx, [esp + 0x18]
call fcn.00406e00
mov byte [esp + 0x6c], 5
push ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0042bfe0
mov byte [esp + 0x6c], 6
push eax
mov ecx, edi
call fcn.00406880
mov byte [esp + 0x6c], 5
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x6c], bl
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x6c], 2
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0042bd60
jmp 0x42c730
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x42c452
push str.Provider_initialisation_failed
lea ecx, [esp + 0x18]
call fcn.00406e00
mov byte [esp + 0x6c], 7
push ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0042bfe0
mov byte [esp + 0x6c], 8
push eax
mov ecx, edi
call fcn.00406800
mov byte [esp + 0x6c], 7
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x6c], bl
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x6c], 2
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42c730
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x42c445
call fcn.00412090
jmp 0x42c730
mov dword [esp + 0x1c], 0
jmp 0x42c730
lea ecx, [esp + 0x28]
call fcn.0042bdd0
mov byte [esp + 0x6c], 9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x8004
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x42c4e8
call fcn.00412090
mov ebp, eax
test ebp, ebp
je 0x42c4e8
push str.Hash_initialisation_failed
lea ecx, [esp + 0x18]
call fcn.00406e00
mov byte [esp + 0x6c], 0xa
push ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0042bfe0
mov byte [esp + 0x6c], 0xb
push eax
mov ecx, edi
call fcn.00406800
mov byte [esp + 0x6c], 0xa
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x6c], 9
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x6c], bl
lea ecx, [esp + 0x28]
call fcn.0042be20
jmp 0x42c38f
lea ecx, [esp + 0x38]
push ecx
call fcn.0042bca0
add esp, 4
push 0
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x30]
call fcn.0042bb40
lea ecx, [esp + 0x24]
call fcn.0042be80
mov byte [esp + 0x6c], 0xc
push 1
push 0x6603
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x34]
call fcn.0042bc70
mov ebp, eax
test ebp, ebp
je 0x42c5a1
push str.Key_initialisation_failed
lea ecx, [esp + 0x18]
call fcn.00406e00
mov byte [esp + 0x6c], 0xd
push ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0042bfe0
mov byte [esp + 0x6c], 0xe
push eax
mov ecx, edi
call fcn.00406880
mov byte [esp + 0x6c], 0xd
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x6c], 0xc
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x6c], 9
lea ecx, [esp + 0x24]
call fcn.0042bed0
mov byte [esp + 0x6c], bl
lea ecx, [esp + 0x28]
call fcn.0042be20
jmp 0x42c38f
push 2
lea ecx, [esp + 0x28]
call fcn.0042bc40
mov ebp, eax
test ebp, ebp
je 0x42c5ee
push str.Key_Set_Mode_failed
lea ecx, [esp + 0x18]
call fcn.00406e00
mov byte [esp + 0x6c], 0xf
push ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0042bfe0
mov byte [esp + 0x6c], 0x10
push eax
mov ecx, edi
call fcn.00406880
mov byte [esp + 0x6c], 0xf
jmp 0x42c56a
push 1
lea ecx, [esp + 0x28]
call fcn.0042bc10
mov ebp, eax
test ebp, ebp
je 0x42c63b
push str.Key_Set_Padding_failed
lea ecx, [esp + 0x18]
call fcn.00406e00
mov byte [esp + 0x6c], 0x11
push ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0042bfe0
mov byte [esp + 0x6c], 0x12
push eax
mov ecx, edi
call fcn.00406880
mov byte [esp + 0x6c], 0x11
jmp 0x42c56a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x78]
push 0x492c40
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.0042bb90
mov ebp, eax
test ebp, ebp
je 0x42c6a3
push str.Decryption_failed
lea ecx, [esp + 0x18]
call fcn.00406e00
mov byte [esp + 0x6c], 0x13
push ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0042bfe0
mov byte [esp + 0x6c], 0x14
push eax
mov ecx, edi
call fcn.00406880
mov byte [esp + 0x6c], 0x13
lea ecx, [esp + 0x2c]
jmp 0x42c56e
mov byte [esp + 0x6c], 9
lea ecx, [esp + 0x24]
call fcn.0042bed0
mov byte [esp + 0x6c], bl
lea ecx, [esp + 0x28]
call fcn.0042be20
mov byte [esp + 0x6c], 2
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0042bd60
mov al, 1
jmp 0x42c732
push str.data_is_null
lea ecx, [esp + 0x18]
call fcn.00406e00
mov dword [esp + 0x6c], ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0042bf30
mov byte [esp + 0x6c], 1
push eax
mov ecx, edi
call fcn.00406800
mov byte [esp + 0x6c], 0
lea ecx, [esp + 0x2c]
call fcn.00406ed0
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00406ed0
xor al, al
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00442851
add esp, 0x5c
ret 0x14