Function at 0x1003c5c0
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.1003e980
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.1003e4a0
add esp, 0xc
mov byte [ebp - 0x19408], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x19407]
push ecx
call fcn.1003e4a0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x10060d38
lea eax, [ebp - 0x19408]
push eax
call fcn.1003e8fe
add esp, 0xc
mov byte [ebp - 0x19008], 0
push 0x18fff
push 0
lea ecx, [ebp - 0x19007]
push ecx
call fcn.1003e4a0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x1003c6ea
mov edx, dword [ebp + 0x10]
push edx
push str.june_s
lea eax, [ebp - 0x19008]
push eax
call fcn.1003e8fe
add esp, 0xc
jmp 0x1003c702
mov ecx, dword [ebp + 0x10]
push ecx
push 0x10060d48
lea edx, [ebp - 0x19008]
push edx
call fcn.1003e8fe
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 0x1003c79c
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 0x1003c79c
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 0x1003c76b
push str.Error_during_CryptAcquireContext_CRYPT_DELETEKEYSETCRYPT_VERIFYCONTEXT__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb7d
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 0x1003c79c
push str.Error_during_CryptAcquireContext_CRYPT_NEWKEYSETCRYPT_VERIFYCONTEXT__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb7d
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 0x1003c7d2
push str.Error_during_CryptCreateHash__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb7d
cmp dword [ebp + 8], 2
jne 0x1003c927
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 0x1003c813
push 0x10060e08
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb7d
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 0x1003c91d
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 0x1003c91d
mov ecx, dword [ebp - 0x19840]
push ecx
call fcn.100404db
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 0x1003c905
mov dword [ebp - 0x19848], 0
jmp 0x1003c8be
mov edx, dword [ebp - 0x19848]
add edx, 1
mov dword [ebp - 0x19848], edx
mov eax, dword [ebp - 0x19848]
cmp eax, dword [ebp - 0x19840]
jae 0x1003c8f8
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.1003e8fe
add esp, 0xc
jmp 0x1003c8af
mov eax, dword [ebp - 0x19414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x19844], 0
je 0x1003c91d
mov ecx, dword [ebp - 0x19844]
push ecx
call fcn.100403fe
add esp, 4
jmp 0x1003cb7d
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 0x1003c964
push str.Error_during_CryptHashData.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb7d
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 0x1003c99f
push str.Error_during_CryptDeriveKey__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb7d
lea edx, [ebp - 0x19008]
push edx
call fcn.1003e400
add esp, 4
mov dword [ebp - 0x1941c], eax
mov eax, dword [ebp - 0x1941c]
add eax, 0x400
push eax
call fcn.100404db
add esp, 4
mov dword [ebp - 0x19824], eax
cmp dword [ebp - 0x19824], 0
je 0x1003c9d9
jmp 0x1003c9ee
push str.Out_of_memory.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb7d
mov ecx, dword [ebp - 0x1941c]
push ecx
push 0
mov edx, dword [ebp - 0x19824]
push edx
call fcn.1003e4a0
add esp, 0xc
mov byte [ebp - 0x19831], 1
cmp dword [ebp + 8], 0
je 0x1003cae9
lea eax, [ebp - 0x19008]
push eax
call fcn.1003e400
add esp, 4
mov dword [ebp - 0x1940c], eax
lea ecx, [ebp - 0x19008]
push ecx
mov edx, dword [ebp - 0x19824]
push edx
call fcn.1003fd40
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 0x1003ca8e
push str.Error_during_CryptEncrypt.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb7d
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
mov dword [ebp - 0x1984c], 0
jmp 0x1003caaf
mov eax, dword [ebp - 0x1984c]
add eax, 1
mov dword [ebp - 0x1984c], eax
mov ecx, dword [ebp - 0x1984c]
cmp ecx, dword [ebp - 0x1940c]
jae 0x1003cae4
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.1003e8fe
add esp, 0x10
jmp 0x1003caa0
jmp 0x1003cb7d
mov eax, dword [ebp - 0x19824]
push eax
lea ecx, [ebp - 0x19008]
push ecx
call fcn.1003c4a0
add esp, 8
lea edx, [ebp - 0x19008]
push edx
call fcn.1003e400
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 0x1003cb50
push str.Error_during_CryptDecrypt.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1003cb7d
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.1003fe60
add esp, 0xc
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x1940c]
mov byte [ecx - 4], 0
cmp dword [ebp - 0x19824], 0
je 0x1003cb95
mov edx, dword [ebp - 0x19824]
push edx
call fcn.100403fe
add esp, 4
cmp dword [ebp - 0x19414], 0
je 0x1003cbc4
mov eax, dword [ebp - 0x19414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x1003cbba
push str.Error_during_CryptDestroyHash._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x19414], 0
cmp dword [ebp - 0x19410], 0
je 0x1003cbe9
mov ecx, dword [ebp - 0x19410]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x1003cbe9
push str.Error_during_CryptDestroyKey__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x19418], 0
je 0x1003cc10
push 0
mov edx, dword [ebp - 0x19418]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x1003cc10
push str.Error_during_CryptReleaseContext__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003e48b
mov esp, ebp
pop ebp
ret