Function at 0x1047ca0
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 [0x10d0640]
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 0x1047d22
mov dword [ebp - 0xac], ebx
call fcn.01091f1e
mov edi, eax
push edi
push 0x9f5013e
jmp 0x1047f6f
push ebx
push dword [ebp + 0x10]
push esi
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1047d49
call fcn.01091f1e
mov edi, eax
push edi
push 0x9fa013e
jmp 0x1047f6f
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 0x1047d83
call fcn.01091f1e
mov edi, eax
push edi
push 0xa00013e
jmp 0x1047f6f
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 0x1047db2
lea esi, [ebp + eax - 0x59]
mov cl, byte [esi]
mov byte [ebp + edi - 0x44], cl
inc edi
dec esi
cmp edi, eax
jb 0x1047da6
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 0x1047e95
call fcn.01091f1e
mov edi, eax
cmp edi, 0x8009000d
je 0x1047dfc
push edi
push 0xa26013e
jmp 0x1047f6f
lea eax, [ebp - 0xb8]
push eax
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1047e20
call fcn.01091f1e
mov edi, eax
push edi
push 0xa2c013e
jmp 0x1047f6f
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.0109328e
mov edi, eax
cmp edi, ebx
je 0x1047e53
push edi
push 0xa38013e
jmp 0x1047f6f
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 0x1047e95
call fcn.01091f1e
mov edi, eax
push edi
push 0xa49013e
jmp 0x1047f6f
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 0x1047ed1
call fcn.01091f1e
mov edi, eax
push edi
push 0xa63013e
jmp 0x1047f6f
mov esi, 0x10ce67c
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 0x1047f00
lea eax, [ebp + edi - 0x45]
mov cl, byte [eax]
mov byte [ebp + esi - 0x9a], cl
inc esi
dec eax
cmp esi, edi
jb 0x1047ef1
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.01091f30
test eax, eax
jne 0x1047f76
call fcn.01091f1e
mov edi, eax
push edi
push 0xa87013e
call fcn.0108c503
jmp 0x1047f78
xor edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0xb4], ebx
je 0x1047f8e
push dword [ebp - 0xb4]
call esi
cmp dword [ebp - 0xac], ebx
je 0x1047fa2
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xb0], ebx
je 0x1047fb6
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xb8], ebx
je 0x1047fc6
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.01077d0b
leave
ret 0x14