Function at 0x10109810
Capabilities:
Encrypt data via sspi

Disassembly:
sub esp, 0x54
mov eax, dword [0x101f3600]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x68]
push edi
mov eax, dword [ebp + 0x2c]
xor edi, edi
mov dword [esp + 0x18], ebp
test eax, eax
je 0x10109847
push eax
call fcn.100a7a40
add esp, 4
mov dword [ebp + 0x2c], edi
cmp byte [ebp + 0x39], 0
je 0x10109873
lea ecx, [esp + 0x2c]
push ecx
lea eax, [ebp + 0x20]
push 0
push eax
mov dword [esp + 0x1c], eax
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x10109889
push str.QueryContextAttributes
push eax
call fcn.10109d00
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.100747a0
add esp, 0x54
ret
test ebx, ebx
je 0x1010989a
mov eax, dword [esp + 0x74]
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x101098b2
lea eax, [esp + 0x14]
push eax
push esi
call fcn.10109c00
mov edi, eax
add esp, 8
test edi, edi
je 0x10109873
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
add esi, dword [esp + 0x38]
add esi, eax
push esi
call fcn.100a7a50
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x101098da
push edi
call fcn.100a7a40
add esp, 4
jmp 0x10109873
mov eax, dword [esp + 0x38]
lea edx, [eax + ebp]
test ebx, ebx
je 0x10109954
mov ecx, ebx
mov dword [edx], 1
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101098f0
sub esi, dword [esp + 0x38]
add edx, 4
sub esi, 4
sub ecx, edi
je 0x101099be
test edx, edx
jne 0x10109922
call fcn.10080fc3
mov dword [eax], 0x16
call fcn.1007b604
jmp 0x101099be
cmp esi, ecx
jb 0x10109936
push ecx
push ebx
push edx
call fcn.10076440
add esp, 0xc
jmp 0x101099be
push esi
push 0
push edx
call fcn.10076270
add esp, 0xc
call fcn.10080fc3
mov dword [eax], 0x22
call fcn.1007b604
jmp 0x101099be
mov ebx, dword [esp + 0x14]
sub esi, eax
test ebx, ebx
je 0x101099b5
test edx, edx
jne 0x1010996f
call fcn.10080fc3
mov dword [eax], 0x16
jmp 0x101099b0
test edi, edi
je 0x10109984
cmp esi, ebx
jb 0x10109984
push ebx
push edi
push edx
call fcn.10076440
add esp, 0xc
jmp 0x101099b5
push esi
push 0
push edx
call fcn.10076270
add esp, 0xc
test edi, edi
jne 0x101099a1
call fcn.10080fc3
mov dword [eax], 0x16
jmp 0x101099b0
cmp esi, ebx
jae 0x101099b5
call fcn.10080fc3
mov dword [eax], 0x22
call fcn.1007b604
push edi
call fcn.100a7a40
add esp, 4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
push 0
mov dword [esp + 0x28], 3
lea ecx, [eax + ebp]
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
lea eax, [ecx + edx]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x54], ecx
xor ecx, ecx
cmp dword [esp + 0x7c], ecx
push eax
mov eax, reloc.WS2_32.dll_accept
mov dword [esp + 0x48], 2
cmovne eax, ecx
mov dword [esp + 0x4c], ebp
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 1
mov dword [esp + 0x68], 9
call sub.Secur32.dll_EncryptMessage
mov esi, eax
test esi, esi
je 0x10109a56
push ebp
call fcn.100a7a40
push 0x1012a504
push esi
call fcn.10109d00
add esp, 0xc
jmp 0x10109873
mov esi, dword [esp + 0x54]
add esi, dword [esp + 0x48]
add esi, dword [esp + 0x3c]
push esi
call fcn.100a7a50
mov ebx, dword [esp + 0x40]
add esp, 4
mov ebp, dword [esp + 0x44]
mov edi, eax
test ebx, ebx
je 0x10109ad0
test edi, edi
jne 0x10109a8a
call fcn.10080fc3
mov dword [eax], 0x16
jmp 0x10109acb
test ebp, ebp
je 0x10109a9f
cmp esi, ebx
jb 0x10109a9f
push ebx
push ebp
push edi
call fcn.10076440
add esp, 0xc
jmp 0x10109ad0
push esi
push 0
push edi
call fcn.10076270
add esp, 0xc
test ebp, ebp
jne 0x10109abc
call fcn.10080fc3
mov dword [eax], 0x16
jmp 0x10109acb
cmp esi, ebx
jae 0x10109ad0
call fcn.10080fc3
mov dword [eax], 0x22
call fcn.1007b604
mov edx, dword [esp + 0x3c]
mov ebx, esi
mov ebp, dword [esp + 0x48]
sub ebx, edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
lea ecx, [edx + edi]
test ebp, ebp
je 0x10109b45
test ecx, ecx
jne 0x10109afc
call fcn.10080fc3
mov dword [eax], 0x16
jmp 0x10109b40
test eax, eax
je 0x10109b11
cmp ebx, ebp
jb 0x10109b11
push ebp
push eax
push ecx
call fcn.10076440
add esp, 0xc
jmp 0x10109b45
push ebx
push 0
push ecx
call fcn.10076270
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x10109b31
call fcn.10080fc3
mov dword [eax], 0x16
jmp 0x10109b40
cmp ebx, ebp
jae 0x10109b45
call fcn.10080fc3
mov dword [eax], 0x22
call fcn.1007b604
mov eax, dword [esp + 0x48]
mov ebx, esi
mov ebp, dword [esp + 0x54]
sub ebx, eax
add eax, dword [esp + 0x3c]
sub ebx, dword [esp + 0x3c]
add eax, edi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
test ebp, ebp
je 0x10109bb4
test eax, eax
jne 0x10109b78
call fcn.10080fc3
mov dword [eax], 0x16
jmp 0x10109baf
test ecx, ecx
je 0x10109b8d
cmp ebx, ebp
jb 0x10109b8d
push ebp
push ecx
push eax
call fcn.10076440
add esp, 0xc
jmp 0x10109bb4
push ebx
push 0
push eax
call fcn.10076270
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x10109b6b
cmp ebx, ebp
jae 0x10109bb4
call fcn.10080fc3
mov dword [eax], 0x22
call fcn.1007b604
push esi
push edi
call fcn.10109c80
mov ecx, dword [esp + 0x20]
xor ebx, ebx
push dword [esp + 0x24]
test eax, eax
setne bl
mov dword [ecx + 0x2c], eax
lea ebx, [ebx*2 - 1]
call fcn.100a7a40
push edi
call fcn.100a7a40
mov ecx, dword [esp + 0x70]
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100747a0
add esp, 0x54
ret