Function at 0x14006bdac
Capabilities:
Decrypt data via sspi
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x79], rdx
mov rsi, rcx
add rcx, 0x858
lea r8, [rbp - 0x51]
mov r13d, 4
mov edx, r13d
call qword [sym.imp.Secur32.dll_QueryContextAttributesW]
test eax, eax
jns 0x14006be0c
or eax, 0xffffffff
jmp 0x14006c1c9
xor r15d, r15d
xor r14d, r14d
and dword [rbp - 0x39], r14d
xor edx, edx
lea r8d, [r15 + 0x4c]
lea rcx, [rbp - 0x35]
call sub.msvcrt.dll_memset
mov eax, dword [rbp - 0x49]
lea edi, [rax + rax*4]
add edi, edi
movsxd rbx, edi
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov r12, rax
mov qword [rbp - 0x69], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_memset]
mov dword [rbp - 0x61], edi
movsxd rdx, dword [rsi + 0x8b0]
test edx, edx
je 0x14006bf1b
mov edi, 0x400
mov rcx, qword [rbp - 0x79]
cmp edx, edi
jl 0x14006bef9
mov r8d, edi
mov rdx, qword [rsi + 0x8a0]
call qword [sym.imp.msvcrt.dll_memcpy]
movsxd rbx, dword [rsi + 0x8b0]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov r14, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_memset]
movsxd r8, dword [rsi + 0x8b0]
mov rdx, qword [rsi + 0x8a0]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_memcpy]
mov edx, dword [rsi + 0x8b0]
sub edx, edi
movsxd r8, edx
lea rdx, [r14 + 0x400]
mov rcx, qword [rsi + 0x8a0]
call qword [sym.imp.msvcrt.dll_memcpy]
add dword [rsi + 0x8b0], 0xfffffc00
test r14, r14
je 0x14006c1b4
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x14006c1b4
mov r8, rdx
mov rdx, qword [rsi + 0x8a0]
call qword [sym.imp.msvcrt.dll_memcpy]
mov edi, dword [rsi + 0x8b0]
and dword [rsi + 0x8b0], 0
jmp 0x14006c1b4
or edi, 0xffffffff
jmp 0x14006bf26
mov r13d, 4
movsxd rax, dword [rsi + 0x898]
test eax, eax
je 0x14006bf57
mov r8, rax
movsxd rcx, r14d
add rcx, r12
mov rdx, qword [rsi + 0x888]
call qword [sym.imp.msvcrt.dll_memcpy]
add r14d, dword [rsi + 0x898]
and dword [rsi + 0x898], 0
jmp 0x14006bf80
movsxd rdx, r14d
add rdx, r12
xor r9d, r9d
mov r8d, dword [rbp - 0x49]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14006c1b2
cmp eax, edi
je 0x14006c1b2
add r14d, eax
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x39], r14d
mov dword [rbp - 0x35], 1
and dword [rbp - 0x25], 0
and dword [rbp - 0x15], 0
and dword [rbp - 5], 0
lea rdx, [rsi + 0x868]
and dword [rdx], 0
lea rax, [rbp - 0x39]
mov qword [rsi + 0x870], rax
mov dword [rsi + 0x86c], r13d
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsi + 0x858]
call qword [sym.imp.Secur32.dll_DecryptMessage]
mov r13d, eax
cmp eax, 0x80090318
je 0x14006bf20
test eax, eax
je 0x14006bfee
cmp eax, 0x90321
je 0x14006bfee
cmp eax, 0x90317
jne 0x14006c1b4
xor ebx, ebx
xor r14d, r14d
lea rax, [rbp - 0x35]
lea rcx, [rbp - 0x39]
lea edx, [rbx + 4]
test rbx, rbx
jne 0x14006c00a
cmp dword [rax], 1
cmove rbx, rcx
test r14, r14
jne 0x14006c016
cmp dword [rax], 5
cmove r14, rcx
add rcx, 0x10
add rax, 0x10
dec rdx
jne 0x14006bffe
test r14, r14
je 0x14006c0bd
mov eax, dword [r14]
mov dword [rsi + 0x898], eax
lea r12d, [rax + 0xa]
cmp r12d, dword [rsi + 0x890]
je 0x14006c0a5
mov ecx, r12d
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov qword [rbp - 0x71], rax
movsxd r8, r12d
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_memset]
mov rdx, qword [rsi + 0x888]
test rdx, rdx
je 0x14006c093
mov ecx, dword [rsi + 0x890]
mov r8d, r12d
cmp ecx, r12d
cmovb r8d, ecx
movsxd r8, r8d
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.msvcrt.dll_memcpy]
mov rcx, qword [rsi + 0x888]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rax, qword [rbp - 0x71]
mov qword [rsi + 0x888], rax
mov dword [rsi + 0x890], r12d
movsxd r8, dword [rsi + 0x898]
mov rdx, qword [r14 + 8]
mov rcx, qword [rsi + 0x888]
call qword [sym.imp.msvcrt.dll_memcpy]
cmp r13d, 0x90321
jne 0x14006c0d6
mov rcx, rsi
call fcn.14006c62c
test eax, eax
js 0x14006c1b4
test rbx, rbx
je 0x14006c1b7
movsxd r15, dword [rbx]
mov edi, 0x400
mov rdx, qword [rbx + 8]
mov rcx, qword [rbp - 0x79]
cmp r15d, edi
jg 0x14006c0fc
mov r8, r15
jmp 0x14006c1aa
mov r15d, edi
mov r8, rdi
call qword [sym.imp.msvcrt.dll_memcpy]
mov eax, dword [rbx]
add eax, 0xfffffc00
mov dword [rsi + 0x8b0], eax
lea r14d, [rax + 0x64]
cmp r14d, dword [rsi + 0x8a8]
je 0x14006c17f
mov ecx, r14d
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov r12, rax
movsxd r8, r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_memset]
mov rdx, qword [rsi + 0x8a0]
test rdx, rdx
je 0x14006c171
mov ecx, dword [rsi + 0x8a8]
mov r8d, r14d
cmp ecx, r14d
cmovb r8d, ecx
movsxd r8, r8d
mov rcx, r12
call qword [sym.imp.msvcrt.dll_memcpy]
mov rcx, qword [rsi + 0x8a0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsi + 0x8a0], r12
mov dword [rsi + 0x8a8], r14d
mov r8d, dword [rsi + 0x8a8]
xor edx, edx
mov rcx, qword [rsi + 0x8a0]
call qword [sym.imp.msvcrt.dll_memset]
movsxd r8, dword [rsi + 0x8b0]
mov rdx, qword [rbx + 8]
add rdx, rdi
mov rcx, qword [rsi + 0x8a0]
call qword [sym.imp.msvcrt.dll_memcpy]
jmp 0x14006c1b7
mov edi, eax
mov r15d, edi
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14006c1c6
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov eax, r15d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140001010
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret