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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433e20
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp dword [edx + 0x10], 0x20
mov dword [ebp - 0x60], eax
jne 0x41fa7b
cmp dword [esi + 0x10], 0x10
jne 0x41fa7b
cmp dword [eax + 0x10], 0
je 0x41fa7b
push 0xf0000000
push 0x18
push 0x43fe80
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41fa7b
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x54], 0x208
cmp dword [eax + 0x14], 0x10
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x50], 0x6610
mov dword [ebp - 0x4c], 0x20
jb 0x41f8a6
mov eax, dword [eax]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x2c
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x24]
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x41fa70
cmp dword [esi + 0x14], 0x10
jb 0x41f8dc
mov esi, dword [esi]
push 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 1
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x41fa67
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push 4
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x41fa67
mov esi, dword [ebp - 0x60]
push 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x41fa67
push esi
mov ecx, edi
call fcn.00413e90
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0x20]
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x5c], eax
cmp edx, eax
ja 0x41f97a
mov eax, edi
cmp esi, 0x10
jb 0x41f971
mov eax, dword [edi]
mov dword [edi + 0x10], edx
mov byte [eax + edx], 0
jmp 0x41f9bd
mov ecx, edx
sub ecx, eax
mov eax, esi
sub eax, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
cmp ecx, eax
ja 0x41f9b0
mov dword [edi + 0x10], edx
mov edx, edi
cmp esi, 0x10
jb 0x41f996
mov edx, dword [edi]
mov esi, dword [ebp - 0x5c]
push ecx
add esi, edx
push 0
push esi
call fcn.00423800
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x41f9bd
push ecx
push ecx
push dword [ebp - 0x58]
push ecx
mov ecx, edi
call fcn.004034a0
cmp dword [edi + 0x14], 0x10
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, edi
jb 0x41f9d0
mov eax, dword [edi]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 0
push 1
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x41fa4a
mov esi, dword [edi + 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x14]
cmp edx, esi
ja 0x41fa0a
mov ecx, edi
cmp eax, 0x10
jb 0x41fa01
mov ecx, dword [edi]
mov dword [edi + 0x10], edx
mov byte [ecx + edx], 0
jmp 0x41fa5e
mov ecx, edx
sub eax, esi
sub ecx, esi
mov dword [ebp - 0x58], ecx
cmp ecx, eax
ja 0x41fa3b
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [edi + 0x10], edx
jb 0x41fa24
mov eax, dword [edi]
push ecx
add esi, eax
push 0
push esi
call fcn.00423800
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x41fa5e
push ecx
push ecx
push dword [ebp - 0x58]
push ecx
mov ecx, edi
call fcn.004034a0
jmp 0x41fa5e
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x41fa54
mov eax, dword [edi]
mov dword [edi + 0x10], 0
mov byte [eax], 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret