Function at 0x1401f3c40
Capabilities:
Decrypt data via sspi
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x308
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x310]
add rax, 0x78
mov qword [rsp + 0x80], rax
mov edx, 0x4200
mov rcx, qword [rsp + 0x80]
call fcn.1400c50c0
mov rax, qword [rsp + 0x310]
add rax, 0x78
mov qword [rsp + 0x88], rax
mov edx, 0x4200
mov rcx, qword [rsp + 0x88]
call fcn.1400c5110
nop
cmp dword [rsp + 0x320], 0
je 0x1401f45f3
cmp qword [rsp + 0x30], 0
je 0x1401f3e7d
mov rax, qword [rsp + 0x310]
mov eax, dword [rax + 0x70]
cmp dword [rsp + 0x320], eax
jae 0x1401f3cef
mov eax, dword [rsp + 0x320]
mov dword [rsp + 0x38], eax
jmp 0x1401f3cfe
mov rax, qword [rsp + 0x310]
mov eax, dword [rax + 0x70]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov r8, rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x318]
call fcn.140293240
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x318]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x318], rax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x320]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x320], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x310]
mov eax, dword [rax + 0x70]
cmp dword [rsp + 0x20], eax
jne 0x1401f3e47
mov rax, qword [rsp + 0x310]
mov rcx, qword [rsp + 0x310]
mov ecx, dword [rcx + 0x6c]
mov eax, dword [rax + 0x68]
sub eax, ecx
mov eax, eax
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x310]
add rax, 0x78
mov rcx, rax
call fcn.140028b50
mov rcx, qword [rsp + 0x310]
mov ecx, dword [rcx + 0x6c]
add rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x310]
add rax, 0x78
mov rcx, rax
call fcn.140028b50
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.140293240
mov rax, qword [rsp + 0x310]
mov rcx, qword [rsp + 0x310]
mov ecx, dword [rcx + 0x6c]
mov eax, dword [rax + 0x68]
sub eax, ecx
mov rcx, qword [rsp + 0x310]
mov dword [rcx + 0x68], eax
mov rax, qword [rsp + 0x310]
mov dword [rax + 0x6c], 0
mov rax, qword [rsp + 0x310]
mov dword [rax + 0x70], 0
mov qword [rsp + 0x30], 0
jmp 0x1401f3e78
mov rax, qword [rsp + 0x310]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + 0x70]
sub eax, ecx
mov rcx, qword [rsp + 0x310]
mov dword [rcx + 0x70], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x1401f45ee
mov rax, qword [rsp + 0x310]
cmp dword [rax + 0x68], 0
je 0x1401f4305
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov dword [rsp + rax + 0x1f4], 1
mov rax, qword [rsp + 0x310]
add rax, 0x78
mov rcx, rax
call fcn.140028b50
mov ecx, reloc.WS2_32.dll_recv
imul rcx, rcx, 0
mov qword [rsp + rcx + 0x1f8], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov rcx, qword [rsp + 0x310]
mov ecx, dword [rcx + 0x68]
mov dword [rsp + rax + 0x1f0], ecx
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov dword [rsp + rax + 0x1f4], 0
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 2
mov dword [rsp + rax + 0x1f4], 0
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 3
mov dword [rsp + rax + 0x1f4], 0
mov dword [rsp + 0x1e0], 0
mov dword [rsp + 0x1e4], 4
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x1e8], rax
mov rax, qword [rsp + 0x310]
add rax, 0x30
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x1e0]
mov rcx, rax
call sub.Secur32.dll_DecryptMessage
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x1401f3ffe
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov rax, qword [rsp + rax + 0x1f8]
mov qword [rsp + 0x30], rax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
mov rcx, qword [rsp + 0x310]
mov eax, dword [rsp + rax + 0x1f0]
mov dword [rcx + 0x70], eax
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 3
cmp dword [rsp + rax + 0x1f4], 5
jne 0x1401f3fd0
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 3
mov eax, dword [rsp + rax + 0x1f0]
mov dword [rsp + 0x3c], eax
jmp 0x1401f3fd8
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x310]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + 0x68]
sub eax, ecx
mov rcx, qword [rsp + 0x310]
mov dword [rcx + 0x6c], eax
jmp 0x1401f3cb4
cmp dword [rsp + 0x28], 0x90317
jne 0x1401f410c
mov rax, qword [rsp + 0x310]
mov qword [rax + 8], 0x90317
lea rax, [rsp + 0x258]
mov qword [rsp + 0xa8], rax
lea rdx, str.server_closed_TLS_connection
mov rcx, qword [rsp + 0xa8]
call fcn.140014930
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x248]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xb8]
call fcn.1400133e0
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xd8]
call fcn.1400aa010
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x310]
add rax, 0x10
mov rdx, qword [rsp + 0xd0]
mov rcx, rax
call fcn.1400179c0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400165c0
nop
mov rax, qword [rsp + 0x310]
mov dword [rax + 0x68], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x60]
call fcn.1400165c0
mov eax, dword [rsp + 0x40]
jmp 0x1401f45f7
cmp dword [rsp + 0x28], 0x90321
jne 0x1401f420b
mov rax, qword [rsp + 0x310]
mov qword [rax + 8], 0x90321
lea rax, [rsp + 0x278]
mov qword [rsp + 0xe0], rax
lea rdx, str.server_wants_to_renegotiate_TLS_connection
mov rcx, qword [rsp + 0xe0]
call fcn.140014930
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x68]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x230]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xf0]
call fcn.1400133e0
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x110]
call fcn.1400aa010
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x310]
add rax, 0x10
mov rdx, qword [rsp + 0x108]
mov rcx, rax
call fcn.1400179c0
nop
lea rcx, [rsp + 0x110]
call fcn.1400165c0
nop
mov dword [rsp + 0x44], 0xffffffff
lea rcx, [rsp + 0x68]
call fcn.1400165c0
mov eax, dword [rsp + 0x44]
jmp 0x1401f45f7
cmp dword [rsp + 0x28], 0x80090318
je 0x1401f4305
mov rax, qword [rsp + 0x310]
mov qword [rax + 8], 0xffffffff80090318
lea rax, [rsp + 0x298]
mov qword [rsp + 0x118], rax
lea rdx, str.some_other_schannel_or_TLS_protocol_error
mov rcx, qword [rsp + 0x118]
call fcn.140014930
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x70]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x250]
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x128]
call fcn.1400133e0
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x148]
call fcn.1400aa010
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x310]
add rax, 0x10
mov rdx, qword [rsp + 0x140]
mov rcx, rax
call fcn.1400179c0
nop
lea rcx, [rsp + 0x148]
call fcn.1400165c0
nop
mov dword [rsp + 0x48], 0xffffffff
lea rcx, [rsp + 0x70]
call fcn.1400165c0
mov eax, dword [rsp + 0x48]
jmp 0x1401f45f7
cmp dword [rsp + 0x24], 0
je 0x1401f4311
jmp 0x1401f45f3
mov rax, qword [rsp + 0x310]
mov eax, dword [rax + 0x68]
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x310]
add rcx, 0x78
call fcn.1400c5370
mov rcx, qword [rsp + 0x150]
cmp rcx, rax
jne 0x1401f4432
mov rax, qword [rsp + 0x310]
mov qword [rax + 8], 0xffffffffffffffff
lea rax, [rsp + 0x2b8]
mov qword [rsp + 0x158], rax
lea rdx, str.server_is_sending_too_much_garbage_data_instead_of_proper_TLS_packet
mov rcx, qword [rsp + 0x158]
call fcn.140014930
mov qword [rsp + 0x160], rax
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x78]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x238]
mov qword [rsp + 0x168], rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x168]
call fcn.1400133e0
mov qword [rsp + 0x170], rax
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x188]
call fcn.1400aa010
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x310]
add rax, 0x10
mov rdx, qword [rsp + 0x180]
mov rcx, rax
call fcn.1400179c0
nop
lea rcx, [rsp + 0x188]
call fcn.1400165c0
nop
mov dword [rsp + 0x4c], 0xffffffff
lea rcx, [rsp + 0x78]
call fcn.1400165c0
mov eax, dword [rsp + 0x4c]
jmp 0x1401f45f7
mov rax, qword [rsp + 0x310]
add rax, 0x78
mov rcx, rax
call fcn.1400c5370
mov rcx, qword [rsp + 0x310]
mov ecx, dword [rcx + 0x68]
sub rax, rcx
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x310]
mov eax, dword [rax + 0x68]
mov qword [rsp + 0x190], rax
mov rcx, qword [rsp + 0x310]
add rcx, 0x78
call fcn.140028b50
mov rcx, qword [rsp + 0x190]
add rax, rcx
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x310]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x1a0], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x1401f44d8
xor eax, eax
jmp 0x1401f45f7
cmp dword [rsp + 0x2c], 0
jge 0x1401f45d4
mov rax, qword [rsp + 0x310]
mov qword [rax + 8], 0xffffffffffffffff
lea rax, [rsp + 0x2d8]
mov qword [rsp + 0x1a8], rax
lea rdx, str.error_receiving_data_from_socket
mov rcx, qword [rsp + 0x1a8]
call fcn.140014930
mov qword [rsp + 0x1b0], rax
mov rdx, qword [rsp + 0x1b0]
lea rcx, [rsp + 0x58]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x240]
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x1b8]
call fcn.1400133e0
mov qword [rsp + 0x1c0], rax
mov rdx, qword [rsp + 0x1c0]
lea rcx, [rsp + 0x1d8]
call fcn.1400aa010
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x310]
add rax, 0x10
mov rdx, qword [rsp + 0x1d0]
mov rcx, rax
call fcn.1400179c0
nop
lea rcx, [rsp + 0x1d8]
call fcn.1400165c0
nop
mov dword [rsp + 0x24], 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.1400165c0
nop
jmp 0x1401f45f3
mov rax, qword [rsp + 0x310]
mov eax, dword [rax + 0x68]
add eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x310]
mov dword [rcx + 0x68], eax
jmp 0x1401f3cb4
mov eax, dword [rsp + 0x24]
add rsp, 0x308
ret