Function at 0x4a5611
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], 0x503620
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 + 0x1c], eax
call fcn.004a589e
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x60]
cmp eax, 2
jne 0x4a5678
mov ebx, dword [ebp - 0x20]
cmp cl, 4
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], esi
je 0x4a5835
jmp 0x4a5846
mov ebx, dword [ebp - 0x20]
test eax, eax
je 0x4a57d6
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x50]
xor eax, edx
or eax, dword [ebx + 0x54]
jne 0x4a580f
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 0x4a56c3
lea ecx, [ebx + 0x58]
mov edx, esi
call fcn.00421c4b
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x5c]
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 + 0x5c]
mov edx, dword [eax + 0x60]
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 + 0x5c]
mov edx, dword [eax + 0x60]
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 + 0x60]
mov ecx, dword [eax + 0x5c]
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, 0x80
push 0
push eax
push 0
push ecx
call dword [sym.imp.secur32.dll_EncryptMessage]
mov esi, eax
test eax, eax
je 0x4a57ea
mov ebx, dword [ebp - 0x20]
and dword [ebp - 0x68], 0
xor ecx, ecx
jmp 0x4a5843
and dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0x80090317
mov esi, 0x80090317
xor ecx, ecx
jmp 0x4a5846
mov eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x20]
add eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x50]
cmp dword [ebx + 0x60], eax
jb 0x4a57fe
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x34]
and dword [ebx + 0x54], 0
and dword [ebx + 0x50], 0
mov dword [ebx + 0xb0], eax
lea ecx, [ebp - 0x68]
mov edx, ebx
call fcn.004a690c
cmp byte [ebp - 0x68], 4
jne 0x4a5824
mov ebx, dword [ebp - 0x20]
jmp 0x4a582f
mov ecx, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x20]
cmp cl, 4
jne 0x4a583d
mov esi, dword [ebx + 0xb0]
mov eax, dword [ebp - 0x30]
mov byte [eax], 4
jmp 0x4a5873
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 0x4a586e
mov eax, dword [ebp - 0x30]
and dword [ebx + 0x1c], 0
or dword [ebp - 0x10], 0xffffffff
mov byte [eax], 5
lea eax, [ebp - 0x68]
push eax
call fcn.0046ab0e
pop eax
jmp 0x4a587a
mov eax, dword [ebp - 0x30]
mov dword [eax], edi
and dword [ebx + 0x1c], 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