Function at 0x14000d590
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1a8
movaps xmmword [rsp + 0x170], xmm6
movaps xmmword [rsp + 0x180], xmm7
movaps xmmword [rsp + 0x190], xmm8
mov r13, qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [rsp + 0x1f8], edx
mov rbp, rcx
mov rdi, r8
mov edx, 0x10000
mov ecx, 0x40
call r13
mov rbx, rax
test rax, rax
je 0x14000dc19
lea rax, [rbp + 0x78]
xor r12d, r12d
mov qword [rsp + 0x200], rdi
movq xmm6, qword [0x14003a6b8]
mov qword [rsp + 0x90], rax
movq xmm7, qword [0x14003a650]
mov qword [rsp + 0x98], r13
nop dword [rax + rax]
test r12d, r12d
je 0x14000dae8
lea rax, [rsp + 0xc0]
lea rdi, [rsp + 0x110]
mov qword [rsp + 0x88], rax
lea rax, [rbp + 0x68]
lea rsi, [rsp + 0xe0]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov r9d, 0xc11c
xor r8d, r8d
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0xd8], rax
mov rax, qword [rbp]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsp + 0x90]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x110], r12d
mov dword [rsp + 0x114], 2
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
movq qword [rsp + 0xe0], xmm6
movq qword [rsp + 0xc0], xmm6
movq qword [rsp + 0xd0], xmm7
call qword [rax + 0x30]
test eax, eax
mov r15d, eax
sete r13b
cmp eax, 0x90312
sete r14b
mov r9d, r13d
or r9b, r14b
je 0x14000d808
mov r8d, dword [rsp + 0xc0]
test r8d, r8d
je 0x14000d990
mov rdx, qword [rsp + 0xc8]
test rdx, rdx
je 0x14000d990
mov rcx, qword [rbp + 0x60]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
sub eax, 1
cmp eax, 0xfffffffd
ja 0x14000dbd9
mov rax, qword [rbp]
mov rcx, qword [rsp + 0xc8]
call qword [rax + pe_nt_image_headers64]
mov qword [rsp + 0xc8], 0
cmp r15d, 0x80090318
jne 0x14000dad0
mov esi, r12d
nop dword [rax]
mov eax, dword [rsp + 0x1f8]
test eax, eax
jne 0x14000da80
mov dword [rsp + 0x1f8], 1
mov r12d, esi
jmp 0x14000d629
test eax, eax
js 0x14000da20
cmp eax, 0x90320
jne 0x14000dab8
mov rax, qword [rbp]
mov rcx, qword [rsp + 0x90]
mov edx, 0x59
lea r8, [rsp + 0x100]
call qword [rax + 0x58]
test eax, eax
jne 0x14000daf0
pxor xmm0, xmm0
xor r15d, r15d
lea rax, str.1.3.6.1.5.5.7.3.2
mov dword [rsp + 0x164], 0
movups xmmword [rsp + 0x134], xmm0
movq xmm8, qword [0x14003a6c0]
lea r14, [rsp + 0x130]
lea r13, [rsp + 0xb0]
mov qword [rsp + 0x138], rax
mov eax, dword [rsp + 0x108]
movups xmmword [rsp + 0x144], xmm0
mov dword [rsp + 0x148], eax
mov rax, qword [rsp + 0x100]
movups xmmword [rsp + 0x154], xmm0
mov dword [rsp + 0x130], 0x38
mov qword [rsp + 0x150], rax
mov rcx, qword [rbp + 8]
mov r9d, 1
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov edx, 1
call qword [sym.imp.CRYPT32.dll_CertFindChainInStore]
mov r15, rax
test rax, rax
je 0x14000db4c
mov rax, qword [rax + 0x10]
xor r9d, r9d
xor ecx, ecx
mov r8d, 2
lea rdx, [rsp + 0xb8]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rbp + 0x18], r13
movq qword [rbp + 0x10], xmm8
mov qword [rsp + 0xb0], rax
mov rax, qword [rbp]
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0xf0]
mov qword [rsp + 0x38], rdx
lea rdx, [rbp + 0x10]
mov qword [rsp + 0x20], rdx
lea rdx, [0x1400394c0]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
call qword [rax + 0x18]
test eax, eax
jne 0x14000db08
mov rax, qword [rbp]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x20]
movdqa xmm1, xmmword [rsp + 0xf0]
movups xmmword [rbp + 0x68], xmm1
xor eax, eax
test r12d, r12d
sete al
mov dword [rsp + 0x1f8], eax
jmp 0x14000d67c
test r15d, r15d
je 0x14000db1b
xor esi, esi
cmp dword [rsp + 0x124], 5
jne 0x14000d7e0
mov r9d, r14d
mov r8d, dword [rsp + 0x120]
mov rcx, rbx
mov byte [rsp + 0x68], r9b
sub r12d, r8d
lea rdx, [rbx + r12]
call sym.memmove
movzx r9d, byte [rsp + 0x68]
mov r12d, dword [rsp + 0x120]
test r9b, r9b
jne 0x14000d620
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
movaps xmm6, xmmword [rsp + 0x170]
movaps xmm7, xmmword [rsp + 0x180]
mov eax, r15d
movaps xmm8, xmmword [rsp + 0x190]
add rsp, 0x1a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test byte [rsp + 0xa5], 0x40
je 0x14000da50
mov r8d, dword [rsp + 0xc0]
test r8d, r8d
je 0x14000da50
mov rdx, qword [rsp + 0xc8]
test rdx, rdx
je 0x14000da50
xor r14d, r14d
xor r13d, r13d
jmp 0x14000d792
cmp r15d, 0x80090318
je 0x14000d7d6
mov edx, r15d
lea rcx, str.Error_0x_x_returned_by_InitializeSecurityContext__2__n
call sym.wprintf.lto_priv.0
mov rax, qword [rbp]
mov rcx, qword [rsp + 0x90]
call qword [rax + 0x48]
jmp 0x14000d9e0
mov edx, esi
mov r8d, 0x10000
xor r9d, r9d
mov rcx, qword [rbp + 0x60]
add rdx, rbx
sub r8d, esi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14000dbc3
test eax, eax
je 0x14000dbac
lea r12d, [rax + rsi]
jmp 0x14000d629
cmp dword [rsp + 0x124], 5
je 0x14000d9ac
jmp 0x14000d9e0
test r13b, r13b
jne 0x14000db1b
test r15d, r15d
jns 0x14000d999
jmp 0x14000da5d
xor esi, esi
jmp 0x14000d7e0
mov edx, eax
lea rcx, str.Error_0x_x_querying_issuer_list_info_n
call sym.wprintf.lto_priv.0
jmp 0x14000d97b
mov edx, eax
lea rcx, [0x140039520]
call sym.wprintf.lto_priv.0
jmp 0x14000d8ba
cmp dword [rsp + 0x124], 5
mov rdi, qword [rsp + 0x200]
mov r13, qword [rsp + 0x98]
je 0x14000db65
mov qword [rdi + 8], 0
mov qword [rdi], 0
xor r15d, r15d
jmp 0x14000d9e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_0x_x_finding_cert_chain_n
mov edx, eax
call sym.wprintf.lto_priv.0
jmp 0x14000d97b
mov ecx, 0x40
mov edx, dword [rsp + 0x120]
call r13
mov qword [rdi + 8], rax
mov rcx, rax
test rax, rax
je 0x14000dc27
mov r8d, dword [rsp + 0x120]
mov edx, r12d
sub edx, r8d
add rdx, rbx
call sym.memmove
mov eax, dword [rsp + 0x120]
mov dword [rdi + 4], 2
mov dword [rdi], eax
jmp 0x14000db44
lea rcx, [0x1400392f0]
call sym.wprintf.lto_priv.0
mov r15d, 0x80090304
jmp 0x14000da6c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, [0x1400392a8]
mov edx, eax
call sym.wprintf.lto_priv.0
jmp 0x14000dbb8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.Error__d_sending_data_to_server__2__n
mov edx, eax
call sym.wprintf.lto_priv.0
mov rax, qword [rbp]
mov rcx, qword [rsp + 0xc8]
call qword [rax + pe_nt_image_headers64]
mov rax, qword [rbp]
mov rcx, qword [rsp + 0x90]
call qword [rax + 0x48]
mov r15d, 0x80090304
jmp 0x14000d9ea
lea rcx, str.Out_of_memory__1__n
call sym.wprintf.lto_priv.0
jmp 0x14000dc0e
lea rcx, [0x140039388]
call sym.wprintf.lto_priv.0
jmp 0x14000dc0e