Function at 0x1400476d0
Capabilities:
Encrypt data via sspi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rbp + 0x20], rcx
mov qword [rdx + 0x138], r8
mov r13, qword [r9]
mov rsi, qword [r9 + 8]
lea rcx, [rbp - 0x30]
mov qword [rbp + 0x38], rdx
call fcn.14004c9c0
mov eax, dword [rbp - 0x30]
cmp eax, 2
jne case.default.0x140047732
mov r9, qword [rbp - 0x28]
mov eax, r9d
and eax, 3
lea rcx, [0x140047dd8]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
test eax, eax
je 0x1400477e4
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rcx + 0x1b0]
mov rbx, qword [rcx + 0x1b8]
cmp rbx, rdx
jne 0x140047981
mov r15d, dword [rbp - 0x2c]
mov r12, qword [rbp - 0x28]
mov edi, r12d
shr r12, 0x20
cmp rsi, r12
cmovb r12, rsi
lea r14, [r12 + r15]
add rdi, r14
lea rax, [rcx + 0x1a0]
mov qword [rbp + 0x30], rax
mov rsi, rdi
sub rsi, rbx
jbe 0x140047804
mov qword [rbp + 0x28], r12
mov rax, qword [rcx + 0x1a8]
sub rax, rbx
mov r12, rbx
cmp rax, rsi
jae 0x1400477b7
mov rcx, qword [rbp + 0x30]
mov rdx, rbx
mov r8, rsi
call fcn.1401a9280
mov rax, qword [rbp + 0x38]
mov r12, qword [rax + 0x1b0]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
lea rcx, [rax + r12]
cmp rsi, 2
jb 0x140047809
lea r8, [rsi - 1]
xor edx, edx
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
add r12, rsi
dec r12
add rdi, r12
mov rcx, rdi
jmp 0x14004780e
movabs r9, 0x8009031700000002
mov eax, r9d
and eax, 3
lea rcx, [0x140047dd8]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov rsi, rcx
jmp 0x140047826
cmp rdi, rbx
je 0x140047814
mov byte [rcx], 0
inc r12
mov rsi, qword [rbp + 0x38]
mov qword [rsi + 0x1b0], r12
mov rbx, r12
mov r12, qword [rbp + 0x28]
cmp r14, rbx
ja 0x140047cc0
mov rcx, qword [rsi + 0x1a0]
add rcx, r15
mov rdx, r13
mov r8, r12
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsi + 0x1b0]
cmp rdx, r15
jb 0x140047cd4
mov rax, qword [rbp + 0x30]
mov r8, qword [rax]
lea rcx, [rbp - 0x40]
mov edx, 7
mov r9, r15
call fcn.1400d5c40
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax + 0x1b0]
cmp r14, rdx
ja 0x140047ce5
mov rax, qword [rbp + 0x30]
add r15, qword [rax]
lea rcx, [rbp - 0x50]
mov edx, 1
mov r8, r15
mov r9, r12
call fcn.1400d5c40
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax + 0x1b0]
mov r9, rdx
sub r9, r14
jb 0x140047cf6
mov rax, qword [rbp + 0x30]
add r14, qword [rax]
lea rcx, [rbp + 0x10]
mov edx, 6
mov r8, r14
call fcn.1400d5c40
lea rcx, [rbp]
xor edx, edx
xor r8d, r8d
call fcn.1400d5c40
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x20], xmm0
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp + 0x10]
lea rdx, [rbp - 0x30]
mov r8d, 4
call fcn.1400d5c60
mov rax, qword [rbp + 0x38]
lea rcx, [rax + 0x1c0]
call fcn.1400d2770
lea r8, [rbp + 0x10]
mov rcx, rax
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
mov r9d, eax
test eax, eax
je 0x14004794a
shl r9, 0x20
or r9, 2
mov eax, r9d
and eax, 3
lea rcx, [0x140047dd8]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov eax, dword [rbp - 0x20]
add eax, dword [rbp - 0x30]
add eax, dword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rcx + 0x1b0]
cmp rdx, rax
jb 0x14004796d
mov qword [rcx + 0x1b0], rax
mov rdx, rax
mov qword [rcx + 0x1b8], 0
mov qword [rcx + 0x200], r12
xor ebx, ebx
cmp rbx, rdx
je 0x140047a27
lea rdi, [rcx + 0x10]
lea r14, [rcx + 0x18]
lea r15, [rbp + 0x10]
lea r12, [rbp - 0x30]
nop word [rax + rax]
mov rax, rdx
sub rax, rbx
jb 0x140047caf
mov r8, qword [rcx + 0x138]
test r8, r8
je 0x140047c95
mov r9, qword [rcx + 0x1a0]
add r9, rbx
cmp dword [rdi], 2
jne 0x1400479e0
mov qword [rsp + 0x20], rax
mov rcx, r15
mov rdx, r14
call fcn.14013bdf0
jmp 0x1400479f6
mov qword [rbp - 0x30], r9
mov qword [rbp - 0x28], rax
mov rcx, r15
mov rdx, rdi
mov r9, r12
call fcn.140047e90
mov rax, qword [rbp + 0x10]
cmp rax, 2
je 0x140047a4d
mov r9, qword [rbp + 0x18]
test rax, rax
mov rcx, qword [rbp + 0x38]
jne 0x140047a64
add rbx, r9
mov qword [rcx + 0x1b8], rbx
mov rdx, qword [rcx + 0x1b0]
cmp rbx, rdx
jne 0x1400479a0
mov rdx, qword [rcx + 0x200]
mov rax, qword [rbp + 0x20]
mov qword [rax], 0
mov qword [rax + 8], rdx
mov qword [rcx + 0x138], 0
jmp 0x140047b70
add byte [rax], al
add byte [rax], al
movabs r9, 0xd00000003
mov r8, qword [rbp + 0x38]
mov al, 0xd
mov ecx, 3
jmp case.0x140047acb.0
mov eax, r9d
and eax, 3
lea rcx, [0x140047dd8]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [r9 + 0x10]
xor ecx, ecx
jmp 0x140047adb
mov qword [rbp + 0x30], r9
shr r9, 0x20
mov ecx, r9d
call fcn.140187f20
mov ecx, 2
mov r8, qword [rbp + 0x38]
mov r9, qword [rbp + 0x30]
jmp case.0x140047acb.0
mov rdx, r9
shr rdx, 0x20
mov ecx, 3
cmp edx, 0x28
ja case.default.0x140047acb
xor eax, eax
lea r8, [0x140047de8]
add eax, dword [rax]
add byte [rcx + 0x63], cl
adc al, 0x90
add eax, dword [rax]
add byte [rcx + 0x63], cl
adc al, 0x90
add rdx, r8
mov r8, qword [rbp + 0x38]
jmp rdx
mov al, 1
jmp case.0x140047acb.0
movzx eax, byte [r9 + 0xf]
mov ecx, 1
mov r8, qword [rbp + 0x38]
cmp al, 0xd
jne 0x140047b56
mov rax, qword [rbp + 0x20]
mov qword [rax], 2
mov qword [r8 + 0x138], 0
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x140047b70
cmp ecx, 1
jne 0x140047b70
lea rax, [r9 - 1]
mov qword [rbp + 0x38], rax
mov rcx, qword [r9 - 1]
mov rax, qword [r9 + 7]
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rax
call qword [rax]
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140047b3c
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp + 0x28]
call fcn.140004790
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp + 0x38]
call fcn.140004790
mov rax, qword [rbp + 0x20]
jmp 0x140047b70
mov rax, qword [rbp + 0x20]
mov qword [rax], 1
mov qword [rax + 8], r9
mov qword [r8 + 0x138], 0
add rsp, 0xc8
pop rbx
pop rdi
add byte [rax], al
add byte [rbx + 0x5f], bl
pop rsi
pop r12
pop rsp
pop rsp
pop r13
pop r14
pop r15
pop rbp
ret
mov al, 0x25
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x23
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x24
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x1b
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x22
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x10
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0xe
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x21
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0xb
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 4
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x28
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0xc
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 9
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x19
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x18
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 2
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0xf
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 3
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 7
jmp case.0x140047acb.0
mov al, 0x1f
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x11
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x29
jmp 0x140047adb
invalid
invalid
invalid
mov al, 0x14
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 5
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x15
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 6
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x12
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0xa
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 8
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x1e
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x20
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x16
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x27
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x13
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x17
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x1c
jmp case.0x140047acb.0
invalid
invalid
invalid
mov al, 0x1d
jmp case.0x140047acb.0
mov al, 0x26
jmp case.0x140047acb.0
mov al, 0x1a
jmp case.0x140047acb.0
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, [0x1401b63a8]
mov edx, 0x29
call fcn.1401af2d0
jmp 0x140047d05
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rbx
call fcn.1401aefc0
jmp 0x140047d05
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r14
mov rdx, rbx
call fcn.1401af040
jmp 0x140047d05
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r15
call fcn.1401af040
jmp 0x140047d05
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r14
call fcn.1401af040
jmp 0x140047d05
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r14
call fcn.1401aefc0
ud2