Function at 0x10002cef
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Generate random numbers via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x74
mov eax, 0x1003617b
call fcn.10035cb4
mov byte [ebp - 0x5a], dl
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
xor ecx, ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], ecx
xor eax, eax
lea edi, [ebp - 0x20]
xor edx, edx
inc edx
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
push 0xf
pop esi
mov dword [ebp - 0x40], 0x339631d4
stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 0x1479d63f
mov dword [ebp - 0x38], 0x4b6a94b8
mov dword [ebp - 0x34], 0xbb048241
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], esi
mov byte [ebx], cl
push 0xf0000000
push 0x18
push ecx
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], edx
push eax
mov byte [ebp - 0x59], cl
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor edi, edi
test eax, eax
je 0x10003076
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push 0x800c
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10003076
push edi
push 0x10
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10003076
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x30]
push 0x660e
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10003076
cmp byte [ebp - 0x5a], 0
lea eax, [ebp + 8]
je 0x10002f56
cmp ebx, eax
je 0x10002dea
cmp dword [ebp + 0x1c], esi
mov ecx, ebx
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
call fcn.1000490e
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x2c], eax
add eax, 0xf
push ecx
and eax, 0xfffffff0
mov ecx, ebx
push eax
call fcn.1000452b
lea eax, [ebp - 0x20]
push eax
push 8
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10003076
push 1
push 8
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x80]
call fcn.10002a22
pop ecx
pop ecx
cmp dword [eax + 0x14], esi
jbe 0x10002e2e
mov eax, dword [eax]
mov esi, eax
lea edi, [ebp - 0x20]
lea ecx, [ebp - 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10001abf
xor edi, edi
lea eax, [ebp - 0x20]
push edi
push eax
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x10003076
cmp dword [ebx + 0x14], 0xf
mov eax, ebx
jbe 0x10002e63
mov eax, dword [ebx]
push dword [ebx + 0x10]
lea ecx, [ebp - 0x2c]
push ecx
push eax
push edi
push 1
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x10003076
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.1000452b
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.10001ba0
lea ecx, [ebp - 0x58]
call fcn.10002b1b
add esp, 0x14
mov byte [ebp - 4], 2
mov ecx, ebx
push 0x10
call fcn.1000452b
cmp dword [ebx + 0x14], 0xf
mov edi, ebx
jbe 0x10002eb8
mov edi, dword [ebx]
lea esi, [ebp - 0x20]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x58]
push 0xf
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
cmp dword [ebp - 0x44], esi
push dword [ebp - 0x48]
cmova eax, dword [ebp - 0x58]
push eax
call fcn.100049f7
mov ecx, ebx
cmp dword [ebx + 0x14], esi
jbe 0x10002ee0
mov ecx, dword [ebx]
add ecx, dword [ebx + 0x10]
mov eax, ebx
cmp dword [ebx + 0x14], esi
jbe 0x10002ef7
mov eax, dword [ebx]
jmp 0x10002ef7
cmp byte [eax], 0x2b
jne 0x10002ef6
mov byte [eax], 0x2e
inc eax
cmp eax, ecx
jne 0x10002eee
mov ecx, ebx
cmp dword [ebx + 0x14], esi
jbe 0x10002f04
mov ecx, dword [ebx]
add ecx, dword [ebx + 0x10]
mov eax, ebx
cmp dword [ebx + 0x14], esi
jbe 0x10002f1b
mov eax, dword [ebx]
jmp 0x10002f1b
cmp byte [eax], 0x2f
jne 0x10002f1a
mov byte [eax], 0x5f
inc eax
cmp eax, ecx
jne 0x10002f12
mov ecx, ebx
cmp dword [ebx + 0x14], esi
jbe 0x10002f28
mov ecx, dword [ebx]
add ecx, dword [ebx + 0x10]
mov eax, ebx
cmp dword [ebx + 0x14], esi
jbe 0x10002f3f
mov eax, dword [ebx]
jmp 0x10002f3f
cmp byte [eax], 0x3d
jne 0x10002f3e
mov byte [eax], 0x2d
inc eax
cmp eax, ecx
jne 0x10002f36
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.10001abf
xor edi, edi
jmp 0x10003072
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 0x18]
cmp edx, esi
mov esi, dword [ebp + 8]
cmova ecx, esi
add ecx, edi
cmp edx, 0xf
cmova eax, esi
cmp eax, ecx
je 0x10002f89
cmp byte [eax], 0x2e
jne 0x10002f7b
mov byte [eax], 0x2b
inc eax
cmp eax, ecx
jne 0x10002f73
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
cmp edx, 0xf
lea eax, [ebp + 8]
lea ecx, [ebp + 8]
cmova eax, esi
cmova ecx, esi
add eax, edi
cmp ecx, eax
je 0x10002fb4
cmp byte [ecx], 0x5f
jne 0x10002fa6
mov byte [ecx], 0x2f
inc ecx
cmp ecx, eax
jne 0x10002f9e
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
cmp edx, 0xf
lea ecx, [ebp + 8]
lea eax, [ebp + 8]
cmova ecx, esi
add ecx, edi
cmp edx, 0xf
cmova eax, esi
cmp eax, ecx
je 0x10002fdc
cmp byte [eax], 0x2d
jne 0x10002fd4
mov byte [eax], 0x3d
inc eax
cmp eax, ecx
jne 0x10002fcc
mov edi, dword [ebp + 0x18]
sub esp, 0x18
lea eax, [edi - 0x10]
mov ecx, esp
push eax
push ecx
push ecx
lea ecx, [ebp + 8]
call fcn.100044d9
lea ecx, [ebp - 0x80]
call fcn.10002c02
add esp, 0x18
mov ecx, ebx
push eax
call fcn.10001ae2
lea ecx, [ebp - 0x80]
call fcn.10001abf
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x2c], eax
add eax, 0xf
push ecx
and eax, 0xfffffff0
mov ecx, ebx
push eax
call fcn.1000452b
cmp dword [ebp + 0x1c], 0xf
lea esi, [ebp + 8]
lea edi, [ebp - 0x20]
cmova esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push eax
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x10003076
cmp dword [ebx + 0x14], 0xf
mov eax, ebx
jbe 0x10003051
mov eax, dword [ebx]
lea ecx, [ebp - 0x2c]
push ecx
push eax
push edi
push 1
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10003076
push ecx
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.1000452b
mov byte [ebp - 0x59], 1
cmp dword [ebp - 0x24], 0
je 0x10003085
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x30], 0
je 0x10003094
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x28], 0
je 0x100030a4
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [ebp - 0x59], 0
jne 0x100030b7
push edi
push 0x10037454
mov ecx, ebx
call fcn.1000490e
lea ecx, [ebp + 8]
call fcn.10001abf
mov eax, ebx
call fcn.10035c72
ret