Function at 0x10475b2
Capabilities:
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0xd0], eax
mov dword [eax], ebx
lea eax, [ebp - 0xac]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp + 8]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1047634
mov dword [ebp - 0xac], ebx
call fcn.0108edc3
mov edi, eax
push edi
push 0x9f2013e
jmp 0x1047881
push ebx
push dword [ebp + 0x10]
push esi
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x104765b
call fcn.0108edc3
mov edi, eax
push edi
push 0x9f7013e
jmp 0x1047881
push ebx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x58]
push eax
push 2
push dword [ebp - 0xac]
mov dword [ebp - 0xbc], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1047695
call fcn.0108edc3
mov edi, eax
push edi
push 0x9fd013e
jmp 0x1047881
push 0x40
lea eax, [ebp - 0x44]
push 0xff
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xbc]
add esp, 0xc
xor edi, edi
cmp eax, ebx
jbe 0x10476c4
lea esi, [ebp + eax - 0x59]
mov cl, byte [esi]
mov byte [ebp + edi - 0x44], cl
inc edi
dec esi
cmp edi, eax
jb 0x10476b8
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
mov byte [ebp + eax - 0x44], al
mov byte [ebp + eax - 0x43], 4
mov byte [ebp + eax - 0x42], bl
lea eax, [ebp - 0xb4]
push eax
push 1
push dword [ebp + 8]
mov byte [ebp - 6], 1
mov byte [ebp - 5], bl
call esi
test eax, eax
jne 0x10477a7
call fcn.0108edc3
mov edi, eax
cmp edi, 0x8009000d
je 0x104770e
push edi
push 0xa23013e
jmp 0x1047881
lea eax, [ebp - 0xb8]
push eax
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1047732
call fcn.0108edc3
mov edi, eax
push edi
push 0xa29013e
jmp 0x1047881
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xb0]
push eax
push 7
push ebx
push dword [ebp - 0xb8]
mov dword [ebp - 0xc4], ebx
call fcn.01090133
mov edi, eax
cmp edi, ebx
je 0x1047765
push edi
push 0xa35013e
jmp 0x1047881
mov eax, dword [ebp - 0xb0]
mov dword [eax + 4], 0xa400
lea eax, [ebp - 0xb4]
push eax
push 1
push ebx
push dword [ebp - 0xc4]
push dword [ebp - 0xb0]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x10477a7
call fcn.0108edc3
mov edi, eax
push edi
push 0xa46013e
jmp 0x1047881
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x20
push 1
push ebx
push dword [ebp - 0xb4]
mov dword [ebp - 0xc0], 0x40
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10477e3
call fcn.0108edc3
mov edi, eax
push edi
push 0xa60013e
jmp 0x1047881
mov esi, 0x10cb5f4
lea edi, [ebp - 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0xc0]
xor esi, esi
cmp edi, ebx
jbe 0x1047812
lea eax, [ebp + edi - 0x45]
mov cl, byte [eax]
mov byte [ebp + esi - 0x9a], cl
inc esi
dec eax
cmp esi, edi
jb 0x1047803
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x10]
push 2
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xdc], eax
pop eax
push dword [ebp - 0xcc]
mov dword [ebp - 0xd8], eax
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xe8]
push eax
push ebx
lea eax, [ebp - 0xd8]
push eax
push 0x22
push 1
mov dword [ebp - 0xe0], 0x4e
mov dword [ebp - 0xd4], ecx
call fcn.0108edd5
test eax, eax
jne 0x1047888
call fcn.0108edc3
mov edi, eax
push edi
push 0xa84013e
call fcn.010893e6
jmp 0x104788a
xor edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0xb4], ebx
je 0x10478a0
push dword [ebp - 0xb4]
call esi
cmp dword [ebp - 0xac], ebx
je 0x10478b4
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xb0], ebx
je 0x10478c8
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xb8], ebx
je 0x10478d8
push dword [ebp - 0xb8]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 0x14