Function at 0x1003c5e0
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
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1984c
call fcn.1003e9a0
mov eax, dword [0x10067bf0]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
mov dword [ebp - 0x19418], 0
mov dword [ebp - 0x19410], 0
mov dword [ebp - 0x19838], 0
mov dword [ebp - 0x19414], 0
mov dword [ebp - 0x1982c], 0
mov dword [ebp - 0x19830], 0
mov dword [ebp - 0x19828], 0
mov dword [ebp - 0x1941c], 0
mov dword [ebp - 0x1940c], 0
mov dword [ebp - 0x19824], 0
mov eax, dword [str.Cyper_Error]
mov dword [ebp - 0x19820], eax
mov ecx, dword [0x10060d30]
mov dword [ebp - 0x1981c], ecx
mov edx, dword [0x10060d34]
mov dword [ebp - 0x19818], edx
push 0x3f4
push 0
lea eax, [ebp - 0x19814]
push eax
call fcn.1003e4c0
add esp, 0xc
mov byte [ebp - 0x19408], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x19407]
push ecx
call fcn.1003e4c0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x10060d38
lea eax, [ebp - 0x19408]
push eax
call fcn.1003e91e
add esp, 0xc
mov byte [ebp - 0x19008], 0
push 0x18fff
push 0
lea ecx, [ebp - 0x19007]
push ecx
call fcn.1003e4c0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x1003c70a
mov edx, dword [ebp + 0x10]
push edx
push str.june_s
lea eax, [ebp - 0x19008]
push eax
call fcn.1003e91e
add esp, 0xc
jmp 0x1003c722
mov ecx, dword [ebp + 0x10]
push ecx
push 0x10060d48
lea edx, [ebp - 0x19008]
push edx
call fcn.1003e91e
add esp, 0xc
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x19418]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1003c7bc
push 0xf0000008
push 0x18
push 0
push 0
lea ecx, [ebp - 0x19418]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1003c7bc
push 0xf0000010
push 0x18
push 0
push 0
lea edx, [ebp - 0x19418]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1003c78b
push str.Error_during_CryptAcquireContext_CRYPT_DELETEKEYSETCRYPT_VERIFYCONTEXT__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb9d
push 0xf0000008
push 0x18
push 0
push 0
lea eax, [ebp - 0x19418]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1003c7bc
push str.Error_during_CryptAcquireContext_CRYPT_NEWKEYSETCRYPT_VERIFYCONTEXT__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb9d
lea ecx, [ebp - 0x19414]
push ecx
push 0
push 0
push 0x800e
mov edx, dword [ebp - 0x19418]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1003c7f2
push str.Error_during_CryptCreateHash__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb9d
cmp dword [ebp + 8], 2
jne 0x1003c947
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x19414]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1003c833
push 0x10060e08
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb9d
mov dword [ebp - 0x1983c], 0
push 0
lea eax, [ebp - 0x1983c]
push eax
push 0
push 4
mov ecx, dword [ebp - 0x19414]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1003c93d
mov dword [ebp - 0x19840], 0
push 0
lea edx, [ebp - 0x19840]
push edx
push 0
push 2
mov eax, dword [ebp - 0x19414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1003c93d
mov ecx, dword [ebp - 0x19840]
push ecx
call fcn.100404fb
add esp, 4
mov dword [ebp - 0x19844], eax
push 0
lea edx, [ebp - 0x19840]
push edx
mov eax, dword [ebp - 0x19844]
push eax
push 2
mov ecx, dword [ebp - 0x19414]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1003c925
mov dword [ebp - 0x19848], 0
jmp 0x1003c8de
mov edx, dword [ebp - 0x19848]
add edx, 1
mov dword [ebp - 0x19848], edx
mov eax, dword [ebp - 0x19848]
cmp eax, dword [ebp - 0x19840]
jae 0x1003c918
mov ecx, dword [ebp - 0x19844]
add ecx, dword [ebp - 0x19848]
movzx edx, byte [ecx]
push edx
push str._2.2x
mov eax, dword [ebp - 0x19848]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + eax*2]
push edx
call fcn.1003e91e
add esp, 0xc
jmp 0x1003c8cf
mov eax, dword [ebp - 0x19414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x19844], 0
je 0x1003c93d
mov ecx, dword [ebp - 0x19844]
push ecx
call fcn.1004041e
add esp, 4
jmp 0x1003cb9d
push 0
lea edx, [ebp - 0x19408]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x19408]
push eax
mov ecx, dword [ebp - 0x19414]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1003c984
push str.Error_during_CryptHashData.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb9d
lea edx, [ebp - 0x19410]
push edx
push 1
mov eax, dword [ebp - 0x19414]
push eax
push 0x6610
mov ecx, dword [ebp - 0x19418]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1003c9bf
push str.Error_during_CryptDeriveKey__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb9d
lea edx, [ebp - 0x19008]
push edx
call fcn.1003e420
add esp, 4
mov dword [ebp - 0x1941c], eax
mov eax, dword [ebp - 0x1941c]
add eax, 0x400
push eax
call fcn.100404fb
add esp, 4
mov dword [ebp - 0x19824], eax
cmp dword [ebp - 0x19824], 0
je 0x1003c9f9
jmp 0x1003ca0e
push str.Out_of_memory.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb9d
mov ecx, dword [ebp - 0x1941c]
push ecx
push 0
mov edx, dword [ebp - 0x19824]
push edx
call fcn.1003e4c0
add esp, 0xc
mov byte [ebp - 0x19831], 1
cmp dword [ebp + 8], 0
je 0x1003cb09
lea eax, [ebp - 0x19008]
push eax
call fcn.1003e420
add esp, 4
mov dword [ebp - 0x1940c], eax
lea ecx, [ebp - 0x19008]
push ecx
mov edx, dword [ebp - 0x19824]
push edx
call fcn.1003fd60
add esp, 8
mov eax, dword [ebp - 0x1940c]
add eax, 0x400
push eax
lea ecx, [ebp - 0x1940c]
push ecx
mov edx, dword [ebp - 0x19824]
push edx
push 0
movzx eax, byte [ebp - 0x19831]
push eax
push 0
mov ecx, dword [ebp - 0x19410]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1003caae
push str.Error_during_CryptEncrypt.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb9d
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
mov dword [ebp - 0x1984c], 0
jmp 0x1003cacf
mov eax, dword [ebp - 0x1984c]
add eax, 1
mov dword [ebp - 0x1984c], eax
mov ecx, dword [ebp - 0x1984c]
cmp ecx, dword [ebp - 0x1940c]
jae 0x1003cb04
mov edx, dword [ebp - 0x19824]
add edx, dword [ebp - 0x1984c]
movzx eax, byte [edx]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str._s_02x
mov edx, dword [ebp + 0x14]
push edx
call fcn.1003e91e
add esp, 0x10
jmp 0x1003cac0
jmp 0x1003cb9d
mov eax, dword [ebp - 0x19824]
push eax
lea ecx, [ebp - 0x19008]
push ecx
call fcn.1003c4c0
add esp, 8
lea edx, [ebp - 0x19008]
push edx
call fcn.1003e420
add esp, 4
shr eax, 1
mov dword [ebp - 0x1940c], eax
lea eax, [ebp - 0x1940c]
push eax
mov ecx, dword [ebp - 0x19824]
push ecx
push 0
movzx edx, byte [ebp - 0x19831]
push edx
push 0
mov eax, dword [ebp - 0x19410]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x1003cb70
push str.Error_during_CryptDecrypt.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb9d
mov ecx, dword [ebp - 0x1940c]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x19824]
add edx, 4
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.1003fe80
add esp, 0xc
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x1940c]
mov byte [ecx - 4], 0
cmp dword [ebp - 0x19824], 0
je 0x1003cbb5
mov edx, dword [ebp - 0x19824]
push edx
call fcn.1004041e
add esp, 4
cmp dword [ebp - 0x19414], 0
je 0x1003cbe4
mov eax, dword [ebp - 0x19414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x1003cbda
push str.Error_during_CryptDestroyHash._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x19414], 0
cmp dword [ebp - 0x19410], 0
je 0x1003cc09
mov ecx, dword [ebp - 0x19410]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x1003cc09
push str.Error_during_CryptDestroyKey__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x19418], 0
je 0x1003cc30
push 0
mov edx, dword [ebp - 0x19418]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x1003cc30
push str.Error_during_CryptReleaseContext__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003e4ab
mov esp, ebp
pop ebp
ret