Function at 0x1009cf90
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.100a2650
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0xc]
cmp eax, 2
jne 0x1009cfc5
mov dword [esi], ebx
mov dword [esi + 4], edi
jmp 0x1009d1fa
test eax, eax
je 0x1009d112
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 0x1009d152
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 0x1009d043
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x40]
sub eax, ebp
cmp eax, edi
jb 0x1009d204
mov eax, dword [esp + 0x5c]
cmp edi, 2
mov ecx, dword [eax + 0x44]
lea eax, [ecx + ebp]
jb 0x1009d038
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 0x1009d243
cmp esi, ebp
ja 0x1009d24f
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 0x1009d25b
mov eax, ecx
sub eax, esi
jb 0x1009d267
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 0x1009d121
mov esi, dword [esp + 0x58]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x1009d1fa
mov byte [esi], 0
mov dword [esi + 4], 0x80090317
jmp 0x1009d1fa
mov eax, dword [esp + 0x10]
mov ebp, dword [edi + 0x48]
add eax, dword [esp + 4]
add eax, dword [esp + 0x1c]
cmp ebp, eax
jb 0x1009d139
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 0x1009d1d0
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 0x1009d237
mov ebp, dword [esp + 0x5c]
mov ecx, dword [ebp + 0xa4]
test ecx, ecx
je 0x1009d226
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.10152f50
add esp, 0x14
cmp byte [esp + 4], 5
je 0x1009d1e6
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edi, eax
shr edi, 0x10
cmp al, 4
jne 0x1009d1ea
add esi, ebx
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x38], esi
mov ebp, dword [ebp + 0x48]
cmp ebp, esi
jne 0x1009d170
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 0x1009d1fa
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.101c6630
add esp, 0x14
mov eax, dword [esp + 0x5c]
mov ebp, dword [eax + 0x48]
jmp 0x1009d00c
push 0x101dce44
push 0x29
push str.assertion_failed:__self.context.is_null__
call fcn.101cc940
push 0x101dc980
push ebp
push esi
call fcn.101ccc30
push 0x101dc900
push esi
push ebx
call fcn.101cccf0
push 0x101dc900
push ebp
push esi
call fcn.101ccc90
push 0x101dc910
push ecx
push ebx
call fcn.101ccc90
push 0x101dc920
push ecx
push esi
call fcn.101ccc90
int3