Function at 0x1000befe
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
push 0xf0000000
push 1
push 0x1001a339
push 0x1001a339
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1000bf87
push 0x24
push 0x402fa4c
push 6
call fcn.10013e86
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1000bfec
mov dword [ebp - 0x28], esp
push 0
push 1
push 0x1001a339
push 0x1001a339
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1000bfd5
push 0x7d
push 0x402fa4c
push 6
call fcn.10013e86
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1000bfec
mov eax, 0x1001a2a1
jmp 0x1000c30b
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x1000c008
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10013e7a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000c019
push ebx
call fcn.10013e74
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1000c039
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10013e7a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000c04a
push ebx
call fcn.10013e74
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
push 0
push 2
push 8
call fcn.1000c363
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000c07c
push ebx
call fcn.10013e74
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1000c093
mov eax, 0x1001a2a1
push eax
push 1
mov ebx, 0x194
call fcn.100147a0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.10014660
add esp, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebp - 8]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
mov ecx, 3
call fcn.10002549
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x1000c0ec
push ebx
call fcn.10013e74
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000c100
push ebx
call fcn.10013e74
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1000c117
mov eax, 0x1001a2a1
push eax
push 1
mov ebx, 0x194
call fcn.100147a0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000c14b
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x1000c175
push 0x239
push 0x402fa4c
push 6
call fcn.10013e86
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1000c1bd
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1000c1b3
push 0x26e
push 0x402fa4c
push 6
call fcn.10013e86
add esp, 0xc
mov eax, 0x1001a2a1
jmp 0x1000c30b
push dword [ebp - 0xc]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.10002549
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1000c1e7
push ebx
call fcn.10013e74
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x1000c1fe
mov eax, 0x1001a2a1
push eax
push 1
mov ebx, 0x194
call fcn.100147a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x1000c227
mov eax, 0x1001a2a1
push eax
push 1
mov ebx, 0x194
call fcn.100147a0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000c251
add eax, 8
push eax
push 0
push 1
push 0
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1000c28a
push 0x395
push 0x402fa4c
push 6
call fcn.10013e86
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1000c2a1
mov eax, 0x1001a2a1
jmp 0x1000c30b
push 0x80000301
push 0
push dword [ebp - 0x24]
push VariantClear
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x1000c2be
mov eax, 0x1001a2a1
push eax
push 2
mov ebx, 0x1a0
call fcn.10014a20
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1000c2e8
push ebx
call fcn.10013e74
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000c306
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10013e7a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000c30b
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000c31c
push ebx
call fcn.10013e74
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000c32c
push ebx
call fcn.10013e74
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000c33c
push ebx
call fcn.10013e74
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000c34c
push ebx
call fcn.10013e74
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1000c35c
push ebx
call fcn.10013e74
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc