Function at 0x100a6860
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.100ac3c0
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0xc]
cmp eax, 2
jne 0x100a6895
mov dword [esi], ebx
mov dword [esi + 4], edi
jmp 0x100a6aca
test eax, eax
je 0x100a69e2
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 0x100a6a22
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 0x100a6913
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x40]
sub eax, ebp
cmp eax, edi
jb 0x100a6ad4
mov eax, dword [esp + 0x5c]
cmp edi, 2
mov ecx, dword [eax + 0x44]
lea eax, [ecx + ebp]
jb 0x100a6908
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 0x100a6b13
cmp esi, ebp
ja 0x100a6b1f
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 0x100a6b2b
mov eax, ecx
sub eax, esi
jb 0x100a6b37
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 0x100a69f1
mov esi, dword [esp + 0x58]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x100a6aca
mov byte [esi], 0
mov dword [esi + 4], 0x80090317
jmp 0x100a6aca
mov eax, dword [esp + 0x10]
mov ebp, dword [edi + 0x48]
add eax, dword [esp + 4]
add eax, dword [esp + 0x1c]
cmp ebp, eax
jb 0x100a6a09
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 0x100a6aa0
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 0x100a6b07
mov ebp, dword [esp + 0x5c]
mov ecx, dword [ebp + 0xa4]
test ecx, ecx
je 0x100a6af6
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.101530b0
add esp, 0x14
cmp byte [esp + 4], 5
je 0x100a6ab6
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edi, eax
shr edi, 0x10
cmp al, 4
jne 0x100a6aba
add esi, ebx
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x38], esi
mov ebp, dword [ebp + 0x48]
cmp ebp, esi
jne 0x100a6a40
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 0x100a6aca
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 1
push 1
push edi
push ebp
push eax
call fcn.101c6270
add esp, 0x14
mov eax, dword [esp + 0x5c]
mov ebp, dword [eax + 0x48]
jmp 0x100a68dc
push 0x101dcda4
push 0x29
push str.assertion_failed:__self.context.is_null__
call fcn.101cc600
push 0x101ddea4
push ebp
push esi
call fcn.101cc8f0
push 0x101dde24
push esi
push ebx
call fcn.101cc9b0
push 0x101dde24
push ebp
push esi
call fcn.101cc950
push 0x101dde34
push ecx
push ebx
call fcn.101cc950
push 0x101dde44
push ecx
push esi
call fcn.101cc950
int3