Function at 0x56a538
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [esp + 0x60]
lea edi, [esp + 0x10]
mov dword [esp + 4], ecx
mov esi, edx
mov ecx, edi
mov dword [edx + 0x1c], eax
call fcn.0056a783
mov eax, dword [edi]
cmp eax, 2
jne 0x56a57c
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp bl, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
je 0x56a6f3
jmp 0x56a708
test eax, eax
je 0x56a693
mov edi, dword [esi + 0x78]
mov eax, dword [esi + 0x68]
xor eax, edi
or eax, dword [esi + 0x6c]
jne 0x56a6d2
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ebp, [esi + 0x70]
cmp eax, ebx
mov dword [esp], ecx
cmovb ebx, eax
lea eax, [ebx + ecx]
add edx, eax
cmp edi, edx
jae 0x56a5c7
mov ecx, ebp
mov edi, eax
call fcn.004a28f3
mov eax, edi
mov edi, dword [esi + 0x78]
cmp eax, dword [esp]
jb 0x56a748
cmp edi, eax
mov dword [esp + 8], eax
jb 0x56a759
mov eax, dword [ebp]
mov ebp, dword [esp]
add eax, ebp
push ebx
push dword [esp + 0x68]
push eax
call fcn.0064a810
add esp, 0xc
cmp edi, ebp
jb 0x56a766
mov edx, dword [esi + 0x78]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], ebx
mov eax, edx
sub eax, edi
jb 0x56a772
mov ecx, dword [esi + 0x70]
mov edx, dword [esp]
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 7
add edx, ecx
add edi, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 6
mov dword [esp + 0x30], edi
mov dword [eax], ebx
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [esi + 0x80]
push ebx
push eax
push ebx
push ecx
call dword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x56a6ac
mov edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
jmp 0x56a708
mov dword [esp + 0x14], 0x80090317
mov dword [esp + 0x10], 0
mov edi, 0x80090317
xor ebx, ebx
jmp 0x56a708
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x10]
add eax, dword [esp + 0x28]
cmp dword [esi + 0x78], eax
jb 0x56a6c0
mov dword [esi + 0x78], eax
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0xa4], ecx
lea edi, [esp + 0x10]
mov edx, esi
mov ecx, edi
call fcn.0056b36c
cmp byte [edi], 4
je 0x56a6ed
mov ebx, dword [esp + 0x10]
cmp bl, 4
jne 0x56a6fc
mov edi, dword [esi + 0xa4]
mov eax, dword [esp + 4]
mov byte [eax], 4
jmp 0x56a736
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
lea ebp, [esp + 0x10]
mov ecx, ebp
call fcn.004ba6c0
cmp al, 0xd
jne 0x56a730
mov eax, dword [esp + 4]
mov dword [esi + 0x1c], 0
mov byte [eax], 5
push ebp
call fcn.0054fbe4
add esp, 4
jmp 0x56a740
mov eax, dword [esp + 4]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [esi + 0x1c], 0
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp]
mov edx, eax
push 0x7b90c8
call fcn.006524b0
jmp 0x56a77e
mov ecx, dword [esp + 8]
mov edx, edi
push 0x7b90c8
jmp 0x56a779
mov ecx, dword [esp]
mov edx, edi
push 0x7b90d8
jmp 0x56a779
mov ecx, edi
push 0x7b90e8
call fcn.00652260
add esp, 4
ud2