Function at 0x47feda
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
xor ebp, ebp
mov dword [esp + 0x14], edi
test ebx, ebx
je 0x47ff53
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0x18], ecx
jbe 0x4800c2
lea eax, [edi + 4]
mov dword [esp + 0x18], eax
lea edi, [ebx + 0x1c]
add edi, ecx
push 0x10
push edi
push eax
call fcn.004bec95
add esp, 0xc
test eax, eax
je 0x47ff47
mov ecx, dword [esp + 0x1c]
inc esi
mov eax, dword [esp + 0x18]
add ecx, 0x18
mov dword [esp + 0x48], esi
add ecx, dword [edi + 0x14]
mov dword [esp + 0x1c], ecx
cmp esi, dword [ebx + 0x18]
jb 0x47ff11
jmp 0x4800c2
mov eax, dword [edi + 0x14]
lea esi, [edi + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x47ff62
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x4800c2
push 0x10
pop eax
mov dword [esp + 0x10], eax
test esi, esi
je 0x4800c2
push 0xf0000000
push 0x18
xor ebx, ebx
lea eax, [esp + 0x24]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4800c2
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x800c
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4800b7
push ebx
push dword [esp + 0x14]
push esi
push dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
call esi
mov dword [esp + 0x48], ebx
lea ebx, [edi + 0x1c]
push 0
push 0x20
push ebx
push dword [esp + 0x20]
call esi
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
cmp eax, 0x3e8
jb 0x47ffc3
push 0x20
pop esi
xor ebx, ebx
mov dword [esp + 0x10], esi
push ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
push 2
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4800ad
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push ebx
push eax
push ebx
lea eax, [esp + 0x30]
mov edx, 0x6610
push esi
push eax
call fcn.0040342f
add esp, 0x14
test eax, eax
je 0x48009a
push ebx
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 2
push eax
push 4
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x48007b
mov eax, dword [esp + 0x20]
add eax, 0xffffffc4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 0x3c]
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ebp, eax
test ebp, ebp
jne 0x48008e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_lsadump_sec_aes256___CryptDecrypt__0x_08x__n
jmp 0x480087
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_lsadump_sec_aes256___CryptSetKeyParam__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x4800ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_lsadump_sec_aes256___kull_m_crypto_hkey__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x34
ret