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

Disassembly:
push 0x158
mov eax, 0x7b9907
call fcn.00700ca1
mov ebx, dword [ebp + 8]
xor edx, edx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], cx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], edx
jb 0x63afb5
mov eax, dword [eax]
push dword [ebp + 0x14]
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x63b045
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090024
jne 0x63b045
push esi
lea ecx, [ebp - 0x70]
call fcn.004c3996
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.004c2b5d
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x63b6db
mov ecx, dword [ebp - 0x70]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], ecx
cmp eax, 0x1000
jb 0x63b6d2
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x124]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x11c]
jmp 0x63b6d2
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00624985
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 1
push eax
call fcn.006319e4
add esp, 0x14
xor esi, esi
mov byte [ebp - 4], 2
push esi
push esi
push dword [ebp - 0x144]
lea ecx, [ebp - 0x164]
push dword [ebp - 0x140]
call fcn.0064feac
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], esi
call fcn.0064ff13
lea ecx, [ebp - 0x130]
push ecx
mov ecx, eax
call fcn.0064ff13
mov eax, dword [ebp - 0x130]
mov edi, 0x1000
cmp dword [ebp - 0x144], eax
jb 0x63b424
cmp eax, dword [ebp - 0x134]
jb 0x63b424
lea ecx, [ebp - 0x164]
call fcn.00434ee0
lea ecx, [ebp - 0x128]
push ecx
push esi
push esi
push dword [ebp - 0x134]
push eax
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x63b2d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push 0xf
pop ebx
push 0xa
push str.MSEUtility
mov esi, eax
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], 0
call fcn.00439710
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xb
push eax
call fcn.006210e3
and dword [ebp - 0x30], 0
mov edi, eax
pop ecx
push 9
push str.errorCode
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], 0
call fcn.00439710
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0xc
push esi
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea ecx, [ebp - 0x118]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0xe
push eax
push 0x858903
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], al
call fcn.00439710
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], bl
push str.mseutil::EncryptionUtil::doDecriptionWithSessionKey
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.0061c551
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 0x11
call fcn.00621517
lea ecx, [ebp - 0xd0]
call fcn.00438e20
lea ecx, [ebp - 0xe8]
call fcn.00438e20
lea ecx, [ebp - 0xa0]
call fcn.00438e20
mov eax, dword [ebp - 0x14]
mov edi, 0x1000
cmp eax, 0x10
jb 0x63b257
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], ecx
cmp eax, edi
jb 0x63b24e
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x11c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x120]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
call fcn.00438e20
lea ecx, [ebp - 0x118]
call fcn.00438e20
lea ecx, [ebp - 0xb8]
call fcn.00438e20
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x63b2c9
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
cmp eax, edi
jb 0x63b2c0
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x120]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x11c]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], 0
jmp 0x63b5d9
push esi
push dword [ebp - 0x134]
lea ecx, [ebp - 0x164]
call fcn.00650081
lea ecx, [ebp - 0x164]
call fcn.00434ee0
lea ecx, [ebp - 0x164]
mov esi, eax
call fcn.0065012d
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x138]
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x63b3f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push 0xf
pop ebx
push 0xa
push str.MSEUtility
mov esi, eax
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], 0
call fcn.00439710
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x12
push eax
call fcn.006210e3
and dword [ebp - 0x18], 0
mov edi, eax
pop ecx
push 9
push str.errorCode
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
call fcn.00439710
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x13
push esi
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
push ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x15
push eax
push 0x858903
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.00439710
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0x16
push str.mseutil::EncryptionUtil::doDecriptionWithSessionKey
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x17
push ecx
push eax
lea ecx, [ebp - 0x118]
call fcn.0061c551
mov byte [ebp - 4], 0x18
jmp 0x63b4e7
push esi
lea ecx, [ebp - 0x70]
call fcn.004c097f
lea ecx, [ebp - 0x164]
call fcn.0064fee2
mov ecx, dword [ebp - 0x13c]
test ecx, ecx
je 0x63b63f
call fcn.004c06f9
jmp 0x63b63f
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push 0xf
pop ebx
push 0xa
push str.MSEUtility
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], 0
call fcn.00439710
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
call fcn.006210e3
pop ecx
mov edi, eax
mov dword [ebp - 0x14], ebx
xor eax, eax
lea ecx, [ebp - 0x28]
push eax
push 0x858903
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00439710
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 5
push str.bad_encryption_message__crupted
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
push ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 7
push eax
push 0x858903
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.00439710
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 8
push str.mseutil::EncryptionUtil::doDecriptionWithSessionKey
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
push ecx
push eax
lea ecx, [ebp - 0x118]
call fcn.0061c551
mov byte [ebp - 4], 0xa
push esi
push eax
mov ecx, edi
call fcn.00621517
lea ecx, [ebp - 0x100]
call fcn.00438e20
lea ecx, [ebp - 0x118]
call fcn.00438e20
lea ecx, [ebp - 0xb8]
call fcn.00438e20
mov eax, dword [ebp - 0x2c]
mov edi, 0x1000
cmp eax, 0x10
jb 0x63b55c
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], eax
cmp eax, edi
jb 0x63b553
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x120]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x11c]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], 0
call fcn.00438e20
lea ecx, [ebp - 0xe8]
call fcn.00438e20
lea ecx, [ebp - 0xa0]
call fcn.00438e20
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x63b5ce
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], eax
cmp eax, edi
jb 0x63b5c5
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x120]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x11c]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x63b61f
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
cmp eax, edi
jb 0x63b616
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x120]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x11c]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
lea ecx, [ebp - 0x164]
call fcn.0064fee2
mov ecx, dword [ebp - 0x13c]
test ecx, ecx
je 0x63b639
call fcn.004c06f9
mov ebx, dword [ebp - 0x124]
lea ecx, [ebp - 0x88]
call fcn.00438e20
cmp dword [ebp - 0x128], 0
je 0x63b666
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and dword [ebp - 0x128], 0
cmp dword [ebp - 0x12c], 0
je 0x63b684
push 0
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebp - 0x12c], 0
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.004c2b5d
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x63b6db
mov ecx, dword [ebp - 0x70]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x130], ecx
cmp eax, edi
jb 0x63b6d2
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x120]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x130]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
mov eax, ebx
call fcn.00700c4b
ret 0x10