Function at 0x1800d3500
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r12, r9
mov rsi, rdx
mov rbp, rcx
mov qword [rdx + 0x138], r8
lea rcx, [rsp + 0x38]
call fcn.1800d3ae0
mov eax, dword [rsp + 0x38]
cmp eax, 2
jne 0x1800d3540
mov rbx, qword [rsp + 0x40]
jmp 0x1800d35e5
test eax, eax
je 0x1800d35db
mov rax, qword [rsi + 0x1b0]
mov r14, qword [rsi + 0x1b8]
cmp r14, rax
jne 0x1800d3752
mov rax, qword [rsp + 0xf0]
mov edx, dword [rsp + 0x3c]
mov r15, qword [rsp + 0x40]
mov r13d, r15d
shr r15, 0x20
cmp rax, r15
cmovb r15, rax
lea rdi, [r15 + rdx]
add r13, rdi
mov rbx, r13
sub rbx, r14
mov qword [rsp + 0x30], rbp
jbe 0x1800d364a
mov rax, qword [rsi + 0x1a8]
sub rax, r14
mov rbp, r14
cmp rax, rbx
jb 0x1800d3605
mov rax, qword [rsi + 0x1a0]
lea rcx, [rax + rbp]
cmp rbx, 2
jb 0x1800d3635
lea r8, [rbx - 1]
mov r14, rdx
xor edx, edx
mov r13, rax
call fcn.1801723c0
mov rdx, r14
add rbp, rbx
dec rbp
add r13, rbp
mov rcx, r13
jmp 0x1800d363a
movabs rbx, 0x8009031700000002
mov eax, ebx
and eax, 3
lea rcx, [0x1800d3a24]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [rbx + 0x10]
xor ecx, ecx
jmp case.0x1800d3904.0
lea rcx, [rsi + 0x1a0]
mov rbp, rdx
mov rdx, r14
mov r8, rbx
call fcn.180181bc0
mov rdx, rbp
mov rbp, qword [rsi + 0x1b0]
mov rax, qword [rsi + 0x1a0]
lea rcx, [rax + rbp]
cmp rbx, 2
jae 0x1800d35b9
cmp r13, r14
je 0x1800d3640
mov byte [rcx], 0
inc rbp
mov qword [rsi + 0x1b0], rbp
mov r14, rbp
cmp r14, rdi
jb 0x1800d3a1e
mov rbx, qword [rsi + 0x1a0]
lea r13, [rbx + rdx]
mov rcx, r13
mov rbp, rdx
mov rdx, r12
mov r8, r15
call fcn.180171d20
cmp r14, rbp
jb 0x1800d3a1e
sub r14d, edi
add rdi, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x3c], 7
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x5c], 6
mov qword [rsp + 0x60], rdi
movabs rax, 0x400000000
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x80], rax
lea rcx, [rsi + 0x1c0]
lea r8, [rsp + 0x78]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
je 0x1800d3716
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov eax, ebx
and eax, 3
lea rcx, [0x1800d3a24]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov rbp, qword [rsp + 0x30]
jmp rax
mov ecx, dword [rsp + 0x48]
add ecx, dword [rsp + 0x38]
add ecx, dword [rsp + 0x58]
mov rax, qword [rsi + 0x1b0]
cmp rax, rcx
mov rbp, qword [rsp + 0x30]
jb 0x1800d373d
mov qword [rsi + 0x1b0], rcx
mov rax, rcx
mov qword [rsi + 0x1b8], 0
mov qword [rsi + 0x200], r15
xor r14d, r14d
cmp rax, r14
je 0x1800d37eb
lea r15, [rsi + 0x10]
lea r12, [rsi + 0x18]
lea r13, [rsp + 0x38]
nop dword [rax + rax]
sub rax, r14
jb 0x1800d3a1e
mov r8, qword [rsi + 0x138]
test r8, r8
je 0x1800d3a1e
mov r9, qword [rsi + 0x1a0]
add r9, r14
cmp dword [r15], 2
jne 0x1800d37b0
mov qword [rsp + 0x20], rax
mov rcx, r13
mov rdx, r12
call fcn.1801154c0
jmp 0x1800d37c0
mov qword [rsp + 0x20], rax
mov rcx, r13
mov rdx, r15
call fcn.1800d1260
mov rax, qword [rsp + 0x38]
cmp rax, 2
je 0x1800d3803
mov rbx, qword [rsp + 0x40]
test rax, rax
jne 0x1800d3816
add r14, rbx
mov qword [rsi + 0x1b8], r14
mov rax, qword [rsi + 0x1b0]
cmp rax, r14
jne 0x1800d3770
mov rax, qword [rsi + 0x200]
mov qword [rbp], 0
mov qword [rbp + 8], rax
or cl, ch
rol dword [rax], 0
invalid
or cl, ch
rol dword [rax], 0
add byte [rax - 0x45], cl
add eax, dword [rax]
add byte [rax], al
or eax, 0xb0000000
mov al, 0xd
mov ecx, 3
jmp case.0x1800d3904.0
mov eax, ebx
and eax, 3
movabs rbx, 0xd00000003
mov al, 0xd
mov ecx, 3
jmp case.0x1800d3904.0
mov eax, ebx
and eax, 3
lea rcx, [0x1800d3a24]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [rbx + 0xf]
mov ecx, 1
jmp case.0x1800d3904.0
mov rcx, rbx
mov ecx, ebx
shr rcx, 0x20
call fcn.1800fef40
mov ecx, 2
cmp al, 0xd
jne 0x1800d38b8
mov qword [rbp], 2
mov qword [rsi + 0x138], 0
lea rax, [rcx - 2]
cmp rax, 2
jb 0x1800d38cf
test rcx, rcx
je 0x1800d38cf
lea rsi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x1800d38a4
mov r8, qword [rbx - 1]
cmp qword [rax + 0x10], 0x11
jb 0x1800d3895
mov r8, qword [r8 - 8]
mov rcx, qword [0x18021a960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800d38cf
mov qword [rbp], 1
mov qword [rbp + 8], rbx
mov qword [rsi + 0x138], 0
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, rbx
shr rdx, 0x20
mov ecx, 3
cmp edx, 0x28
ja case.default.0x1800d3904
xor eax, eax
lea r8, [0x1800d3a34]
movsxd rdx, dword [r8 + rdx*4]
add rdx, r8
jmp rdx
mov al, 1
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x29
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 2
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 3
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 4
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 5
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 6
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 7
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 8
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 9
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0xa
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0xb
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0xc
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0xe
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0xf
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x10
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x11
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x12
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x13
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x14
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x15
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x16
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x17
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x18
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x19
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x1a
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x1b
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x1c
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x1d
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x1e
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x1f
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x20
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x21
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x22
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x23
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x24
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x25
jmp case.0x1800d3904.0
invalid
invalid
invalid
mov al, 0x26
jmp case.0x1800d3904.0
mov al, 0x27
jmp case.0x1800d3904.0
mov al, 0x28
jmp case.0x1800d3904.0
ud2