Function at 0x100c0980
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
lea ecx, [esp + 4]
mov edx, ebp
call fcn.100c6680
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0xc]
cmp eax, 2
jne 0x100c09b5
mov dword [esi], ebx
mov dword [esi + 4], edi
jmp 0x100c0bea
test eax, eax
je 0x100c0b02
mov esi, dword [ebp + 0x38]
mov ecx, ebp
mov ebp, dword [ebp + 0x48]
mov eax, esi
xor eax, ebp
or eax, dword [ecx + 0x3c]
jne 0x100c0b42
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
cmovb ecx, eax
lea esi, [ecx + ebx]
mov dword [esp], ecx
add edi, esi
sub edi, ebp
jbe 0x100c0a33
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x40]
sub eax, ebp
cmp eax, edi
jb 0x100c0bf4
mov eax, dword [esp + 0x5c]
cmp edi, 2
mov ecx, dword [eax + 0x44]
lea eax, [ecx + ebp]
jb 0x100c0a28
mov dword [esp + 0x34], ecx
lea ecx, [edi - 1]
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x34]
lea ebp, [ebp + edi - 1]
add eax, ebp
mov ecx, dword [esp + 0x5c]
inc ebp
mov byte [eax], 0
mov dword [ecx + 0x48], ebp
cmp esi, ebx
jb 0x100c0c2f
cmp esi, ebp
ja 0x100c0c3b
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp]
mov eax, dword [edi + 0x44]
add eax, ebx
push ebp
push dword [esp + 0x64]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [edi + 0x48]
cmp ecx, ebx
jb 0x100c0c47
mov eax, ecx
sub eax, esi
jb 0x100c0c53
mov ecx, dword [edi + 0x44]
mov dword [esp + 4], ebx
mov dword [esp + 8], 7
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 4
add ebx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 1
add esi, ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
mov dword [esp + 0x20], 6
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], eax
lea eax, [edi + 0x68]
push 0
push ecx
push 0
push eax
call dword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x100c0b11
mov esi, dword [esp + 0x58]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x100c0bea
mov byte [esi], 0
mov dword [esi + 4], 0x80090317
jmp 0x100c0bea
mov eax, dword [esp + 0x10]
mov ebp, dword [edi + 0x48]
add eax, dword [esp + 4]
add eax, dword [esp + 0x1c]
cmp ebp, eax
jb 0x100c0b29
mov ebp, eax
mov dword [edi + 0x48], eax
mov eax, dword [esp]
xor esi, esi
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0xac], eax
cmp ebp, esi
je 0x100c0bc0
mov eax, dword [esp + 0x5c]
add eax, 0x94
mov dword [esp], eax
nop word cs:[eax + eax]
nop dword [eax]
mov eax, ebp
sub eax, esi
jb 0x100c0c23
mov ebp, dword [esp + 0x5c]
mov ecx, dword [ebp + 0xa4]
test ecx, ecx
je 0x100c0c12
mov edx, dword [ebp + 0x44]
add edx, esi
push eax
push edx
push ecx
push dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.1015d640
add esp, 0x14
cmp byte [esp + 4], 5
je 0x100c0bd6
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edi, eax
shr edi, 0x10
cmp al, 4
jne 0x100c0bda
add esi, ebx
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x38], esi
mov ebp, dword [ebp + 0x48]
cmp ebp, esi
jne 0x100c0b60
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov eax, dword [eax + 0xac]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100c0bea
mov ah, 0xd
mov al, 1
mov esi, dword [esp + 0x58]
mov byte [esi + 1], ah
mov word [esi + 2], di
mov byte [esi], al
mov dword [esi + 4], ebx
mov eax, esi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x5c]
add eax, 0x40
push edi
push ebp
push eax
call fcn.101c4450
add esp, 0xc
mov eax, dword [esp + 0x5c]
mov ebp, dword [eax + 0x48]
jmp 0x100c09fc
push 0x101da2b8
push 0x29
push str.assertion_failed:__self.context.is_null__
call fcn.101cb950
push 0x101dea60
push ebp
push esi
call fcn.101cbc60
push 0x101de9e0
push esi
push ebx
call fcn.101cbd20
push 0x101de9e0
push ebp
push esi
call fcn.101cbcc0
push 0x101de9f0
push ecx
push ebx
call fcn.101cbcc0
push 0x101dea00
push ecx
push esi
call fcn.101cbcc0
int3