Function at 0x1040de3
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 [0x10b5894]
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 0x1040e65
mov dword [ebp - 0xac], ebx
call fcn.010a4804
mov edi, eax
push edi
push 0x9d9013e
jmp 0x10410b2
push ebx
push dword [ebp + 0x10]
push esi
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1040e8c
call fcn.010a4804
mov edi, eax
push edi
push 0x9de013e
jmp 0x10410b2
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 0x1040ec6
call fcn.010a4804
mov edi, eax
push edi
push 0x9e4013e
jmp 0x10410b2
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 0x1040ef5
lea esi, [ebp + eax - 0x59]
mov cl, byte [esi]
mov byte [ebp + edi - 0x44], cl
inc edi
dec esi
cmp edi, eax
jb 0x1040ee9
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 0x1040fd8
call fcn.010a4804
mov edi, eax
cmp edi, 0x8009000d
je 0x1040f3f
push edi
push 0xa0a013e
jmp 0x10410b2
lea eax, [ebp - 0xb8]
push eax
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1040f63
call fcn.010a4804
mov edi, eax
push edi
push 0xa10013e
jmp 0x10410b2
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.0107fe18
mov edi, eax
cmp edi, ebx
je 0x1040f96
push edi
push 0xa1c013e
jmp 0x10410b2
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 0x1040fd8
call fcn.010a4804
mov edi, eax
push edi
push 0xa2d013e
jmp 0x10410b2
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 0x1041014
call fcn.010a4804
mov edi, eax
push edi
push 0xa47013e
jmp 0x10410b2
mov esi, 0x10b40dc
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 0x1041043
lea eax, [ebp + edi - 0x45]
mov cl, byte [eax]
mov byte [ebp + esi - 0x9a], cl
inc esi
dec eax
cmp esi, edi
jb 0x1041034
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.010a5295
test eax, eax
jne 0x10410b9
call fcn.010a4804
mov edi, eax
push edi
push 0xa6b013e
call fcn.0107ae44
jmp 0x10410bb
xor edi, edi
cmp dword [ebp - 0xb4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
je 0x10410d1
push dword [ebp - 0xb4]
call esi
cmp dword [ebp - 0xac], ebx
je 0x10410e5
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xb0], ebx
je 0x10410f9
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xb8], ebx
je 0x1041109
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.01068363
leave
ret 0x14