Function at 0x100773ab
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
cmp dword [edi], 2
jne 0x100773de
add edi, 4
mov ecx, esi
mov edx, edi
push ebx
push dword [ebp + 0x14]
push eax
call sym.__LT_tokio..net..tcp..stream..TcpStream_u20_as_u20_tokio..io..async_write..AsyncWrite_GT_::poll_write::hbf9aff29850a6aa9
add esp, 0xc
jmp 0x1007757c
lea esi, [ebp - 0x48]
mov edx, edi
mov dword [edi + 0x34], eax
mov ecx, esi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::initialize::ha5b71134c747823a
mov eax, dword [esi]
cmp eax, 2
jne 0x100773ff
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
jmp 0x10077565
test eax, eax
je 0x1007755e
mov eax, dword [edi + 0x68]
xor eax, dword [edi + 0x78]
or eax, dword [edi + 0x6c]
jne 0x100775a8
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x14]
mov edx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
cmp ebx, eax
mov dword [ebp - 0x14], eax
cmovb eax, ebx
push 0x101bc64c
mov dword [ebp - 0x4c], eax
push eax
call sym.core::slice::index::__LT_impl_u20_core..ops..index..Index_LT_I_GT__u20_for_u20__u5b_T_u5d__GT_::index::h1b5e887f671f0192
pop ecx
pop ecx
cmp dword [ebp - 0x14], edx
jb 0x100775da
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov eax, edx
mov esi, edx
mov edx, dword [edi + 0x78]
add eax, ebx
add ecx, eax
cmp edx, ecx
jae 0x10077477
mov edx, ecx
lea ecx, [edi + 0x70]
mov ebx, eax
call sym.alloc::vec::Vec_LT_T_C_A_GT_::resize::hc24f1d85dcad35d4
mov eax, ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [edi + 0x78]
mov ecx, dword [edi + 0x74]
mov dword [ebp - 0x14], eax
push 0x101bcb88
push eax
push ebx
call sym.__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_core..ops..index..IndexMut_LT_I_GT__GT_::index_mut::hf2b557954db1e936
add esp, 0xc
mov ecx, eax
push 0x101bcb98
push esi
push dword [ebp - 0x50]
call sym.core::slice::__LT_impl_u20__u5b_T_u5d__GT_::copy_from_slice::h5afc9423603c5491
add esp, 0xc
mov ecx, dword [edi + 0x74]
mov edx, dword [edi + 0x78]
push 0x101bcba8
push ebx
call sym.__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_core..ops..index..IndexMut_LT_I_GT__GT_::index_mut::he96423e20647fda7
pop ecx
pop ecx
test eax, eax
mov ecx, dword [edi + 0x74]
mov dword [ebp - 0x10], eax
cmove edx, eax
mov dword [ebp - 0x18], edx
mov edx, dword [edi + 0x78]
push 0x101bcbb8
push dword [ebp - 0x14]
push ebx
call sym.__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_core..ops..index..IndexMut_LT_I_GT__GT_::index_mut::hf2b557954db1e936
add esp, 0xc
mov ebx, edx
mov ecx, dword [edi + 0x74]
mov edx, dword [edi + 0x78]
test eax, eax
mov esi, eax
cmove ebx, eax
push 0x101bcbc8
push dword [ebp - 0x14]
call sym.__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_core..ops..index..IndexMut_LT_I_GT__GT_::index_mut::hfeab3d94b54a5140
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
test eax, eax
cmove edx, eax
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x48]
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [edi + 0x98]
push 0
push eax
push 0
push ecx
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x10077586
and dword [ebp - 0x48], 0
jmp 0x10077568
mov eax, 0x80090317
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x48]
mov ecx, esi
call sym.tokio_tls::cvt::hd4b920c0231ff464
and dword [edi + 0x34], 0
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x30]
cmp dword [edi + 0x78], eax
jb 0x10077597
mov dword [edi + 0x78], eax
mov eax, dword [ebp - 0x4c]
and dword [edi + 0x6c], 0
and dword [edi + 0x68], 0
mov dword [edi + 0xc8], eax
lea esi, [ebp - 0x48]
mov edx, edi
mov ecx, esi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::write_out::h403c4ec4d8bf1f83
cmp byte [esi], 4
je 0x100775c0
mov eax, dword [ebp - 0x48]
cmp al, 4
jne 0x100775cf
mov eax, dword [edi + 0xc8]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x48], 4
jmp 0x1007756b
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
jmp 0x1007756b
push 0x3e
pop edx
mov ecx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
push 0x101bcb78
call dbg.panic