Function at 0x4915e0
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:
mov eax, 0x19020
call fcn.004e03c0
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x1901c], eax
mov eax, dword [esp + 0x19028]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x19038]
push edi
mov edi, dword [esp + 0x19040]
xor ebp, ebp
push 0x18fff
lea ecx, [esp + 0x31]
push ebp
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0x38], 0
call sub.MSVCR90.dll_memset
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
push esi
lea edx, [esp + 0x3c]
push 0x501180
push edx
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
add esp, 0x18
push 0xf0000000
push 0x18
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x4916cc
push 0xf0000008
push 0x18
push eax
push eax
lea ecx, [esp + 0x2c]
push ecx
call esi
test eax, eax
jne 0x4916cc
push 0xf0000010
push 0x18
push eax
push eax
lea edx, [esp + 0x2c]
push edx
call esi
test eax, eax
jne 0x4916a7
mov eax, dword [esp + 0x10]
push eax
push str.Cyper_Err_1__s_
jmp 0x491997
push 0xf0000008
push 0x18
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call esi
test eax, eax
jne 0x4916cc
mov edx, dword [esp + 0x10]
push edx
push str.Cyper_Err_2__s_
jmp 0x491997
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x800e
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4916f8
mov edx, dword [esp + 0x10]
push edx
push str.Cyper_Err_3__s_
jmp 0x491997
cmp dword [esp + 0x19034], 2
push 0
jne 0x4917d0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x49172f
push esi
push str.Cyper_Err_4__s_
jmp 0x491997
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
push 4
push edx
mov dword [esp + 0x38], ebp
call esi
test eax, eax
je 0x49199d
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 2
push ecx
mov dword [esp + 0x24], ebp
call esi
test eax, eax
je 0x49199d
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push ebx
push 2
push ecx
call esi
test eax, eax
je 0x49199d
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x4917c0
movzx edx, byte [esi + ebx]
push edx
push str._2.2x
push edi
call dword [sym.imp.MSVCR90.dll_sprintf]
inc esi
add esp, 0xc
add edi, 2
cmp esi, dword [esp + 0x10]
jb 0x4917a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x49199d
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4917fb
mov edx, dword [esp + 0x10]
push edx
push str.Cyper_Err_5__s_
jmp 0x491997
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 1
push ecx
push 0x6610
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x49182a
mov eax, dword [esp + 0x10]
push eax
push str.Cyper_Err_6__s_
jmp 0x491997
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491831
sub eax, edx
mov esi, eax
lea ecx, [esi + 0x400]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x49198d
mov eax, dword [esp + 0x20]
push 0
lea edx, [esp + 0x2c]
push edx
push 4
push eax
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x491885
mov ecx, dword [esp + 0x10]
push ecx
push str.Cyper_Err_8__s_
jmp 0x491997
push esi
push 0
push ebp
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [esp + 0x19034], 0
je 0x49192a
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4918a6
sub eax, edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4918c0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add edx, 0x400
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4918ff
mov edx, dword [esp + 0x10]
push edx
push str.Cyper_Err_9__s_
jmp 0x491997
xor esi, esi
mov byte [edi], 0
cmp dword [esp + 0x18], esi
jbe 0x49199d
mov edi, edi
movzx eax, byte [esi + ebp]
push eax
push edi
push str._s_02x
push edi
call ebx
inc esi
add esp, 0x10
cmp esi, dword [esp + 0x18]
jb 0x491910
jmp 0x49199d
lea ecx, [esp + 0x2c]
push ebp
push ecx
call fcn.00491490
lea eax, [esp + 0x34]
add esp, 8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491940
sub eax, edx
lea edx, [esp + 0x18]
push edx
push ebp
push 0
shr eax, 1
push 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x491976
mov ecx, dword [esp + 0x10]
push ecx
push str.Cyper_Err_10__s_
jmp 0x491997
mov edx, dword [esp + 0x18]
push edx
push ebp
push edi
call dword [sym.imp.MSVCR90.dll_strncpy]
mov eax, dword [esp + 0x24]
mov byte [edi + eax], 0
jmp 0x49199a
mov ecx, dword [esp + 0x10]
push ecx
push str.Cyper_Err_7__s_
push edi
call ebx
add esp, 0xc
mov ecx, 0x11
mov esi, str.bdfkl_nbkl_ne_irewioren_erorgvnio__ravb__b_vb_ji_vrb_jio_awer_wgbio_
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.vasmkvvwenio_nvio_we_we8_9edvy8we7_78_wev78_fvwe78_w78_we7_e7_ef9p_f
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.sdvlwipwh8g9p34h8v_4_y8f__4y_8__34y80tfg34y_wefyuy9_32fuy_023uyrf_tb
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.bdfkl_nbkl_ne_irewioren_erorgvnio__ravb__b_vb_ji_vrb_jio_awer_wgbio_
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.vasmkvvwenio_nvio_we_we8_9edvy8we7_78_wev78_fvwe78_w78_we7_e7_ef9p_f
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.sdvlwipwh8g9p34h8v_4_y8f__4y_8__34y80tfg34y_wefyuy9_32fuy_023uyrf_tb
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.bdfkl_nbkl_ne_irewioren_erorgvnio__ravb__b_vb_ji_vrb_jio_awer_wgbio_
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.vasmkvvwenio_nvio_we_we8_9edvy8we7_78_wev78_fvwe78_w78_we7_e7_ef9p_f
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.sdvlwipwh8g9p34h8v_4_y8f__4y_8__34y80tfg34y_wefyuy9_32fuy_023uyrf_tb
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.bdfkl_nbkl_ne_irewioren_erorgvnio__ravb__b_vb_ji_vrb_jio_awer_wgbio_
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.vasmkvvwenio_nvio_we_we8_9edvy8we7_78_wev78_fvwe78_w78_we7_e7_ef9p_f
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.sdvlwipwh8g9p34h8v_4_y8f__4y_8__34y80tfg34y_wefyuy9_32fuy_023uyrf_tb
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.bdfkl_nbkl_ne_irewioren_erorgvnio__ravb__b_vb_ji_vrb_jio_awer_wgbio_
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.vasmkvvwenio_nvio_we_we8_9edvy8we7_78_wev78_fvwe78_w78_we7_e7_ef9p_f
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.sdvlwipwh8g9p34h8v_4_y8f__4y_8__34y80tfg34y_wefyuy9_32fuy_023uyrf_tb
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
push ebp
movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x491abe
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x491ab6
cmp dword [0x103a97c], eax
je 0x491ab6
push str.Error_during_CryptDestroyHash.
push 8
call fcn.0043d500
add esp, 8
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x491ae8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x491ae8
cmp dword [0x103a97c], eax
je 0x491ae8
push str.Error_during_CryptDestroyKey_
push 8
call fcn.0043d500
add esp, 8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x491b14
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x491b14
cmp dword [0x103a97c], eax
je 0x491b14
push str.Error_during_CryptReleaseContext_
push 8
call fcn.0043d500
add esp, 8
mov ecx, dword [esp + 0x1901c]
xor ecx, esp
call fcn.004e0148
add esp, 0x19020
ret