Function at 0x5000fa70
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov dword [rsp + 0x4c], 0
mov rax, qword [rsp + 0x290]
add rax, 0x70
lea r8, [rsp + 0xb0]
mov edx, 4
mov rcx, rax
call sub.Secur32.dll_QueryContextAttributesA
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jge 0x5000fac4
mov eax, 0xffffffff
jmp 0x50010432
mov edx, 0x64
lea rcx, [rsp + 0x38]
call fcn.50007680
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0xb8]
shl eax, 1
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.50007610
mov eax, dword [rsp + 0xb0]
shl eax, 1
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.50007610
mov eax, dword [rsp + 0xb4]
shl eax, 1
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.50007610
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x2a0]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x5000fb93
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1e8], rax
mov rcx, qword [rsp + 0x1e8]
call fcn.50002860
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x240], rax
mov rcx, qword [rsp + 0x240]
call fcn.50002860
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x248], rax
mov rcx, qword [rsp + 0x248]
call fcn.50002860
jmp 0x50010403
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x30], eax
jbe 0x5000fbab
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x250], rax
mov eax, dword [rsp + 0x30]
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x298]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x250]
call fcn.50005ea0
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x258], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov rcx, qword [rsp + 0x258]
mov rdx, qword [rsp + 0xc8]
mov qword [rcx + rax + 8], rdx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xe0], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov rcx, qword [rsp + 0xe0]
mov edx, dword [rsp + 0xb0]
mov dword [rcx + rax], edx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xe8], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov rcx, qword [rsp + 0xe8]
mov dword [rcx + rax + 4], 7
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xf0], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 2
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xd0]
mov qword [rcx + rax + 8], rdx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xf8], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 2
mov rcx, qword [rsp + 0xf8]
mov edx, dword [rsp + 0xb4]
mov dword [rcx + rax], edx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x100], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 2
mov rcx, qword [rsp + 0x100]
mov dword [rcx + rax + 4], 6
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x108], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 3
mov rcx, qword [rsp + 0x108]
mov qword [rcx + rax + 8], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x110], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 3
mov rcx, qword [rsp + 0x110]
mov dword [rcx + rax], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x118], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 3
mov rcx, qword [rsp + 0x118]
mov dword [rcx + rax + 4], 0
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x120], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov rcx, qword [rsp + 0x120]
mov rdx, qword [rsp + 0xd8]
mov qword [rcx + rax + 8], rdx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x128], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov rcx, qword [rsp + 0x128]
mov edx, dword [rsp + 0x30]
mov dword [rcx + rax], edx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x130], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov rcx, qword [rsp + 0x130]
mov dword [rcx + rax + 4], 1
mov rax, qword [rsp + 0x290]
mov dword [rax + 0x468], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x138]
mov qword [rax + 0x470], rcx
mov rax, qword [rsp + 0x290]
mov dword [rax + 0x46c], 4
mov rax, qword [rsp + 0x290]
add rax, 0x468
mov rcx, qword [rsp + 0x290]
add rcx, 0x70
xor r9d, r9d
mov r8, rax
xor edx, edx
call sub.Secur32.dll_EncryptMessage
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jge 0x5000ff22
mov dword [rsp + 0x78], 0xffffffff
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x140]
call fcn.50002860
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x148]
call fcn.50002860
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x150]
call fcn.50002860
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x158], rax
mov rcx, qword [rsp + 0x158]
call fcn.50002860
mov eax, dword [rsp + 0x78]
jmp 0x50010432
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x160], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov rcx, qword [rsp + 0x160]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x168], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov rcx, qword [rsp + 0x168]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x5c]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x170]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x290]
mov rcx, qword [rax + 0x4d0]
call sub.WS2_32.dll_send
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x5000ffc8
cmp dword [rsp + 0x50], 0xffffffff
jne 0x5000ffd2
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
jmp 0x5000fff8
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x24], eax
jne 0x5000fff6
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
jmp 0x5000fff8
jmp 0x5000ff7a
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x178], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov rcx, qword [rsp + 0x178]
mov eax, dword [rcx + rax]
cmp dword [rsp + 0x20], eax
je 0x5001009e
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x180], rax
mov rcx, qword [rsp + 0x180]
call fcn.50002860
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x188], rax
mov rcx, qword [rsp + 0x188]
call fcn.50002860
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x190], rax
mov rcx, qword [rsp + 0x190]
call fcn.50002860
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x198]
call fcn.50002860
mov eax, dword [rsp + 0x7c]
jmp 0x50010432
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x1a0], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov rcx, qword [rsp + 0x1a0]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x1a8], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x1b0], rax
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x1b0]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x290]
mov rcx, qword [rax + 0x4d0]
call sub.WS2_32.dll_send
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x50010144
cmp dword [rsp + 0x54], 0xffffffff
jne 0x5001014e
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
jmp 0x50010174
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x28], eax
jne 0x50010172
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
jmp 0x50010174
jmp 0x500100f6
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x1b8], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov rcx, qword [rsp + 0x1b8]
mov eax, dword [rcx + rax]
cmp dword [rsp + 0x20], eax
je 0x50010224
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1c0], rax
mov rcx, qword [rsp + 0x1c0]
call fcn.50002860
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x1c8], rax
mov rcx, qword [rsp + 0x1c8]
call fcn.50002860
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x1d0]
call fcn.50002860
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x1d8], rax
mov rcx, qword [rsp + 0x1d8]
call fcn.50002860
mov eax, dword [rsp + 0x80]
jmp 0x50010432
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x1e0], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 2
mov rcx, qword [rsp + 0x1e0]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x230], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 2
mov rcx, qword [rsp + 0x230]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x1f0], rax
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x64]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x1f0]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x290]
mov rcx, qword [rax + 0x4d0]
call sub.WS2_32.dll_send
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x500102ca
cmp dword [rsp + 0x58], 0xffffffff
jne 0x500102d4
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
jmp 0x500102fa
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x2c], eax
jne 0x500102f8
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
jmp 0x500102fa
jmp 0x5001027c
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x1f8], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 2
mov rcx, qword [rsp + 0x1f8]
mov eax, dword [rcx + rax]
cmp dword [rsp + 0x20], eax
je 0x500103aa
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x200], rax
mov rcx, qword [rsp + 0x200]
call fcn.50002860
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x208], rax
mov rcx, qword [rsp + 0x208]
call fcn.50002860
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x210], rax
mov rcx, qword [rsp + 0x210]
call fcn.50002860
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x218], rax
mov rcx, qword [rsp + 0x218]
call fcn.50002860
mov eax, dword [rsp + 0x84]
jmp 0x50010432
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x220], rax
mov rcx, qword [rsp + 0x220]
call fcn.50002860
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x228], rax
mov rcx, qword [rsp + 0x228]
call fcn.50002860
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x260], rax
mov rcx, qword [rsp + 0x260]
call fcn.50002860
jmp 0x5000fadb
mov eax, dword [rsp + 0x2a0]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x238], rax
mov rcx, qword [rsp + 0x238]
call fcn.50002860
mov eax, dword [rsp + 0x88]
add rsp, 0x288
ret