Function at 0x1800d1260
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 + 0x38], r8
lea rcx, [rsp + 0x38]
call fcn.1800d7250
mov eax, dword [rsp + 0x38]
cmp eax, 2
jne 0x1800d129d
mov rbx, qword [rsp + 0x40]
jmp 0x1800d1342
test eax, eax
je 0x1800d1338
mov rax, qword [rsi + 0xb0]
mov r14, qword [rsi + 0xb8]
cmp r14, rax
jne 0x1800d14af
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 0x1800d13a7
mov rax, qword [rsi + 0xa8]
sub rax, r14
mov rbp, r14
cmp rax, rbx
jb 0x1800d1362
mov rax, qword [rsi + 0xa0]
lea rcx, [rax + rbp]
cmp rbx, 2
jb 0x1800d1392
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 0x1800d1397
movabs rbx, 0x8009031700000002
mov eax, ebx
and eax, 3
lea rcx, [0x1800d174c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [rbx + 0x10]
xor ecx, ecx
jmp case.0x1800d162e.0
lea rcx, [rsi + 0xa0]
mov rbp, rdx
mov rdx, r14
mov r8, rbx
call fcn.180181bc0
mov rdx, rbp
mov rbp, qword [rsi + 0xb0]
mov rax, qword [rsi + 0xa0]
lea rcx, [rax + rbp]
cmp rbx, 2
jae 0x1800d1316
cmp r13, r14
je 0x1800d139d
mov byte [rcx], 0
inc rbp
mov qword [rsi + 0xb0], rbp
mov r14, rbp
cmp r14, rdi
jb 0x1800d1748
mov rbx, qword [rsi + 0xa0]
lea r13, [rbx + rdx]
mov rcx, r13
mov rbp, rdx
mov rdx, r12
mov r8, r15
call fcn.180171d20
cmp r14, rbp
jb 0x1800d1748
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 + 0xc0]
lea r8, [rsp + 0x78]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
je 0x1800d1473
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov eax, ebx
and eax, 3
lea rcx, [0x1800d174c]
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 + 0xb0]
cmp rax, rcx
mov rbp, qword [rsp + 0x30]
jb 0x1800d149a
mov qword [rsi + 0xb0], rcx
mov rax, rcx
mov qword [rsi + 0xb8], 0
mov qword [rsi + 0x100], r15
xor r14d, r14d
cmp rax, r14
je 0x1800d151b
lea r15, [rsi + 0x10]
lea r12, [rsp + 0x38]
nop dword [rax]
sub rax, r14
jb 0x1800d1748
mov r8, qword [rsi + 0x38]
test r8, r8
je 0x1800d1748
mov r9, qword [rsi + 0xa0]
add r9, r14
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rdx, r15
call fcn.1801154c0
mov rax, qword [rsp + 0x38]
cmp rax, 2
je 0x1800d1533
mov rbx, qword [rsp + 0x40]
test rax, rax
jne 0x1800d1546
add r14, rbx
mov qword [rsi + 0xb8], r14
mov rax, qword [rsi + 0xb0]
cmp rax, r14
jne 0x1800d14c0
mov rax, qword [rsi + 0x100]
mov qword [rbp], 0
mov qword [rbp + 8], rax
or cl, ch
invalid
add byte [rax], al
invalid
or cl, ch
mov esi, 0x48000000
mov ebx, 3
or eax, 0xb0000000
mov al, 0xd
mov ecx, 3
jmp case.0x1800d162e.0
mov eax, ebx
and eax, 3
movabs rbx, 0xd00000003
mov al, 0xd
mov ecx, 3
jmp case.0x1800d162e.0
mov eax, ebx
and eax, 3
lea rcx, [0x1800d174c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [rbx + 0xf]
mov ecx, 1
jmp case.0x1800d162e.0
mov rcx, rbx
mov ecx, ebx
shr rcx, 0x20
call fcn.1800fef40
mov ecx, 2
cmp al, 0xd
jne 0x1800d15e5
mov qword [rbp], 2
mov qword [rsi + 0x38], 0
lea rax, [rcx - 2]
cmp rax, 2
jb 0x1800d15f9
test rcx, rcx
je 0x1800d15f9
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 0x1800d15d1
mov r8, qword [rbx - 1]
cmp qword [rax + 0x10], 0x11
jb 0x1800d15c2
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 0x1800d15f9
mov qword [rbp], 1
mov qword [rbp + 8], rbx
mov qword [rsi + 0x38], 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.0x1800d162e
xor eax, eax
lea r8, [0x1800d175c]
movsxd rdx, dword [r8 + rdx*4]
add rdx, r8
jmp rdx
mov al, 1
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x29
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 2
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 3
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 4
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 5
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 6
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 7
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 8
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 9
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0xa
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0xb
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0xc
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0xe
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0xf
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x10
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x11
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x12
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x13
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x14
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x15
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x16
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x17
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x18
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x19
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x1a
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x1b
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x1c
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x1d
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x1e
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x1f
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x20
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x21
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x22
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x23
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x24
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x25
jmp case.0x1800d162e.0
invalid
invalid
invalid
mov al, 0x26
jmp case.0x1800d162e.0
mov al, 0x27
jmp case.0x1800d162e.0
mov al, 0x28
jmp case.0x1800d162e.0
ud2