Function at 0x408da0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ddf5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], edx
mov edi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x6c], eax
test edi, edi
jne 0x408df7
mov dword [ebp - 0x54], ecx
xor al, al
jmp 0x4091e1
xor esi, esi
cmp word [edi], si
je 0x408e08
nop
inc esi
cmp word [edi + esi*2], 0
jne 0x408e00
mov dword [ebp - 0x54], esi
cmp esi, 0x10
jae 0x408e17
xor al, al
jmp 0x4091e1
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
cmp dword [edx], eax
jne 0x408e48
push 2
call fcn.0046b90c
mov edx, dword [ebp - 0x64]
add esp, 4
xor ecx, ecx
mov dword [edx], eax
mov word [eax], cx
mov esi, dword [ebp - 0x54]
mov dword [edx + 4], ecx
mov eax, dword [edx]
mov byte [edx + 8], 1
cmp edi, eax
jne 0x408e61
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0xffffffff
jmp 0x408e74
test eax, eax
je 0x408e74
push eax
call fcn.0046b303
mov esi, dword [ebp - 0x54]
add esp, 4
mov edx, dword [ebp - 0x64]
mov ecx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], 4
mov al, 1
mov dword [ebp - 0x68], 8
mov dword [ecx], 0
mov ecx, dword [ebp - 0x1c]
mov dword [edx + ecx], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x68]
mov byte [edx + ecx], al
cmp word [edi], 0x30
jne 0x408ec1
movzx eax, word [edi + 2]
mov ecx, eax
cmp eax, 0x78
je 0x408eb8
cmp ecx, 0x58
jne 0x408ec1
add edi, 4
sub esi, 2
mov dword [ebp - 0x54], esi
xorps xmm0, xmm0
add esi, 2
push esi
movlpd qword [ebp - 0x5c], xmm0
call fcn.0046b90c
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x54]
add ecx, 2
push ecx
push 0
push eax
call fcn.0046ce00
add esp, 0x10
test edi, edi
je 0x4091b7
xor esi, esi
cmp word [edi], si
je 0x408f08
nop dword [eax]
inc esi
cmp word [edi + esi*2], 0
jne 0x408f00
mov eax, esi
and eax, 0x80000001
jns 0x408f16
dec eax
or eax, 0xfffffffe
inc eax
sub esi, eax
je 0x4091b7
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp word [edi], 0x30
mov dword [ebp - 0x68], eax
jne 0x408f48
movzx ecx, word [edi + 2]
mov edx, ecx
cmp ecx, 0x78
je 0x408f3e
cmp edx, 0x58
jne 0x408f48
dec eax
add edi, 4
mov dword [ebp - 0x68], eax
sub esi, 2
mov ecx, dword [ebp - 0x54]
cmp ecx, eax
jl 0x4091b7
mov eax, dword [0x49fb80]
movups xmm0, xmmword [str.0123456789ABCDEFabcdef]
mov dword [ebp - 0x78], eax
mov ax, word [0x49fb84]
push ecx
mov word [ebp - 0x74], ax
mov al, byte [0x49fb86]
push 0
push dword [ebp - 0x5c]
movups xmmword [ebp - 0x88], xmm0
mov byte [ebp - 0x72], al
call fcn.0046ce00
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x18], eax
test esi, esi
jle 0x408feb
movzx edx, word [edi + eax*2]
xor ecx, ecx
nop dword [eax + eax]
movsx eax, byte [ebp + ecx - 0x88]
cmp edx, eax
je 0x408fb4
inc ecx
cmp ecx, 0x16
jl 0x408fa0
jmp 0x408fe0
mov eax, dword [ebp - 0x18]
shr eax, 1
add eax, dword [ebp - 0x5c]
cmp ecx, 0xf
mov dword [ebp - 0x1c], eax
lea eax, [ecx - 6]
movzx edx, al
movzx eax, cl
cmovle edx, eax
test byte [ebp - 0x18], 1
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
jne 0x408fdc
shl dl, 4
or dl, cl
mov byte [eax], dl
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, esi
jl 0x408f92
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x4091be
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x1c]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push eax
mov dword [ebp - 0x1c], 0
call esi
test eax, eax
jne 0x409031
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
lea eax, [ebp - 0x1c]
push eax
call esi
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4091be
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x5d], 0
test ecx, ecx
je 0x4090e5
xor eax, eax
cmp byte [ecx], al
je 0x4090e5
nop dword [eax]
inc eax
cmp byte [ecx + eax], 0
jne 0x409060
cmp eax, 0x20
jne 0x4090e5
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x2c
movups xmmword [ebp - 0x44], xmm0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x208
movups xmm0, xmmword [ecx + 0x10]
push eax
push esi
mov dword [ebp - 0x4c], 0x6610
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4090d7
push 0
push str.1234567890123456
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4090d7
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
push 0
push 1
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
setne byte [ebp - 0x5d]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4090e5
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [ebp - 0x5d], 0
je 0x4091be
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x5c]
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x54]
mov byte [edi + eax + 1], 0
mov esi, dword [ebp - 0x54]
test esi, esi
jne 0x40911d
cmp byte [edi], 0
je 0x40911d
inc esi
cmp byte [edi + esi], 0
jne 0x409116
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov edx, dword [eax]
mov dword [ebp - 0x6c], edx
mov edx, 2
mov dword [eax + 4], 0
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
mov edx, dword [ebp - 0x64]
lea ecx, [esi + 1]
xor edi, edi
add esp, 4
mov dword [edx], eax
mov word [eax + ecx*2], di
mov eax, dword [edx]
mov word [eax], di
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x5c]
test eax, eax
je 0x409174
push eax
call fcn.0046b303
mov edx, dword [ebp - 0x64]
lea ecx, [esi + 1]
add esp, 4
mov eax, dword [edx]
test eax, eax
je 0x4091af
test esi, esi
jne 0x40918b
xor ecx, ecx
mov word [eax], cx
mov al, byte [edx + 8]
mov byte [ebp - 0x5d], al
jmp 0x4091c5
push ecx
push eax
push esi
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x64]
xor esi, esi
test eax, eax
mov ecx, dword [edx]
mov word [ecx + eax*2], si
setg al
mov byte [edx + 8], al
mov al, byte [edx + 8]
mov byte [ebp - 0x5d], al
jmp 0x4091c5
mov dword [ebp - 0x54], 0
mov edi, dword [ebp - 0x5c]
mov byte [ebp - 0x5d], 0
push edi
call fcn.0046b303
mov eax, dword [ebp - 0x70]
add esp, 4
test eax, eax
je 0x4091de
push eax
call fcn.0046b303
add esp, 4
mov al, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc