Function at 0x1000c810
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb5a7
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x434
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
jne 0x1000c873
push 0x234
push 0x1010cdfc
push 0x1010ce30
call fcn.100cb557
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x1000c890
push 0x235
push 0x1010ce48
push 0x1010ce7c
call fcn.100cb557
add esp, 0xc
mov edx, dword [ebp - 0x43c]
cmp dword [edx + 8], 0
jne 0x1000c8b8
lea ecx, [ebp - 0x420]
call fcn.1000e1f0
push 0x101508c8
lea eax, [ebp - 0x420]
push eax
call fcn.100cb4c0
mov ecx, dword [ebp - 0x43c]
cmp dword [ecx + 4], 0
jne 0x1000c8e0
lea ecx, [ebp - 0x428]
call fcn.1000e170
push 0x101508b8
lea edx, [ebp - 0x428]
push edx
call fcn.100cb4c0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x414], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x18]
cmp ecx, 0x3e8
jae 0x1000c932
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x1000c939
mov dword [ebp - 0x1c], 0x3e8
push 0x3f0
push 0
lea eax, [ebp - 0x410]
push eax
call fcn.100cac20
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x410]
push eax
call fcn.100cd3b0
add esp, 0xc
cmp dword [ebp - 0x1c], 0x3e8
je 0x1000c97c
mov dword [ebp - 0x414], 1
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0
mov eax, dword [ebp - 0x414]
push eax
push 0
mov ecx, dword [ebp - 0x43c]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x1000c9cd
lea ecx, [ebp - 0x430]
call fcn.1000e4b0
push 0x10150a0c
lea eax, [ebp - 0x430]
push eax
call fcn.100cb4c0
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jbe 0x1000c9ef
push 0x26a
push 0x1010ce98
push 0x1010cecc
call fcn.100cb557
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x18]
jne 0x1000ca0e
push 0x26b
push 0x1010cf0c
push str._pRetPlaintext__cnt_
call fcn.100cb557
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100cd3b0
add esp, 0xc
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jb 0x1000ca3b
jmp 0x1000ca48
cmp dword [ebp - 0x414], 0
je 0x1000c919
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
push 0x3f0
lea eax, [ebp - 0x410]
push eax
call fcn.1000e470
add esp, 8
jmp 0x1000cacc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 0x10