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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400593d8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov esi, r8d
mov r12, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [r14 + 0x80]
xor edx, edx
xor r15d, r15d
mov qword [rsp + 0x28], rdx
xor r13d, r13d
xor ebx, ebx
mov ecx, dword [rdi + 0x28]
add ecx, dword [rdi + 0x24]
mov eax, dword [rdi + 0x20]
add eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rdi + 0x4c], edx
je 0x14003dc0a
mov ebx, dword [rdi + 0x48]
mov rcx, r12
mov rdx, qword [rdi + 0x50]
cmp esi, ebx
cmovb ebx, esi
movsxd r8, ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rdi + 0x48]
mov rcx, qword [rdi + 0x50]
cmp eax, esi
jbe 0x14003dbf8
sub eax, esi
lea rdx, [rcx + rsi]
mov r8d, eax
call sub.VCRUNTIME140.dll_memmove
sub dword [rdi + 0x48], esi
jmp 0x14003de46
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [rdi + 0x48], xmm0
jmp 0x14003de46
movsxd rdx, eax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r12, rax
test rax, rax
jne 0x14003dc33
mov ecx, 0x80090300
call qword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x14003de48
mov r14, qword [r14 + 0x80]
cmp dword [r14 + 0x3c], ebx
je 0x14003dc66
mov r8d, dword [r14 + 0x38]
mov rcx, r12
mov rdx, qword [r14 + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [r14 + 0x40]
mov r13d, dword [r14 + 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [r14 + 0x38], xmm0
test r13d, r13d
je 0x14003dc73
cmp ebp, 0x80090318
jne 0x14003dc9e
mov r8d, dword [rsp + 0x20]
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
sub r8d, r13d
movsxd rdx, r13d
add rdx, r12
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14003de2b
add r13d, eax
and dword [rsp + 0x40], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x44], 4
xor r8d, r8d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x50], r13d
mov rcx, qword [rax + 0x80]
mov qword [rsp + 0x58], r12
mov rcx, qword [rcx + 0x18]
call sub.Secur32.dll_DecryptMessage
mov ebp, eax
cmp eax, 0x90317
je 0x14003de3d
test eax, eax
je 0x14003dd19
cmp eax, 0x90321
je 0x14003dd19
cmp eax, 0x80090318
je 0x14003dc66
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
or ebx, 0xffffffff
jmp 0x14003de3d
mov r8, qword [rsp + 0x28]
lea rax, [rsp + 0x54]
lea rcx, [rsp + 0x50]
mov edx, 4
test r15, r15
jne 0x14003dd39
cmp dword [rax], 1
cmove r15, rcx
test r8, r8
jne 0x14003dd45
cmp dword [rax], 5
cmove r8, rcx
add rcx, 0x10
add rax, 0x10
sub rdx, 1
jne 0x14003dd2d
mov qword [rsp + 0x28], r8
test r8, r8
je 0x14003dd92
mov dword [r14 + 0x3c], 5
mov ecx, 1
mov eax, dword [r8]
mov edx, eax
mov dword [r14 + 0x38], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
mov r8d, dword [r14 + 0x38]
mov qword [r14 + 0x40], rax
mov rdx, qword [rdx + 8]
call sub.VCRUNTIME140.dll_memcpy
test r15, r15
jne 0x14003ddc0
cmp ebp, 0x90321
jne 0x14003dc66
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call fcn.14003de74
mov ebp, eax
test eax, eax
je 0x14003dc66
mov ecx, eax
jmp 0x14003de0a
mov ebp, dword [r15]
mov eax, esi
mov rdx, qword [r15 + 8]
cmp ebp, esi
mov rcx, qword [rsp + 0x38]
cmovb eax, ebp
mov r8d, eax
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
cmp ebp, esi
jbe 0x14003de3d
mov eax, 1
sub ebp, esi
mov dword [rdi + 0x48], ebp
mov ecx, eax
movsxd rbp, ebp
mov rdx, rbp
mov dword [rdi + 0x4c], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rdi + 0x50], rax
test rax, rax
jne 0x14003de17
mov ecx, 0x80090300
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 0xfffffffe
jmp 0x14003de3d
mov rdx, rsi
mov r8, rbp
add rdx, qword [r15 + 8]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14003de3d
or ebx, 0xffffffff
test eax, eax
jne 0x14003de3d
mov ecx, 0x2775
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400474b0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret