Function at 0x1401e438c
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r9
mov rsi, rdx
mov r14, rcx
mov qword [rdx + 0x90], r8
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.1401b615d
mov eax, dword [rdi]
cmp eax, 2
jne case.default.0x1401e43e6
lea rdi, [rsp + 0x28]
mov rbx, qword [rdi]
mov qword [rdi], rbx
mov qword [rdi - 8], 1
mov eax, ebx
and eax, 3
lea rcx, [0x1401e4658]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
test eax, eax
je 0x1401e4516
mov rbp, qword [rsi + 0x40]
cmp rbp, qword [rsi + 0x58]
jne 0x1401e456a
mov rax, qword [rsp + 0xe0]
mov r15, qword [rsp + 0x28]
mov edx, r15d
shr r15, 0x20
cmp rax, r15
cmovb r15, rax
mov r12d, dword [rsp + 0x24]
lea r13, [r15 + r12]
add rdx, r13
cmp rbp, rdx
jae 0x1401e4437
lea rcx, [rsi + 0x48]
call fcn.1400577d5
mov rbp, qword [rsi + 0x58]
cmp rbp, r13
jb 0x1401e4629
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x60], rax
lea rcx, [rax + r12]
mov rdx, rbx
mov r8, r15
call fcn.1403abad0
cmp rbp, r12
jb 0x1401e4635
mov rdx, qword [rsi + 0x58]
cmp rdx, r13
jb 0x1401e4644
mov rax, qword [rsi + 0x50]
lea rcx, [rax + r12]
add rax, r13
sub edx, r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x24], 7
mov rbp, qword [rsp + 0x60]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x44], 6
mov qword [rsp + 0x48], rax
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], rdi
lea rcx, [rsi + 0x60]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x1401e4545
mov ebx, eax
shl rbx, 0x20
or rbx, 2
lea rdi, [rsp + 0x28]
mov qword [rdi], rbx
mov qword [rdi - 8], 1
mov eax, ebx
and eax, 3
lea rcx, [0x1401e4658]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movabs rbx, 0x8009031700000002
lea rdi, [rsp + 0x28]
mov qword [rdi], rbx
mov qword [rdi - 8], 1
mov eax, ebx
and eax, 3
lea rcx, [0x1401e4658]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x20]
add eax, dword [rsp + 0x40]
cmp qword [rsi + 0x58], rax
jb 0x1401e455b
mov qword [rsi + 0x58], rax
mov qword [rsi + 0x40], 0
mov qword [rsi + 0xe0], r15
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov rdx, rsi
call fcn.1401b7079
cmp qword [rdi], 0
je case.default.0x1401e45aa
lea rdi, [rsp + 0x28]
mov rbx, qword [rdi]
mov qword [rdi], rbx
mov qword [rdi - 8], 1
mov eax, ebx
and eax, 3
lea rcx, [0x1401e4658]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov al, byte [rbx + 0x10]
jmp 0x1401e45c2
mov al, byte [rbx + 0xf]
jmp 0x1401e45c2
mov rcx, rbx
shr rcx, 0x20
call fcn.14023d1d0
cmp al, 0xd
jne 0x1401e45ee
mov qword [r14], 2
mov qword [rsi + 0x90], 0
mov rcx, rdi
call fcn.14007ddf7
jmp 0x1401e4604
mov rax, rbx
shr rax, 0x20
cmp eax, 0xd
je 0x1401e45c6
mov qword [r14], 1
mov qword [r14 + 8], rbx
mov qword [rsi + 0x90], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0xe0]
mov qword [r14], 0
mov qword [r14 + 8], rax
jmp 0x1401e45f9
lea r8, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.22_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r13
jmp 0x1401e463f
lea r8, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.22_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
mov rdx, rbp
jmp 0x1401e464e
lea r8, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.22_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r13
call fcn.1403af940
ud2