Function at 0x419e50
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d9c0
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x46b074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x18], 0
je 0x41a150
lea edx, [ebx + 8]
lea ecx, [ebp - 0x60]
call fcn.0041b3d0
mov esi, eax
mov ecx, 0x46bad8
push esi
call fcn.0040e850
lea ecx, [esi + 0x18]
push ecx
mov ecx, 0x46baf0
call fcn.0040e850
mov ecx, dword [esi + 0x30]
mov dword [0x46bb08], ecx
lea ecx, [ebp - 0x60]
mov eax, dword [esi + 0x34]
mov dword [0x46bb0c], eax
call fcn.004048d0
cmp dword [0x46bb08], 0
je 0x41a150
cmp dword [0x46bb0c], 0
je 0x41a150
push ecx
lea ecx, [ebp - 0x58]
call fcn.00404780
add esp, 4
cmp dword [ebp - 0x48], 0
je 0x41a148
cmp dword [ebp - 0x30], 0
je 0x41a148
lea eax, [ebp - 0x40]
push eax
push 0x46bad8
lea eax, [ebp - 0x28]
push eax
call fcn.0041a180
push eax
lea ecx, [ebp - 0x40]
call fcn.0040e850
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x419f52
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419f48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a171
push edx
push ecx
call fcn.00422d4e
add esp, 8
cmp dword [ebp - 0x48], 0
je 0x41a148
cmp dword [ebp - 0x30], 0
je 0x41a148
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x98]
call fcn.0041b3d0
push eax
mov ecx, 0x46ba10
call fcn.0041a3d0
lea ecx, [ebp - 0x98]
call fcn.004048d0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
mov ecx, 0x46ba10
push eax
call fcn.00409ab0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
mov ecx, 0x46ba28
push eax
call fcn.00409ab0
cmp dword [0x46ba40], 0
je 0x41a148
cmp dword [0x46ba44], 0
je 0x41a148
cmp dword [0x46ba20], 0
je 0x41a148
cmp dword [0x46ba38], 0
je 0x41a148
mov edx, 0x46bac0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0xa0], 0
call fcn.004054f0
mov eax, dword [0x46ba44]
mov edi, dword [ebp - 0x18]
test eax, eax
jne 0x41a01b
xor esi, esi
jmp 0x41a04b
push 0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], edi
push ecx
push 0
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
test edi, edi
je 0x41a0ad
test esi, esi
je 0x41a0ad
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00404960
mov ecx, dword [0x46ba44]
mov dword [ebp - 0xa4], edi
test ecx, ecx
je 0x41a0ad
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0xa4]
push esi
push edx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, dword [ebp - 0xa0]
test eax, eax
movzx ecx, cl
mov edx, 1
setne al
test al, al
cmovne ecx, edx
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41a0e1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a0d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a176
push edx
push ecx
call fcn.00422d4e
add esp, 8
cmp byte [ebp - 0xa0], 0
je 0x41a148
cmp dword [0x46f1c0], 0
jne 0x41a13a
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x46f1c0
call esi
test eax, eax
jne 0x41a13a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x41a148
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x46f1c0
call esi
test eax, eax
setne al
test al, al
je 0x41a148
lea ecx, [ebp - 0x58]
mov byte [ebx + 0x20], 1
call fcn.004048d0
jmp 0x41a155
lea ecx, [ebp - 0x58]
call fcn.004048d0
call fcn.0041b3b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422d0d
mov esp, ebp
pop ebp
ret
call fcn.0043d6f9
call fcn.0043d6f9
int3