Function at 0x140047e90
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 + 0x38], r8
mov r13, qword [r9]
mov rsi, qword [r9 + 8]
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x38], rdx
call fcn.14004e2a0
mov eax, dword [rbp - 0x20]
cmp eax, 2
jne case.default.0x140047ef3
mov r9, qword [rbp - 0x18]
mov eax, r9d
and eax, 3
lea rcx, [0x140048558]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov r12, qword [rbp + 0x38]
jmp rax
test eax, eax
mov r12, qword [rbp + 0x38]
je 0x140047fac
mov rdx, qword [r12 + 0xb0]
mov r14, qword [r12 + 0xb8]
cmp r14, rdx
jne 0x14004814c
mov r15d, dword [rbp - 0x1c]
mov rax, qword [rbp - 0x18]
mov edi, eax
shr rax, 0x20
cmp rsi, rax
cmovb rax, rsi
mov qword [rbp + 0x30], rax
lea rbx, [rax + r15]
add rdi, rbx
lea rax, [r12 + 0xa0]
mov qword [rbp + 0x28], rax
mov rsi, rdi
sub rsi, r14
jbe 0x140047fe8
mov rax, qword [r12 + 0xa8]
sub rax, r14
mov r12, r14
cmp rax, rsi
jae 0x140047f7f
mov rcx, qword [rbp + 0x28]
mov rdx, r14
mov r8, rsi
call fcn.1401a9280
mov rax, qword [rbp + 0x38]
mov r12, qword [rax + 0xb0]
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
lea rcx, [rax + r12]
cmp rsi, 2
jb 0x140047fcc
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 0x140047fd1
movabs r9, 0x8009031700000002
mov eax, r9d
and eax, 3
lea rcx, [0x140048558]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
cmp rdi, r14
je 0x140047fd7
mov byte [rcx], 0
inc r12
mov rax, qword [rbp + 0x38]
mov qword [rax + 0xb0], r12
mov r14, r12
mov r12, rax
cmp rbx, r14
ja 0x140048447
mov rcx, qword [r12 + 0xa0]
add rcx, r15
mov rdx, r13
mov r8, qword [rbp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [r12 + 0xb0]
cmp rdx, r15
jb 0x14004845b
mov rsi, qword [rbp + 0x28]
mov r8, qword [rsi]
lea rcx, [rbp - 0x40]
mov edx, 7
mov r9, r15
call fcn.1400d5c40
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax + 0xb0]
cmp rbx, rdx
ja 0x14004846c
add r15, qword [rsi]
lea rcx, [rbp - 0x50]
mov edx, 1
mov r8, r15
mov r9, qword [rbp + 0x30]
call fcn.1400d5c40
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax + 0xb0]
mov r9, rdx
sub r9, rbx
jb 0x14004847d
add rbx, qword [rsi]
lea rcx, [rbp - 0x30]
mov edx, 6
mov r8, rbx
call fcn.1400d5c40
lea rcx, [rbp + 0x10]
xor edx, edx
xor r8d, r8d
call fcn.1400d5c40
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x20], xmm0
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp], xmm0
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x20]
mov r8d, 4
call fcn.1400d5c60
mov rax, qword [rbp + 0x38]
lea rcx, [rax + 0xc0]
call fcn.1400d2770
lea r8, [rbp - 0x30]
mov rcx, rax
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
mov r9d, eax
test eax, eax
je 0x14004810c
shl r9, 0x20
or r9, 2
mov eax, r9d
and eax, 3
lea rcx, [0x140048558]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov r12, qword [rbp + 0x38]
jmp rax
mov eax, dword [rbp - 0x10]
add eax, dword [rbp - 0x20]
add eax, dword [rbp]
mov r12, qword [rbp + 0x38]
mov rdx, qword [r12 + 0xb0]
cmp rdx, rax
jb 0x140048131
mov qword [r12 + 0xb0], rax
mov rdx, rax
mov qword [r12 + 0xb8], 0
mov rax, qword [rbp + 0x30]
mov qword [r12 + 0x100], rax
xor r14d, r14d
cmp r14, rdx
je 0x1400481c4
lea rdi, [r12 + 0x10]
lea rbx, [rbp - 0x20]
nop word [rax + rax]
mov rax, rdx
sub rax, r14
jb 0x140048436
mov r8, qword [r12 + 0x38]
test r8, r8
je 0x14004841c
mov r9, qword [r12 + 0xa0]
add r9, r14
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
call fcn.14013bdf0
mov rax, qword [rbp - 0x20]
cmp rax, 2
je 0x1400481e0
mov r9, qword [rbp - 0x18]
test rax, rax
mov r12, qword [rbp + 0x38]
jne 0x1400481f7
add r14, r9
mov qword [r12 + 0xb8], r14
mov rdx, qword [r12 + 0xb0]
cmp r14, rdx
jne 0x140048160
mov rcx, qword [r12 + 0x100]
mov rax, qword [rbp + 0x20]
mov qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x1400482ee
add byte [rax], al
add byte [rax], al
movabs r9, 0xd00000003
mov r12, qword [rbp + 0x38]
mov al, 0xd
mov ecx, 3
jmp case.0x14004825a.0
mov eax, r9d
and eax, 3
lea rcx, [0x140048558]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [r9 + 0x10]
xor ecx, ecx
jmp case.0x14004825a.0
mov qword [rbp + 0x30], r9
shr r9, 0x20
mov ecx, r9d
call fcn.140187f20
mov ecx, 2
mov r12, qword [rbp + 0x38]
mov r9, qword [rbp + 0x30]
jmp case.0x14004825a.0
mov rdx, r9
shr rdx, 0x20
mov ecx, 3
cmp edx, 0x28
ja case.default.0x14004825a
xor eax, eax
lea r8, [0x140048568]
movsxd rdx, dword [r8 + rdx*4]
add rdx, r8
jmp rdx
mov al, 1
jmp case.0x14004825a.0
movzx eax, byte [r9 + 0xf]
mov ecx, 1
cmp al, 0xd
jne 0x1400482df
mov rax, qword [rbp + 0x20]
mov qword [rax], 2
mov qword [r12 + 0x38], 0
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400482f7
cmp ecx, 1
jne 0x1400482f7
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 0x1400482c5
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 0x1400482f7
mov rax, qword [rbp + 0x20]
mov qword [rax], 1
mov qword [rax + 8], r9
mov qword [r12 + 0x38], 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.0x14004825a.0
invalid
invalid
invalid
mov al, 0x23
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x24
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x1b
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x22
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x10
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0xe
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x21
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0xb
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 4
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x28
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0xc
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 9
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x19
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x18
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 2
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0xf
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 3
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 7
jmp case.0x14004825a.0
mov al, 0x1f
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x11
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x29
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x14
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 5
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x15
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 6
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x12
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0xa
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 8
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x1e
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x20
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x16
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x27
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x13
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x17
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x1c
jmp case.0x14004825a.0
invalid
invalid
invalid
mov al, 0x1d
jmp case.0x14004825a.0
mov al, 0x26
jmp case.0x14004825a.0
mov al, 0x1a
jmp case.0x14004825a.0
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, [0x1401b63a8]
mov edx, 0x29
call fcn.1401af2d0
jmp 0x14004848c
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
jmp 0x14004848c
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
mov rdx, r14
call fcn.1401af040
jmp 0x14004848c
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 0x14004848c
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.1401af040
jmp 0x14004848c
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
ud2