Function at 0x1000cb00
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb5da
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x448
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 - 0x44c], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
jne 0x1000cb63
push 0x2b3
push 0x1010cfd0
push str.pCiphertext
call fcn.100cb557
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x1000cb80
push 0x2b4
push 0x1010d01c
push str.pRetPlaintext
call fcn.100cb557
add esp, 0xc
cmp dword [ebp + 0x14], 0
jne 0x1000cb9d
push 0x2b5
push 0x1010d06c
push str.pdwRetBytes
call fcn.100cb557
add esp, 0xc
mov eax, dword [ebp - 0x44c]
cmp dword [eax + 8], 0
jne 0x1000cbc5
lea ecx, [ebp - 0x424]
call fcn.1000e1f0
push 0x101508c8
lea ecx, [ebp - 0x424]
push ecx
call fcn.100cb4c0
mov edx, dword [ebp - 0x44c]
cmp dword [edx + 4], 0
jne 0x1000cbed
lea ecx, [ebp - 0x42c]
call fcn.1000e170
push 0x101508b8
lea eax, [ebp - 0x42c]
push eax
call fcn.100cb4c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0x7d0
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x414], ecx
cmp dword [ebp - 0x414], 0
jne 0x1000cc52
lea ecx, [ebp - 0x438]
call fcn.1000e0f0
push 0x10150888
lea edx, [ebp - 0x438]
push edx
call fcn.100cb4c0
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x414]
push ecx
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x418], 0
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x18]
cmp edx, 0x3e8
jae 0x1000cc94
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x1000cc9b
mov dword [ebp - 0x1c], 0x3e8
push 0x3f0
push 0
lea ecx, [ebp - 0x410]
push ecx
call fcn.100cac20
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.100cd3b0
add esp, 0xc
cmp dword [ebp - 0x1c], 0x3e8
je 0x1000ccde
mov dword [ebp - 0x418], 1
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
mov ecx, dword [ebp - 0x418]
push ecx
push 0
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x1000cd2f
lea ecx, [ebp - 0x440]
call fcn.1000e4b0
push 0x10150a0c
lea ecx, [ebp - 0x440]
push ecx
call fcn.100cb4c0
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jb 0x1000cd51
push 0x2ef
push 0x1010d0b8
push 0x1010d0ec
call fcn.100cb557
add esp, 0xc
mov ecx, dword [ebp - 0x414]
add ecx, dword [ebp - 0x18]
jne 0x1000cd73
push 0x2f0
push 0x1010d128
push str._pPlaintext__cnt_
call fcn.100cb557
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x414]
add edx, dword [ebp - 0x18]
push edx
call fcn.100cd3b0
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x418], 0
je 0x1000cc7b
push 0x3f0
lea ecx, [ebp - 0x410]
push ecx
call fcn.1000e470
add esp, 8
jmp 0x1000ce22
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x414]
mov dword [ecx], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
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