Function at 0x4035d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d69d
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x42c014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 0
lea edi, [ebp - 0x84]
mov eax, dword [ebp + 0x1c]
mov ecx, 0x1b
add eax, eax
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0xf0000000
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x84]
push 0x18
push eax
push 0
lea eax, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40371a
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40371a
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xa0], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x403698
sub edi, ecx
mov edx, 2
inc edi
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00409bba
add esp, 4
mov esi, eax
push edi
push dword [ebp - 0xa0]
push esi
call fcn.0040fd4f
add esp, 0xc
push 0
push dword [ebp - 0x9c]
push esi
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4036f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
jmp 0x403864
lea eax, [ebp - 0x94]
push eax
push 0
push dword [ebp - 0x90]
push 0x660e
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x403735
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x88]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x403864
push ebx
call fcn.0040fb7d
add esp, 4
mov esi, eax
push ebx
push dword [ebp - 0x98]
push esi
call fcn.0040b020
add esp, 0xc
push 0xa0
call fcn.00409bba
mov edx, dword [ebp - 0xa8]
xor edi, edi
add esp, 4
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], edi
test edx, edx
je 0x403858
mov eax, 0xa0
mov ecx, edx
sub eax, esi
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xb0], eax
add eax, esi
mov ebx, 0xa0
cmp eax, edx
jb 0x4037b9
mov ebx, ecx
mov dword [ebp - 0x98], 1
push ebx
push esi
push dword [ebp - 0xa4]
mov dword [ebp - 0x8c], ebx
call fcn.0040b020
add esp, 0xc
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0xa4]
push 0
push dword [ebp - 0x98]
push 0
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x403858
mov eax, dword [ebp - 0xac]
push dword [ebp - 0x8c]
push dword [ebp - 0xa4]
mov eax, dword [eax]
add eax, edi
push eax
call fcn.0040b020
add edi, dword [ebp - 0x8c]
add esp, 0xc
cmp ebx, 0xa0
jne 0x403858
mov edx, dword [ebp - 0x9c]
add esi, ebx
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, dword [ebp - 0xb0]
sub ecx, ebx
cmp edx, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], edx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], ecx
jb 0x4037a2
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x403894
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40388a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038b2
push ecx
push edx
call fcn.00409bac
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409a47
mov esp, ebp
pop ebp
ret
call fcn.0040d01f
int3