Function at 0x46b51a
Capabilities:
Encrypt data using aes via winapi
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt

Disassembly:
push ebp
sub esp, 0x274
lea ebp, [esp - 4]
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0x274], eax
push 0x118
mov eax, 0x535a7c
call fcn.004f41f7
mov eax, dword [ebp + 0x288]
mov ebx, dword [ebp + 0x280]
mov esi, ecx
xor edi, edi
lea ecx, [ebp + 0x94]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], edi
call fcn.0049c418
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x10c], edi
je 0x46b58e
lea ecx, [ebp + 0x94]
mov byte [ebp - 4], 0
call fcn.0049c421
xor eax, eax
inc eax
jmp 0x46b5ae
cmp dword [esi + 0x108], edi
jne 0x46b5d3
mov dword [esi + 4], 0xa
lea ecx, [ebp + 0x94]
mov byte [ebp - 4], 0
call fcn.0049c421
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x274]
xor ecx, ebp
call fcn.004f41b5
add ebp, 0x278
leave
ret 0x10
push dword [esi + 0x188]
mov ecx, esi
push dword [esi + 0x184]
push dword [esi + 0x134]
push dword [esi + 0x130]
push 1
call fcn.0046b4a3
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x46b684
push dword [esi + 0x188]
mov ecx, esi
push dword [esi + 0x184]
push dword [esi + 0x134]
push dword [esi + 0x130]
call fcn.00469d9e
mov dword [ebp - 0x1c], eax
mov eax, 0x6603
cmp dword [esi + 0x130], eax
jne 0x46b67a
cmp dword [esi + 0x134], 0xc0
jne 0x46b67a
push dword [esi + 0x188]
mov edi, 0xa8
push dword [esi + 0x184]
mov ecx, esi
push edi
push eax
push 1
call fcn.0046b4a3
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x46b684
push dword [esi + 0x188]
mov ecx, esi
push dword [esi + 0x184]
push edi
push dword [esi + 0x130]
call fcn.00469d9e
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46b59d
lea eax, [ebp + 0x240]
push eax
push dword [ebp + 0x284]
lea ecx, [ebp + 0x94]
push ebx
call fcn.0049d846
lea eax, [ebp - 0x18]
mov ebx, 0x800e
push eax
mov ecx, esi
lea eax, [esi + 0x13c]
cmp dword [esi + 0x184], ebx
jne 0x46b7da
push ebx
push dword [ebp - 0x1c]
push 0
push 0
push dword [ebp + 0x28c]
push dword [ebp - 0x24]
push dword [esi + 0x138]
push eax
push 0x14
lea eax, [ebp + 0x240]
push eax
call fcn.00469821
test eax, eax
je 0x46b59d
mov ecx, dword [esi + 0x134]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + 0x17c]
neg eax
sbb eax, eax
and eax, 0xfffffff4
add eax, 0x10
shl ecx, 0x10
or eax, ecx
or eax, 1
push eax
push dword [ebp - 0x18]
push dword [esi + 0x130]
push dword [ebp - 0x1c]
call edi
mov ecx, dword [esi + 0x134]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi + 0x17c]
neg eax
sbb eax, eax
and eax, 0xfffffff4
add eax, 0x10
shl ecx, 0x10
or eax, ecx
push eax
push dword [ebp - 0x18]
push dword [esi + 0x130]
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x46b825
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esi + 0x17c]
and dword [ebp - 0x18], 0
test eax, eax
je 0x46b785
push eax
push dword [esi + 0x180]
mov ecx, esi
push dword [ebp - 0x28]
call fcn.00469b22
test eax, eax
je 0x46bb66
mov eax, dword [esi + 0x184]
cmp eax, ebx
jne 0x46b831
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x1c]
lea eax, [esi + 0x190]
push dword [esi + 0x1e4]
mov ecx, esi
push dword [esi + 0x1e0]
push dword [ebp + 0x28c]
push dword [ebp - 0x24]
push dword [esi + 0x18c]
push eax
push 0x14
lea eax, [ebp + 0x240]
push eax
call fcn.00469821
test eax, eax
je 0x46bb66
jmp 0x46b896
push 0x8004
push dword [ebp - 0x1c]
push dword [esi + 0x138]
push eax
push 0x14
lea eax, [ebp + 0x240]
push eax
call fcn.004696cf
test eax, eax
je 0x46b59d
cmp dword [ebp - 0x24], 0
je 0x46b6e8
push 0
push dword [ebp + 0x28c]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x46b6e8
mov dword [esi + 4], 0xb
jmp 0x46bb66
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x1c]
lea eax, [esi + 0x190]
push dword [esi + 0x18c]
mov ecx, esi
push eax
push 0x14
lea eax, [ebp + 0x240]
push eax
call fcn.004696cf
test eax, eax
je 0x46bb66
xor edi, edi
cmp dword [ebp - 0x24], edi
je 0x46b87c
push edi
push dword [ebp + 0x28c]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x46b825
push edi
push dword [esi + 0x1e4]
push dword [esi + 0x1e0]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x46b825
mov eax, dword [esi + 0x1d0]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x1d4]
push 0
push 1
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x46bada
lea ecx, [ebp]
call fcn.00407118
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x57
jne 0x46bb49
lea ecx, [ebp]
call fcn.0045b8a2
test eax, eax
je 0x46bb49
push str.Trying_to_fix_Win7_bug__KB981118_
push 0x5989a0
call fcn.0045bb6b
cmp dword [esi + 0x130], 0x6610
pop ecx
pop ecx
jne 0x46bada
cmp dword [ebp - 0x20], 0
mov dword [esi + 4], 0xb
je 0x46bb78
push 0x10
pop edi
push edi
lea eax, [ebp + 0x254]
push 0
push eax
call fcn.004f42d0
add esp, 0xc
cmp dword [esi + 0x17c], 0
mov dword [ebp - 0x14], edi
je 0x46b95c
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x254]
push eax
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x46bb66
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x200]
push eax
push 0
push 8
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x46bb66
cmp dword [ebp - 0x14], 0x28
jb 0x46bb66
cmp dword [ebp + 0x208], 0x20
jne 0x46bb66
mov eax, dword [esi + 0x1d0]
add eax, edi
push eax
call fcn.004b6e34
mov edi, eax
pop ecx
test edi, edi
je 0x46bb66
push dword [esi + 0x1d0]
push dword [esi + 0x1d4]
push edi
call fcn.004f4490
push 0x100
lea eax, [ebp + 0x20c]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00402ed5
add esp, 0x18
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x1d0]
jae 0x46ba79
lea eax, [ebp + 0x264]
push eax
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0040344c
mov eax, dword [ebp + 0x254]
xor dword [ebp + 0x264], eax
mov eax, dword [ebp + 0x258]
xor dword [ebp + 0x268], eax
mov eax, dword [ebp + 0x25c]
xor dword [ebp + 0x26c], eax
mov eax, dword [ebp + 0x260]
xor dword [ebp + 0x270], eax
add esp, 0xc
push 0x10
lea eax, [ebp + 0x264]
push eax
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
call fcn.004f4490
mov eax, dword [esi + 0x1d4]
add eax, dword [ebp - 0x14]
push 0x10
push eax
lea eax, [ebp + 0x254]
push eax
call fcn.004f4490
add esp, 0x18
add dword [ebp - 0x14], 0x10
jmp 0x46b9e6
mov eax, dword [esi + 0x1d0]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
mov ecx, esi
call fcn.00469ad4
test eax, eax
jne 0x46baa8
test edi, edi
je 0x46bb66
push edi
call fcn.004b6e29
pop ecx
jmp 0x46bb66
push dword [ebp - 0x14]
push edi
push dword [esi + 0x1d4]
call fcn.004f4490
add esp, 0xc
test edi, edi
je 0x46bac5
push edi
call fcn.004b6e29
pop ecx
and dword [esi + 4], 0
push str.The_bug_was_successfully_overstepped
push 0x5989a0
call fcn.0045bb6b
pop ecx
pop ecx
xor eax, eax
cmp dword [esi + 0x184], ebx
push 0
setne al
dec eax
and eax, 0x2c
add eax, 0x14
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x1c0]
push eax
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x46b825
mov eax, dword [ebp - 0x2c]
cmp eax, dword [esi + 0x1d8]
jne 0x46bb5f
push eax
lea eax, [ebp + 0x1c0]
push eax
push dword [esi + 0x1dc]
call fcn.004f7aa1
add esp, 0xc
test eax, eax
jne 0x46bb5f
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10c], 1
mov dword [esi + 0x1d0], eax
jmp 0x46bb66
call edi
sub eax, 0x80090005
neg eax
sbb eax, eax
and eax, 5
add eax, 6
mov dword [esi + 4], eax
jmp 0x46bb66
mov dword [esi + 4], 6
xor edi, edi
cmp dword [ebp - 0x20], edi
je 0x46bb78
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x46bb7a
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x46bb88
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x28], edi
je 0x46bb96
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x1c], edi
je 0x46bba5
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [esi + 0x10c]
lea ecx, [ebp + 0x94]
mov byte [ebp - 4], 0
call fcn.0049c421
mov eax, esi
jmp 0x46b5ae