Function at 0x10001bf0
Capabilities:
Encrypt or decrypt via wincrypt
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push 0
mov edi, ecx
push 0x8004
push dword [edi + 0x20]
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, dword [ebp + 8]
push 0
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [0x1000bf50]
test eax, eax
jne 0x10001c4f
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10001c48
mov ecx, eax
call fcn.100028d0
jmp 0x10001c4a
xor eax, eax
mov dword [0x1000bf50], eax
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 4]
push ecx
push 1
push dword [ebp - 0xc]
push 0x6610
push dword [edi + 0x20]
call eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esi + 0x14]
push 0
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edi, dword [ebp - 8]
push edi
mov dword [ebp + 8], edi
call sub.MSVCRT.dll_malloc
mov ebx, eax
mov eax, dword [esi + 0x10]
add esp, 4
test eax, eax
je 0x10001cb4
push edi
push eax
push ebx
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp - 8]
add esp, 0xc
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10001cc7
push eax
call sub.MSVCRT.dll_free
mov edi, dword [ebp - 8]
add esp, 4
mov eax, dword [ebp + 8]
push edi
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push 1
push 0
push dword [ebp - 4]
mov dword [esi + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [0x1000bf50]
test eax, eax
jne 0x10001d0c
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10001d05
mov ecx, eax
call fcn.100028d0
jmp 0x10001d07
xor eax, eax
mov dword [0x1000bf50], eax
mov ebx, dword [ebp - 0x18]
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x40
push 1
push dword [ebx + 8]
push dword [ebp - 4]
call eax
push dword [ebp - 0x10]
call sub.MSVCRT.dll_malloc
mov edi, eax
mov eax, dword [0x1000bf50]
add esp, 4
test eax, eax
jne 0x10001d58
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10001d51
mov ecx, eax
call fcn.100028d0
jmp 0x10001d53
xor eax, eax
mov dword [0x1000bf50], eax
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x40
push 1
push dword [ebx + 8]
push dword [ebp - 4]
call eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea eax, [edi + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
mov word [ebp - 0x2c], ax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x28], eax
mov ax, word [ebx + 0x18]
mov word [ebp - 0x24], ax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x100086d0
mov dword [ebp - 0x1c], eax
call fcn.10001200
mov cl, byte [eax + 4]
mov byte [esi + 4], cl
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x14]
push edi
mov dword [esi + 0x14], eax
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4