Function at 0x4abab0
Capabilities:
Encrypt data via sspi

Disassembly:
sub esp, 0x54
mov eax, dword [0x522298]
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 0x4abae7
push eax
call fcn.004ba048
add esp, 4
mov dword [ebp + 0x2c], edi
cmp byte [ebp + 0x39], 0
je 0x4abb13
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 0x4abb29
push str.QueryContextAttributes
push eax
call fcn.004abfa0
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004b3f14
add esp, 0x54
ret
test ebx, ebx
je 0x4abb3a
mov eax, dword [esp + 0x74]
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x4abb52
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004abea0
mov edi, eax
add esp, 8
test edi, edi
je 0x4abb13
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
add esi, dword [esp + 0x38]
add esi, eax
push esi
call fcn.004bab05
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x4abb7a
push edi
call fcn.004ba048
add esp, 4
jmp 0x4abb13
mov eax, dword [esp + 0x38]
lea edx, [eax + ebp]
test ebx, ebx
je 0x4abbf4
mov ecx, ebx
mov dword [edx], 1
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4abb90
sub esi, dword [esp + 0x38]
add edx, 4
sub esi, 4
sub ecx, edi
je 0x4abc5e
test edx, edx
jne 0x4abbc2
call fcn.004c3d2b
mov dword [eax], 0x16
call fcn.004b954f
jmp 0x4abc5e
cmp esi, ecx
jb 0x4abbd6
push ecx
push ebx
push edx
call fcn.004b5e30
add esp, 0xc
jmp 0x4abc5e
push esi
push 0
push edx
call fcn.004b63b0
add esp, 0xc
call fcn.004c3d2b
mov dword [eax], 0x22
call fcn.004b954f
jmp 0x4abc5e
mov ebx, dword [esp + 0x14]
sub esi, eax
test ebx, ebx
je 0x4abc55
test edx, edx
jne 0x4abc0f
call fcn.004c3d2b
mov dword [eax], 0x16
jmp 0x4abc50
test edi, edi
je 0x4abc24
cmp esi, ebx
jb 0x4abc24
push ebx
push edi
push edx
call fcn.004b5e30
add esp, 0xc
jmp 0x4abc55
push esi
push 0
push edx
call fcn.004b63b0
add esp, 0xc
test edi, edi
jne 0x4abc41
call fcn.004c3d2b
mov dword [eax], 0x16
jmp 0x4abc50
cmp esi, ebx
jae 0x4abc55
call fcn.004c3d2b
mov dword [eax], 0x22
call fcn.004b954f
push edi
call fcn.004ba048
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, getpeername
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 0x4abcf6
push ebp
call fcn.004ba048
push 0x5010a0
push esi
call fcn.004abfa0
add esp, 0xc
jmp 0x4abb13
mov esi, dword [esp + 0x54]
add esi, dword [esp + 0x48]
add esi, dword [esp + 0x3c]
push esi
call fcn.004bab05
mov ebx, dword [esp + 0x40]
add esp, 4
mov ebp, dword [esp + 0x44]
mov edi, eax
test ebx, ebx
je 0x4abd70
test edi, edi
jne 0x4abd2a
call fcn.004c3d2b
mov dword [eax], 0x16
jmp 0x4abd6b
test ebp, ebp
je 0x4abd3f
cmp esi, ebx
jb 0x4abd3f
push ebx
push ebp
push edi
call fcn.004b5e30
add esp, 0xc
jmp 0x4abd70
push esi
push 0
push edi
call fcn.004b63b0
add esp, 0xc
test ebp, ebp
jne 0x4abd5c
call fcn.004c3d2b
mov dword [eax], 0x16
jmp 0x4abd6b
cmp esi, ebx
jae 0x4abd70
call fcn.004c3d2b
mov dword [eax], 0x22
call fcn.004b954f
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 0x4abde5
test ecx, ecx
jne 0x4abd9c
call fcn.004c3d2b
mov dword [eax], 0x16
jmp 0x4abde0
test eax, eax
je 0x4abdb1
cmp ebx, ebp
jb 0x4abdb1
push ebp
push eax
push ecx
call fcn.004b5e30
add esp, 0xc
jmp 0x4abde5
push ebx
push 0
push ecx
call fcn.004b63b0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x4abdd1
call fcn.004c3d2b
mov dword [eax], 0x16
jmp 0x4abde0
cmp ebx, ebp
jae 0x4abde5
call fcn.004c3d2b
mov dword [eax], 0x22
call fcn.004b954f
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 0x4abe54
test eax, eax
jne 0x4abe18
call fcn.004c3d2b
mov dword [eax], 0x16
jmp 0x4abe4f
test ecx, ecx
je 0x4abe2d
cmp ebx, ebp
jb 0x4abe2d
push ebp
push ecx
push eax
call fcn.004b5e30
add esp, 0xc
jmp 0x4abe54
push ebx
push 0
push eax
call fcn.004b63b0
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x4abe0b
cmp ebx, ebp
jae 0x4abe54
call fcn.004c3d2b
mov dword [eax], 0x22
call fcn.004b954f
push esi
push edi
call fcn.004abf20
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.004ba048
push edi
call fcn.004ba048
mov ecx, dword [esp + 0x70]
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b3f14
add esp, 0x54
ret