Function at 0x1009e8f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f566
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1019c880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp + 8]
call fcn.100798e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
push 0xf0000000
push 0x18
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1009e978
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x1009e970
and dword [ebp - 0x14], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.100850b0
nop
mov eax, dword [ebp + 8]
jmp 0x1009eb17
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.100a1800
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1009e9c8
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
and eax, 1
je 0x1009e9c0
and dword [ebp - 0x14], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.100850b0
nop
mov eax, dword [ebp + 8]
jmp 0x1009eb17
lea ecx, [ebp - 0xd]
call fcn.10007c90
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.100772d0
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10077100
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x5c]
call fcn.1007f8b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.1008d130
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10077050
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1009ea9c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.100850b0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
and ecx, 1
je 0x1009ea97
and dword [ebp - 0x14], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.100850b0
nop
mov eax, dword [ebp + 8]
jmp 0x1009eb17
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x5c]
call fcn.1008c9c0
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.1008c6e0
mov edx, dword [eax]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10092b80
nop
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.100850b0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
and ecx, 1
je 0x1009eb14
and dword [ebp - 0x14], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.100850b0
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret