Function at 0x4eafa2
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, 0x1ac
lea ebp, [esp - 4]
mov eax, dword [0x665ebc]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push 0x118
mov eax, 0x5e99d2
call fcn.0059ca57
mov eax, dword [ebp + 0x1c0]
mov ebx, dword [ebp + 0x1b8]
mov esi, ecx
xor edi, edi
lea ecx, [ebp + 0x94]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
call fcn.004b0c41
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
cmp dword [esi + 0x20c], edi
je 0x4eb016
lea ecx, [ebp + 0x94]
mov byte [ebp - 4], 0
call fcn.004b0c4a
xor eax, eax
inc eax
jmp 0x4eb036
cmp dword [esi + 0x208], edi
jne 0x4eb05b
mov dword [esi + 4], 0xa
lea ecx, [ebp + 0x94]
mov byte [ebp - 4], 0
call fcn.004b0c4a
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 + 0x1ac]
xor ecx, ebp
call fcn.0059ca15
add ebp, 0x1b0
leave
ret 0x10
push dword [esi + 0x288]
mov ecx, esi
push dword [esi + 0x284]
push dword [esi + 0x234]
push dword [esi + 0x230]
push 1
call fcn.004eaf2b
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x4eb10c
push dword [esi + 0x288]
mov ecx, esi
push dword [esi + 0x284]
push dword [esi + 0x234]
push dword [esi + 0x230]
call fcn.004e9ce4
mov dword [ebp - 0x1c], eax
mov eax, 0x6603
cmp dword [esi + 0x230], eax
jne 0x4eb102
cmp dword [esi + 0x234], 0xc0
jne 0x4eb102
push dword [esi + 0x288]
mov edi, 0xa8
push dword [esi + 0x284]
mov ecx, esi
push edi
push eax
push 1
call fcn.004eaf2b
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4eb10c
push dword [esi + 0x288]
mov ecx, esi
push dword [esi + 0x284]
push edi
push dword [esi + 0x230]
call fcn.004e9ce4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4eb025
lea eax, [ebp + 0x178]
push eax
push dword [ebp + 0x1bc]
lea ecx, [ebp + 0x94]
push ebx
call fcn.004b119a
lea eax, [ebp - 0x18]
mov ebx, 0x800e
push eax
mov ecx, esi
lea eax, [esi + 0x23c]
cmp dword [esi + 0x284], ebx
jne 0x4eb262
push ebx
push dword [ebp - 0x1c]
push 0
push 0
push dword [ebp + 0x1c4]
push dword [ebp - 0x20]
push dword [esi + 0x238]
push eax
push 0x14
lea eax, [ebp + 0x178]
push eax
call fcn.004e9197
test eax, eax
je 0x4eb025
mov ecx, dword [esi + 0x234]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esi + 0x27c]
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 + 0x230]
push dword [ebp - 0x1c]
call edi
mov ecx, dword [esi + 0x234]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi + 0x27c]
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 + 0x230]
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x4eb2ad
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esi + 0x27c]
and dword [ebp - 0x18], 0
test eax, eax
je 0x4eb20d
push eax
push dword [esi + 0x280]
mov ecx, esi
push dword [ebp - 0x28]
call fcn.004e9484
test eax, eax
je 0x4eb5ee
mov eax, dword [esi + 0x284]
cmp eax, ebx
jne 0x4eb2b9
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x1c]
lea eax, [esi + 0x290]
push dword [esi + 0x2e4]
mov ecx, esi
push dword [esi + 0x2e0]
push dword [ebp + 0x1c4]
push dword [ebp - 0x20]
push dword [esi + 0x28c]
push eax
push 0x14
lea eax, [ebp + 0x178]
push eax
call fcn.004e9197
test eax, eax
je 0x4eb5ee
jmp 0x4eb31e
push 0x8004
push dword [ebp - 0x1c]
push dword [esi + 0x238]
push eax
push 0x14
lea eax, [ebp + 0x178]
push eax
call fcn.004e9045
test eax, eax
je 0x4eb025
cmp dword [ebp - 0x20], 0
je 0x4eb170
push 0
push dword [ebp + 0x1c4]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4eb170
mov dword [esi + 4], 0xb
jmp 0x4eb5ee
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x1c]
lea eax, [esi + 0x290]
push dword [esi + 0x28c]
mov ecx, esi
push eax
push 0x14
lea eax, [ebp + 0x178]
push eax
call fcn.004e9045
test eax, eax
je 0x4eb5ee
xor edi, edi
cmp dword [ebp - 0x20], edi
je 0x4eb304
push edi
push dword [ebp + 0x1c4]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4eb2ad
push edi
push dword [esi + 0x2e4]
push dword [esi + 0x2e0]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4eb2ad
mov eax, dword [esi + 0x2d0]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x2d4]
push 0
push 1
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4eb562
lea ecx, [ebp]
call fcn.004759dd
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x57
jne 0x4eb5d1
lea ecx, [ebp]
call fcn.0047eefd
test eax, eax
je 0x4eb5d1
push str.Trying_to_fix_Win7_bug__KB981118_
push 0x66eab8
call fcn.0047f157
cmp dword [esi + 0x230], 0x6610
pop ecx
pop ecx
jne 0x4eb562
cmp dword [ebp - 0x24], 0
mov dword [esi + 4], 0xb
je 0x4eb600
push 0x10
pop edi
push edi
lea eax, [ebp + 0x18c]
push 0
push eax
call fcn.0059cb30
add esp, 0xc
cmp dword [esi + 0x27c], 0
mov dword [ebp - 0x14], edi
je 0x4eb3e4
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x18c]
push eax
push 2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x4eb5ee
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x138]
push eax
push 0
push 8
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x4eb5ee
cmp dword [ebp - 0x14], 0x28
jb 0x4eb5ee
cmp dword [ebp + 0x140], 0x20
jne 0x4eb5ee
mov eax, dword [esi + 0x2d0]
add eax, edi
push eax
call fcn.00564e4a
mov edi, eax
pop ecx
test edi, edi
je 0x4eb5ee
push dword [esi + 0x2d0]
push dword [esi + 0x2d4]
push edi
call fcn.0059d730
push 0x100
lea eax, [ebp + 0x144]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.004d1672
add esp, 0x18
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x2d0]
jae 0x4eb501
lea eax, [ebp + 0x19c]
push eax
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.004d1be9
mov eax, dword [ebp + 0x18c]
xor dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x190]
xor dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x194]
xor dword [ebp + 0x1a4], eax
mov eax, dword [ebp + 0x198]
xor dword [ebp + 0x1a8], eax
add esp, 0xc
push 0x10
lea eax, [ebp + 0x19c]
push eax
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
call fcn.0059d730
mov eax, dword [esi + 0x2d4]
add eax, dword [ebp - 0x14]
push 0x10
push eax
lea eax, [ebp + 0x18c]
push eax
call fcn.0059d730
add esp, 0x18
add dword [ebp - 0x14], 0x10
jmp 0x4eb46e
mov eax, dword [esi + 0x2d0]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
mov ecx, esi
call fcn.004e9436
test eax, eax
jne 0x4eb530
test edi, edi
je 0x4eb5ee
push edi
call fcn.00564e3f
pop ecx
jmp 0x4eb5ee
push dword [ebp - 0x14]
push edi
push dword [esi + 0x2d4]
call fcn.0059d730
add esp, 0xc
test edi, edi
je 0x4eb54d
push edi
call fcn.00564e3f
pop ecx
and dword [esi + 4], 0
push str.The_bug_was_successfully_overstepped
push 0x66eab8
call fcn.0047f157
pop ecx
pop ecx
xor eax, eax
cmp dword [esi + 0x284], 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 + 0xf8]
push eax
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4eb2ad
mov eax, dword [ebp - 0x2c]
cmp eax, dword [esi + 0x2d8]
jne 0x4eb5e7
push eax
lea eax, [ebp + 0xf8]
push eax
push dword [esi + 0x2dc]
call fcn.005a1df6
add esp, 0xc
test eax, eax
jne 0x4eb5e7
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20c], 1
mov dword [esi + 0x2d0], eax
jmp 0x4eb5ee
call edi
sub eax, 0x80090005
neg eax
sbb eax, eax
and eax, 5
add eax, 6
mov dword [esi + 4], eax
jmp 0x4eb5ee
mov dword [esi + 4], 6
xor edi, edi
cmp dword [ebp - 0x24], edi
je 0x4eb600
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x4eb602
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x4eb610
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x28], edi
je 0x4eb61e
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x1c], edi
je 0x4eb62d
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [esi + 0x20c]
lea ecx, [ebp + 0x94]
mov byte [ebp - 4], 0
call fcn.004b0c4a
mov eax, esi
jmp 0x4eb036