Function at 0x4a77a7
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov dword [ecx - 4], esp
or dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x503680
mov esi, dword fs:[0]
mov dword [ecx], esi
mov dword fs:[0], ecx
and dword [ecx + 8], 0
lea ecx, [ebp - 0x68]
mov dword [edx + 0xc0], eax
call fcn.004a7a70
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x60]
cmp eax, 2
jne 0x4a7811
mov ebx, dword [ebp - 0x20]
cmp cl, 4
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], esi
je 0x4a79fe
jmp 0x4a7a0f
mov ebx, dword [ebp - 0x20]
test eax, eax
je 0x4a7993
mov edx, dword [ebx + 0x108]
mov eax, dword [ebx + 0xf8]
xor eax, edx
or eax, dword [ebx + 0xfc]
jne 0x4a79d8
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x24], edi
cmp eax, ecx
cmovb ecx, eax
lea eax, [ecx + edi]
mov dword [ebp - 0x34], ecx
add esi, eax
mov dword [ebp - 0x2c], eax
cmp edx, esi
jae 0x4a786b
lea ecx, [ebx + 0x100]
mov edx, esi
call fcn.00421c4b
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebx + 0x108]
mov ecx, dword [ebx + 0x104]
push 0x57b2dc
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.004a69e5
add esp, 0xc
mov ecx, eax
push 0x57b2ec
push dword [ebp - 0x34]
push dword [ebp + 0xc]
call fcn.00463d7d
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x104]
mov edx, dword [eax + 0x108]
push 0x57b2fc
push dword [ebp - 0x24]
call fcn.004a6a02
pop ecx
pop esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
test eax, eax
cmove ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0x104]
mov edx, dword [eax + 0x108]
push 0x57b30c
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.004a69e5
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x108]
mov ecx, dword [eax + 0x104]
push 0x57b31c
push dword [ebp - 0x2c]
call fcn.004a69d0
pop ecx
pop esi
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x28]
test esi, esi
cmove edi, esi
test eax, eax
cmove edx, eax
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 6
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x68]
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x128
push 0
push eax
push 0
push ecx
call dword [sym.imp.secur32.dll_EncryptMessage]
mov esi, eax
test eax, eax
je 0x4a79a7
mov ebx, dword [ebp - 0x20]
and dword [ebp - 0x68], 0
xor ecx, ecx
jmp 0x4a7a0c
and dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0x80090317
mov esi, 0x80090317
xor ecx, ecx
jmp 0x4a7a0f
mov eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x20]
add eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x50]
cmp dword [ebx + 0x108], eax
jb 0x4a79c1
mov dword [ebx + 0x108], eax
mov eax, dword [ebp - 0x34]
and dword [ebx + 0xfc], 0
and dword [ebx + 0xf8], 0
mov dword [ebx + 0x158], eax
lea ecx, [ebp - 0x68]
mov edx, ebx
call fcn.004a8b46
cmp byte [ebp - 0x68], 4
jne 0x4a79ed
mov ebx, dword [ebp - 0x20]
jmp 0x4a79f8
mov ecx, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x20]
cmp cl, 4
jne 0x4a7a06
mov esi, dword [ebx + 0x158]
mov eax, dword [ebp - 0x30]
mov byte [eax], 4
jmp 0x4a7a3f
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], esi
mov edi, ecx
lea ecx, [ebp - 0x68]
call fcn.0043cb60
cmp al, 0xd
jne 0x4a7a3a
mov eax, dword [ebp - 0x30]
and dword [ebx + 0xc0], 0
or dword [ebp - 0x10], 0xffffffff
mov byte [eax], 5
lea eax, [ebp - 0x68]
push eax
call fcn.0046ab0e
pop eax
jmp 0x4a7a49
mov eax, dword [ebp - 0x30]
mov dword [eax], edi
and dword [ebx + 0xc0], 0
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret