Function at 0x1001b6b0
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.1001da70
mov eax, dword [0x1003e830]
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 [0x100391c0]
mov dword [ebp - 0x1981c], ecx
mov edx, dword [0x100391c4]
mov dword [ebp - 0x19818], edx
push 0x3f4
push 0
lea eax, [ebp - 0x19814]
push eax
call fcn.1001d590
add esp, 0xc
mov byte [ebp - 0x19408], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x19407]
push ecx
call fcn.1001d590
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x100391c8
lea eax, [ebp - 0x19408]
push eax
call fcn.1001d9ee
add esp, 0xc
mov byte [ebp - 0x19008], 0
push 0x18fff
push 0
lea ecx, [ebp - 0x19007]
push ecx
call fcn.1001d590
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x1001b7da
mov edx, dword [ebp + 0x10]
push edx
push str.june_s
lea eax, [ebp - 0x19008]
push eax
call fcn.1001d9ee
add esp, 0xc
jmp 0x1001b7f2
mov ecx, dword [ebp + 0x10]
push ecx
push 0x100391d8
lea edx, [ebp - 0x19008]
push edx
call fcn.1001d9ee
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 0x1001b88c
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 0x1001b88c
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 0x1001b85b
push str.Error_during_CryptAcquireContext_CRYPT_DELETEKEYSETCRYPT_VERIFYCONTEXT__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001bc6d
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 0x1001b88c
push str.Error_during_CryptAcquireContext_CRYPT_NEWKEYSETCRYPT_VERIFYCONTEXT__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001bc6d
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 0x1001b8c2
push str.Error_during_CryptCreateHash__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001bc6d
cmp dword [ebp + 8], 2
jne 0x1001ba17
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 0x1001b903
push 0x10039298
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001bc6d
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 0x1001ba0d
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 0x1001ba0d
mov ecx, dword [ebp - 0x19840]
push ecx
call fcn.1001fd67
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 0x1001b9f5
mov dword [ebp - 0x19848], 0
jmp 0x1001b9ae
mov edx, dword [ebp - 0x19848]
add edx, 1
mov dword [ebp - 0x19848], edx
mov eax, dword [ebp - 0x19848]
cmp eax, dword [ebp - 0x19840]
jae 0x1001b9e8
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.1001d9ee
add esp, 0xc
jmp 0x1001b99f
mov eax, dword [ebp - 0x19414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x19844], 0
je 0x1001ba0d
mov ecx, dword [ebp - 0x19844]
push ecx
call fcn.1001fc8a
add esp, 4
jmp 0x1001bc6d
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 0x1001ba54
push str.Error_during_CryptHashData.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001bc6d
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 0x1001ba8f
push str.Error_during_CryptDeriveKey__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001bc6d
lea edx, [ebp - 0x19008]
push edx
call fcn.1001d4f0
add esp, 4
mov dword [ebp - 0x1941c], eax
mov eax, dword [ebp - 0x1941c]
add eax, 0x400
push eax
call fcn.1001fd67
add esp, 4
mov dword [ebp - 0x19824], eax
cmp dword [ebp - 0x19824], 0
je 0x1001bac9
jmp 0x1001bade
push str.Out_of_memory.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001bc6d
mov ecx, dword [ebp - 0x1941c]
push ecx
push 0
mov edx, dword [ebp - 0x19824]
push edx
call fcn.1001d590
add esp, 0xc
mov byte [ebp - 0x19831], 1
cmp dword [ebp + 8], 0
je 0x1001bbd9
lea eax, [ebp - 0x19008]
push eax
call fcn.1001d4f0
add esp, 4
mov dword [ebp - 0x1940c], eax
lea ecx, [ebp - 0x19008]
push ecx
mov edx, dword [ebp - 0x19824]
push edx
call fcn.1001e050
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 0x1001bb7e
push str.Error_during_CryptEncrypt.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001bc6d
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
mov dword [ebp - 0x1984c], 0
jmp 0x1001bb9f
mov eax, dword [ebp - 0x1984c]
add eax, 1
mov dword [ebp - 0x1984c], eax
mov ecx, dword [ebp - 0x1984c]
cmp ecx, dword [ebp - 0x1940c]
jae 0x1001bbd4
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.1001d9ee
add esp, 0x10
jmp 0x1001bb90
jmp 0x1001bc6d
mov eax, dword [ebp - 0x19824]
push eax
lea ecx, [ebp - 0x19008]
push ecx
call fcn.1001b590
add esp, 8
lea edx, [ebp - 0x19008]
push edx
call fcn.1001d4f0
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 0x1001bc40
push str.Error_during_CryptDecrypt.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1001bc6d
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.1001e170
add esp, 0xc
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x1940c]
mov byte [ecx - 4], 0
cmp dword [ebp - 0x19824], 0
je 0x1001bc85
mov edx, dword [ebp - 0x19824]
push edx
call fcn.1001fc8a
add esp, 4
cmp dword [ebp - 0x19414], 0
je 0x1001bcb4
mov eax, dword [ebp - 0x19414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x1001bcaa
push str.Error_during_CryptDestroyHash._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x19414], 0
cmp dword [ebp - 0x19410], 0
je 0x1001bcd9
mov ecx, dword [ebp - 0x19410]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x1001bcd9
push str.Error_during_CryptDestroyKey__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x19418], 0
je 0x1001bd00
push 0
mov edx, dword [ebp - 0x19418]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x1001bd00
push str.Error_during_CryptReleaseContext__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001d57b
mov esp, ebp
pop ebp
ret