Function at 0x10077665
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x48]
mov ebx, ecx
mov esi, edx
mov ecx, edi
mov dword [edx + 0xd8], eax
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::initialize::h86b86bf834789ced
mov eax, dword [edi]
cmp eax, 2
jne 0x10077697
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
jmp 0x10077823
test eax, eax
je 0x1007781c
mov eax, dword [esi + 0x110]
xor eax, dword [esi + 0x120]
or eax, dword [esi + 0x114]
jne 0x10077873
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
cmp edx, edi
mov eax, edi
cmovb eax, edx
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 edi, edx
jb 0x100778a5
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0x10], edx
mov edx, dword [esi + 0x120]
add eax, edi
add ebx, eax
cmp edx, ebx
jae 0x1007771b
mov edx, ebx
lea ecx, [esi + 0x118]
mov ebx, eax
call sym.alloc::vec::Vec_LT_T_C_A_GT_::resize::hc24f1d85dcad35d4
mov edx, dword [esi + 0x120]
mov eax, ebx
mov ecx, dword [esi + 0x11c]
push 0x101bcb88
push eax
push edi
mov ebx, eax
mov dword [ebp - 0x50], eax
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 dword [ebp - 0x10]
push dword [ebp - 0x14]
call sym.core::slice::__LT_impl_u20__u5b_T_u5d__GT_::copy_from_slice::h5afc9423603c5491
add esp, 0xc
mov ecx, dword [esi + 0x11c]
mov edx, dword [esi + 0x120]
push 0x101bcba8
push edi
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 [esi + 0x11c]
mov dword [ebp - 0x14], eax
cmove edx, eax
mov dword [ebp - 0x10], edx
mov edx, dword [esi + 0x120]
push 0x101bcbb8
push ebx
push edi
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 [esi + 0x11c]
mov edx, dword [esi + 0x120]
test eax, eax
mov edi, eax
cmove ebx, eax
push 0x101bcbc8
push dword [ebp - 0x50]
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 - 0x10]
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 - 0x14]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x48]
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [esi + 0x140]
push 0
push eax
push 0
push ecx
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x10077842
and dword [ebp - 0x48], 0
mov ebx, dword [ebp - 0x18]
jmp 0x10077826
mov eax, 0x80090317
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x48]
mov ecx, ebx
call sym.tokio_tls::cvt::hd4b920c0231ff464
and dword [esi + 0xd8], 0
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x18]
add eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x30]
cmp dword [esi + 0x120], eax
jb 0x1007785c
mov dword [esi + 0x120], eax
mov eax, dword [ebp - 0x4c]
and dword [esi + 0x114], 0
and dword [esi + 0x110], 0
mov dword [esi + 0x170], eax
lea edi, [ebp - 0x48]
mov edx, esi
mov ecx, edi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::write_out::h6f8a69ce5a5c02f6
cmp byte [edi], 4
je 0x1007788b
mov eax, dword [ebp - 0x48]
cmp al, 4
jne 0x1007789a
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x48], 4
jmp 0x10077829
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
jmp 0x10077829
push 0x3e
pop edx
mov ecx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
push 0x101bcb78
call dbg.panic