Function at 0x1000ecc0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0xc0000001
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000ea60
add esp, 0x20
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1000ed34
jmp 0x1000ee44
cmp dword [ebp - 4], 0
je 0x1000ed43
mov dword [ebp - 0x24], 1
jmp 0x1000ed4a
mov dword [ebp - 0x24], 0
cmp dword [ebp - 4], 0
je 0x1000ed58
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
jmp 0x1000ed5f
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.100061f0
push eax
mov ecx, dword [ebp + 8]
call fcn.10006200
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1000ed9f
jmp 0x1000ee44
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000edc0
jmp 0x1000ee44
cmp dword [ebp - 4], 0
je 0x1000edcf
mov dword [ebp - 0x2c], 1
jmp 0x1000edd6
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 4], 0
je 0x1000ede4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
jmp 0x1000edeb
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.100061f0
push eax
mov ecx, dword [ebp + 8]
call fcn.10006200
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1000ee2c
jmp 0x1000ee44
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.100025c0
xor ecx, ecx
jne 0x1000ecfe
cmp dword [ebp - 0x1c], 0
je 0x1000ee56
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
cmp dword [ebp - 0x14], 0
je 0x1000ee66
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
cmp dword [ebp - 0xc], 0
je 0x1000ee7f
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x1000ee98
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x20], 0
je 0x1000eeb1
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], 0
jl 0x1000eec0
mov dword [ebp - 0x34], 1
jmp 0x1000eec7
mov dword [ebp - 0x34], 0
mov al, byte [ebp - 0x34]
mov esp, ebp
pop ebp
ret