Function at 0x100d87e0
Capabilities:
Encrypt data via sspi

Disassembly:
sub esp, 0x54
mov eax, dword [0x101c6040]
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 0x100d8817
push eax
call fcn.10076990
add esp, 4
mov dword [ebp + 0x2c], edi
cmp byte [ebp + 0x39], 0
je 0x100d8843
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 0x100d8859
push str.QueryContextAttributes
push eax
call fcn.100d8cd0
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.10046e60
add esp, 0x54
ret
test ebx, ebx
je 0x100d886a
mov eax, dword [esp + 0x74]
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x100d8882
lea eax, [esp + 0x14]
push eax
push esi
call fcn.100d8bd0
mov edi, eax
add esp, 8
test edi, edi
je 0x100d8843
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
add esi, dword [esp + 0x38]
add esi, eax
push esi
call fcn.100769a0
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x100d88aa
push edi
call fcn.10076990
add esp, 4
jmp 0x100d8843
mov eax, dword [esp + 0x38]
lea edx, [eax + ebp]
test ebx, ebx
je 0x100d8924
mov ecx, ebx
mov dword [edx], 1
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d88c0
sub esi, dword [esp + 0x38]
add edx, 4
sub esi, 4
sub ecx, edi
je 0x100d898e
test edx, edx
jne 0x100d88f2
call fcn.10057cd5
mov dword [eax], 0x16
call fcn.1004da09
jmp 0x100d898e
cmp esi, ecx
jb 0x100d8906
push ecx
push ebx
push edx
call fcn.10048db0
add esp, 0xc
jmp 0x100d898e
push esi
push 0
push edx
call fcn.10048bd0
add esp, 0xc
call fcn.10057cd5
mov dword [eax], 0x22
call fcn.1004da09
jmp 0x100d898e
mov ebx, dword [esp + 0x14]
sub esi, eax
test ebx, ebx
je 0x100d8985
test edx, edx
jne 0x100d893f
call fcn.10057cd5
mov dword [eax], 0x16
jmp 0x100d8980
test edi, edi
je 0x100d8954
cmp esi, ebx
jb 0x100d8954
push ebx
push edi
push edx
call fcn.10048db0
add esp, 0xc
jmp 0x100d8985
push esi
push 0
push edx
call fcn.10048bd0
add esp, 0xc
test edi, edi
jne 0x100d8971
call fcn.10057cd5
mov dword [eax], 0x16
jmp 0x100d8980
cmp esi, ebx
jae 0x100d8985
call fcn.10057cd5
mov dword [eax], 0x22
call fcn.1004da09
push edi
call fcn.10076990
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, connect
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 0x100d8a26
push ebp
call fcn.10076990
push 0x101ad898
push esi
call fcn.100d8cd0
add esp, 0xc
jmp 0x100d8843
mov esi, dword [esp + 0x54]
add esi, dword [esp + 0x48]
add esi, dword [esp + 0x3c]
push esi
call fcn.100769a0
mov ebx, dword [esp + 0x40]
add esp, 4
mov ebp, dword [esp + 0x44]
mov edi, eax
test ebx, ebx
je 0x100d8aa0
test edi, edi
jne 0x100d8a5a
call fcn.10057cd5
mov dword [eax], 0x16
jmp 0x100d8a9b
test ebp, ebp
je 0x100d8a6f
cmp esi, ebx
jb 0x100d8a6f
push ebx
push ebp
push edi
call fcn.10048db0
add esp, 0xc
jmp 0x100d8aa0
push esi
push 0
push edi
call fcn.10048bd0
add esp, 0xc
test ebp, ebp
jne 0x100d8a8c
call fcn.10057cd5
mov dword [eax], 0x16
jmp 0x100d8a9b
cmp esi, ebx
jae 0x100d8aa0
call fcn.10057cd5
mov dword [eax], 0x22
call fcn.1004da09
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 0x100d8b15
test ecx, ecx
jne 0x100d8acc
call fcn.10057cd5
mov dword [eax], 0x16
jmp 0x100d8b10
test eax, eax
je 0x100d8ae1
cmp ebx, ebp
jb 0x100d8ae1
push ebp
push eax
push ecx
call fcn.10048db0
add esp, 0xc
jmp 0x100d8b15
push ebx
push 0
push ecx
call fcn.10048bd0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x100d8b01
call fcn.10057cd5
mov dword [eax], 0x16
jmp 0x100d8b10
cmp ebx, ebp
jae 0x100d8b15
call fcn.10057cd5
mov dword [eax], 0x22
call fcn.1004da09
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 0x100d8b84
test eax, eax
jne 0x100d8b48
call fcn.10057cd5
mov dword [eax], 0x16
jmp 0x100d8b7f
test ecx, ecx
je 0x100d8b5d
cmp ebx, ebp
jb 0x100d8b5d
push ebp
push ecx
push eax
call fcn.10048db0
add esp, 0xc
jmp 0x100d8b84
push ebx
push 0
push eax
call fcn.10048bd0
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x100d8b3b
cmp ebx, ebp
jae 0x100d8b84
call fcn.10057cd5
mov dword [eax], 0x22
call fcn.1004da09
push esi
push edi
call fcn.100d8c50
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.10076990
push edi
call fcn.10076990
mov ecx, dword [esp + 0x70]
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10046e60
add esp, 0x54
ret