Function at 0x140003990
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400086c8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r13d, ecx
mov word [rsp + 0x40], dx
xor ecx, ecx
movzx ebx, dx
call fcn.140005370
lea rcx, [rsp + 0x70]
call fcn.140004ed0
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140003c46
xor r15d, r15d
test eax, eax
je 0x140003c46
nop dword [rax]
nop word [rax + rax]
mov eax, r15d
lea r12, [rsp + 0x74]
imul rcx, rax, 0x38
movzx r8d, bx
mov edx, r13d
add r12, rcx
mov rcx, r12
call fcn.140004d70
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140003c38
mov r9, qword [0x1400088d0]
xor eax, eax
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x44], socket
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x48], 2
mov qword [rsp + 0x28], rax
mov edx, 0x8004
movups xmmword [rsp + 0x58], xmm0
mov eax, dword [r9 + 0x10]
xor ecx, ecx
mov r9, qword [r9 + 8]
mov dword [rsp + 0x20], eax
call qword [sym.imp.CRYPT32.dll_CryptHashCertificate]
test eax, eax
je 0x140003c24
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x60]
call fcn.140004920
test eax, eax
je 0x140003c2a
mov rcx, qword [0x1400088d0]
call fcn.140004780
mov esi, eax
test eax, eax
je 0x140003c2a
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140003c24
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140005f00
movups xmm0, xmmword [rsp + 0x48]
xor r14d, r14d
mov r9d, esi
mov rdx, rbx
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x58]
lea r8d, [r14 + 0x28]
movups xmmword [rbx + 0x10], xmm1
movsd xmm0, qword [rsp + 0x68]
movsd qword [rbx + 0x20], xmm0
mov rcx, qword [0x1400088d0]
call fcn.1400045d0
test eax, eax
je 0x140003b2b
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.140003e40
mov r14d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14d, r14d
je 0x140003c2a
lea r8, [rbp + 0x1c0]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x60]
call fcn.1400043c0
test eax, eax
je 0x140003c2a
xor ebx, ebx
nop dword [rax]
mov r8d, reloc.WS2_32.dll_recv
movsxd rax, ebx
lea rdx, [rbp + 0x1b0]
sub r8d, ebx
add rdx, rax
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140003c1c
add ebx, eax
cmp ebx, 0x10
jl 0x140003b60
cmp dword [0x1400088c4], 0
je 0x140003bb7
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x1b0]
lea rcx, [0x1400089f0]
call fcn.140005c20
mov rax, qword [rbp + 0x1c0]
cmp rax, qword [rbp + 0x1b0]
jne 0x140003c2a
mov rax, qword [rbp + 0x1c8]
cmp rax, qword [rbp + 0x1b8]
jne 0x140003c2a
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x60]
lea rcx, [0x1400089f0]
call fcn.140005cb0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x60]
lea rcx, [0x1400088e0]
call fcn.140005cb0
mov rcx, r12
mov dword [0x1400088c4], 1
call fcn.140005370
mov rax, rdi
jmp 0x140003c4d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140003c2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
movzx ebx, word [rsp + 0x40]
inc r15d
cmp r15d, dword [rsp + 0x70]
jb 0x140003a00
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140005fc0
mov rbx, qword [rsp + 0x330]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret