Function at 0x140041ae0
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rdi, rdx
mov rsi, rcx
mov qword [rdx + 0x138], r8
mov r12, qword [r9]
mov r14, qword [r9 + 8]
lea rcx, [rsp + 0x20]
call fcn.140043d40
mov eax, dword [rsp + 0x20]
cmp eax, 2
jne case.default.0x140041b33
mov r14, qword [rsp + 0x28]
mov eax, r14d
and eax, 3
lea rcx, [0x140140a00]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
test eax, eax
je 0x140041cef
mov r13, qword [rdi + 0x1b8]
cmp r13, qword [rdi + 0x1b0]
jne 0x140041d40
mov rbx, qword [rsp + 0x28]
mov ebp, ebx
shr rbx, 0x20
cmp r14, rbx
cmovb rbx, r14
mov r15d, dword [rsp + 0x24]
lea r14, [rbx + r15]
add rbp, r14
sub rbp, r13
jbe 0x140041bc3
mov rax, qword [rdi + 0x1a8]
sub rax, r13
cmp rax, rbp
jb 0x140041e2a
mov rax, qword [rdi + 0x1a0]
lea rcx, [rax + r13]
cmp rbp, 2
jb 0x140041bb6
lea r8, [rbp - 1]
xor edx, edx
mov qword [rsp + 0x60], rax
call sub.VCRUNTIME140.dll_memset
add r13, rbp
dec r13
mov rcx, qword [rsp + 0x60]
add rcx, r13
mov byte [rcx], 0
inc r13
mov qword [rdi + 0x1b0], r13
cmp r14, r13
ja 0x140041e5d
mov rcx, qword [rdi + 0x1a0]
add rcx, r15
mov rdx, r12
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rdi + 0x1b0]
cmp rdx, r15
jb 0x140041e71
mov r8, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x78]
mov edx, 7
mov r9, r15
call fcn.140089320
mov rdx, qword [rdi + 0x1b0]
cmp r14, rdx
ja 0x140041e82
add r15, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x88]
mov edx, 1
mov r8, r15
mov r9, rbx
call fcn.140089320
mov rdx, qword [rdi + 0x1b0]
mov r9, rdx
sub r9, r14
jb 0x140041e93
add r14, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x68]
mov edx, 6
mov r8, r14
call fcn.140089320
lea rcx, [rsp + 0x50]
xor edx, edx
xor r8d, r8d
call fcn.140089320
movups xmm0, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x40], xmm0
lea r14, [rsp + 0x68]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov rcx, r14
call fcn.140089340
lea rcx, [rdi + 0x1c0]
call fcn.140086af0
mov rcx, rax
xor edx, edx
mov r8, r14
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x140041d12
mov r14d, eax
shl r14, 0x20
or r14, 2
mov eax, r14d
and eax, 3
lea rcx, [0x140140a00]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movabs r14, 0x8009031700000002
mov rcx, r14
shr rcx, 0x20
call fcn.1401148f0
cmp al, 0xd
je 0x140041de0
jmp 0x140041de9
mov eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x20]
add eax, dword [rsp + 0x40]
cmp qword [rdi + 0x1b0], rax
jb 0x140041d2e
mov qword [rdi + 0x1b0], rax
mov qword [rdi + 0x1b8], 0
mov qword [rdi + 0x200], rbx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140046d60
cmp qword [rsp + 0x20], 0
je case.default.0x140041d72
mov r14, qword [rsp + 0x28]
mov eax, r14d
and eax, 3
lea rcx, [0x140140a00]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [r14 + 0x10]
cmp al, 0xd
je 0x140041de0
jmp 0x140041de9
cmp byte [r14 + 0xf], 0xd
jne 0x140041de9
lea rbx, [r14 - 1]
mov qword [rsi], 2
mov qword [rdi + 0x138], 0
mov rdi, qword [r14 - 1]
mov r14, qword [r14 + 7]
mov rcx, rdi
call qword [r14]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x140041dbf
mov r8, qword [r14 + 0x10]
mov rcx, rdi
call fcn.14000cc70
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.14000cc70
jmp 0x140041dff
mov rax, r14
shr rax, 0x20
cmp eax, 0xd
jne 0x140041de9
mov qword [rsi], 2
jmp 0x140041df4
mov qword [rsi], 1
mov qword [rsi + 8], r14
mov qword [rdi + 0x138], 0
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdi + 0x200]
mov qword [rsi], 0
mov qword [rsi + 8], rax
jmp 0x140041df4
lea rcx, [rdi + 0x1a0]
mov rdx, r13
mov r8, rbp
call fcn.14012f480
mov r13, qword [rdi + 0x1b0]
mov rax, qword [rdi + 0x1a0]
lea rcx, [rax + r13]
cmp rbp, 2
jae 0x140041b98
jmp 0x140041bb6
lea r8, str.C:Users_badc0de.cargo_registry_srcmirrors.tuna.tsinghua.edu.cn_df7c3c540f42cdbd_schannel_0.1.22_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r14
mov rdx, r13
call fcn.140136ac0
ud2
lea r8, str.C:Users_badc0de.cargo_registry_srcmirrors.tuna.tsinghua.edu.cn_df7c3c540f42cdbd_schannel_0.1.22_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r15
call fcn.140136ac0
ud2
lea r8, str.C:Users_badc0de.cargo_registry_srcmirrors.tuna.tsinghua.edu.cn_df7c3c540f42cdbd_schannel_0.1.22_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r14
call fcn.140136ac0
ud2
lea r8, str.C:Users_badc0de.cargo_registry_srcmirrors.tuna.tsinghua.edu.cn_df7c3c540f42cdbd_schannel_0.1.22_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r14
call fcn.140136a50
ud2
or dword [rax + 1], 0x49e0ffc8
mov edi, 2
invalid
pop rsp
xor byte [rcx + 0x3e383fb], cl
cmpsd dword [rsi], dword [rdi]
cld
invalid
mov rax, rdi
shr rax, 0x20
cmp eax, 0xd
jne 0x140042465
mov qword [rsi + 0x38], 0
retf
test rax, rax
sar edi, 0xe1
adc byte [r9 - 0x7916ea8c], r15b
add byte [rax], al
add byte [rax - 0x77], cl
mov rcx, rdi
mov esp, 0x3c000d22
or eax, 0xc7487675
cmp byte [r8], al
add byte [rax], al
add byte [rax + 1], bh
mov eax, 1
and byte [rbx + 0x58750dff], al
add byte [rcx - 0x77], cl
jl 0x140042862
adc byte [rcx], dh
dec dword [rax - 0x39]
xchg byte [rax], bh
add dword [rax], eax
add byte [rax], al
pop rsp
and al, 0x30
xor byte [rcx + 0x3e383fb], cl
sar edi, 0xe1
dec dword [rax - 0x75]
pop rdi
dec dword [rax - 0x75]
jg case.0x1400420d5.15
movabs dword [0x4100000018bafffc], eax
mov eax, 8
mov rax, rdi
shr rax, 0x20
cmp eax, 0xd
jne 0x140042841
mov qword [rsi + 0x138], 0
add ebx, edi
lea rcx, ds:[0x1401401a8]
xlatb
str word [rbp + rcx*4 + 5]
push rbp
xlatb
invalid
adc byte [rsi], bl
or eax, 0x750d3c00
ror dword [rax - 0x39], 1
cmp byte [rax], r8b
add byte [rax], al
add byte [rbx + 0x537501fb], al
cmp ebx, 1
jne 0x140042b44
lea rcx, [rsp + 0x20]
jl 0x140042bb6
and byte [rax], al
jl 0x140042bbe
sub byte [rcx + 0x3e383fb], cl
mov edx, dword [rsi + 0x138]
add dword [rax], eax
add byte [rax - 0x7b], cl
ror byte [rdi], cl
add byte [rax], al
shr ecx, 0x20
fld1
movabs al, byte cs:[0x4100000018bafffc]
mov eax, 8
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14000cc70
mov edx, 0x18
add byte [rcx - 0x48], al
or byte [rax], al
add byte [rax], al
and byte [rax - 0x77], cl
invalid
mov dh, 0xc8
lea rdx, [rcx + 1]
add byte [rax], al
mov qword [rsi], rax
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop rbp
str word [rbp + rcx*4 + 5]
xchg ebx, eax
invalid
sbb byte [rcx - 1], cl
invalid
mov ecx, dword [rdi + 0x208]
sub esp, 0x38
add eax, 0xf9906