Function at 0x4563ac
Capabilities:
Encrypt data via sspi

Disassembly:
push 0x4c
mov eax, 0x4cec93
call fcn.004019a4
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x20]
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x4c], eax
xor eax, eax
stosd dword es:[edi], eax
push ecx
push 4
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebx + 0x824]
push eax
call dword [sym.imp.Secur32.dll_QueryContextAttributesW]
test eax, eax
jns 0x4563ef
or eax, 0xffffffff
jmp 0x4565da
push 4
lea ecx, [ebp - 0x58]
call fcn.00456ec2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x28], 0
add eax, eax
push eax
call fcn.00456d88
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
call fcn.00456d88
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
call fcn.00456d88
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x58]
mov esi, dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x456599
mov ecx, dword [ebp - 0x28]
add ebx, 0x82c
mov dword [ebp - 0x48], ebx
cmp eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x44]
cmova eax, dword [ebp - 0x1c]
push eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
add eax, ecx
push eax
push ebx
call dword [sym.imp.msvcrt.dll_memcpy]
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, dword [ebp - 0x50]
add dword [ebp - 0x28], ecx
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 4], 7
mov dword [edi + 0x14], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [edi + 0xc], ecx
xor ecx, ecx
mov dword [edi + 0x10], 1
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x1c], 6
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x24], ecx
push ecx
mov dword [edi + 0x28], ecx
push eax
mov dword [eax], ecx
lea eax, [ebx + 0x824]
push ecx
push eax
mov dword [ebx + 0x834], edi
mov dword [ebx + 0x830], 4
call dword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
js 0x4565e2
push dword [edi]
mov ecx, ebx
push dword [edi + 8]
call fcn.0045511b
mov ebx, eax
cmp ebx, dword [edi]
jne 0x4565e5
push dword [edi + 0xc]
mov ecx, dword [ebp - 0x2c]
push dword [edi + 0x14]
call fcn.0045511b
mov ebx, eax
cmp ebx, dword [edi + 0xc]
jne 0x4565e5
push dword [edi + 0x18]
mov ecx, dword [ebp - 0x2c]
push dword [edi + 0x20]
call fcn.0045511b
mov ebx, eax
cmp ebx, dword [edi + 0x18]
jne 0x4565e5
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x45653b
push eax
call esi
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x45654a
push eax
call esi
pop ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x456559
push eax
call esi
pop ecx
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
add eax, eax
push eax
call fcn.00456d88
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
call fcn.00456d88
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
call fcn.00456d88
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
jne 0x456453
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0
je 0x4565a9
push dword [ebp - 0x34]
call esi
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 0
je 0x4565b9
push dword [ebp - 0x3c]
call esi
pop ecx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0
je 0x4565c9
push dword [ebp - 0x44]
call esi
pop ecx
mov ebx, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4565d8
push edi
call esi
pop ecx
mov eax, ebx
call fcn.00401a27
ret 8
or ebx, 0xffffffff
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4565f4
push eax
call esi
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x456603
push eax
call esi
pop ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4565cc
push eax
call esi
pop ecx
jmp 0x4565cc