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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x20]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x230]
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov dword [rsp + 0x6c], 0
mov byte [rsp + 0x74], 0
mov dword [rsp + 0x94], 0
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
lea rax, [rsp + rax + 0xb0]
mov qword [rsp + 0x158], rax
cmp qword [rsp + 0x230], 0
je 0x140028873
mov rax, qword [rsp + 0x230]
cmp dword [rax], 0xbab1e
je 0x14002887d
mov eax, 1
jmp 0x140029075
mov rax, qword [rsp + 0x230]
movzx eax, byte [rax + 0x18a]
test eax, eax
je 0x14002889a
mov eax, 8
jmp 0x140029075
cmp dword [rsp + 0x248], 0
jge 0x1400288ae
mov eax, 0xa
jmp 0x140029075
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400289b6
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call fcn.140028690
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], 0
jmp 0x1400288f2
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 5
jae 0x1400289a4
mov qword [rsp + 0x160], 0xffffffffffffffff
mov eax, dword [rsp + 0x68]
mov ecx, 1
mov dword [rsp + 0x200], ecx
movzx ecx, al
mov eax, dword [rsp + 0x200]
shl eax, cl
mov ecx, dword [rsp + 0x64]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x14002894c
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x68]
mov rax, qword [rsp + rax*8 + 0x38]
mov qword [rsp + 0x160], rax
mov eax, dword [rsp + 0x68]
add eax, 0x10
mov ecx, 1
mov dword [rsp + 0x204], ecx
movzx ecx, al
mov eax, dword [rsp + 0x204]
shl eax, cl
mov ecx, dword [rsp + 0x64]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140028992
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x68]
mov rax, qword [rsp + rax*8 + 0x38]
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x160], 0xffffffffffffffff
jne 0x14002899f
jmp 0x1400289a4
jmp 0x1400288e8
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
jmp 0x1400288bf
lea rdx, [rsp + 0x84]
mov rcx, qword [rsp + 0x230]
call fcn.140027670
cmp dword [rsp + 0x84], 0
jl 0x1400289f3
mov eax, dword [rsp + 0x248]
cmp dword [rsp + 0x84], eax
jge 0x1400289f3
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x248], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x240]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
movzx eax, byte [rsp + 0x260]
test eax, eax
je 0x140028a40
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x230]
cmp qword [rcx + rax + 0x178], 0xffffffffffffffff
je 0x140028a40
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0xa
jbe 0x140028a7a
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
mov rcx, rax
call qword [section..data]
mov qword [rsp + 0x158], rax
cmp qword [rsp + 0x158], 0
jne 0x140028a75
mov eax, 3
jmp 0x140029075
mov byte [rsp + 0x74], 1
mov dword [rsp + 0x6c], 0
cmp dword [rsp + 0x70], 0
je 0x140028c03
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140028c03
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call fcn.140028690
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], 0
jmp 0x140028ad1
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 5
jae 0x140028bf1
mov qword [rsp + 0x168], 0xffffffffffffffff
mov eax, dword [rsp + 0x68]
mov ecx, 1
mov dword [rsp + 0x208], ecx
movzx ecx, al
mov eax, dword [rsp + 0x208]
shl eax, cl
mov ecx, dword [rsp + 0x64]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140028b62
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x158]
mov rax, qword [rsp + rax*8 + 0x38]
mov qword [rdx + rcx], rax
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
mov ecx, 0x300
mov rdx, qword [rsp + 0x158]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x68]
mov rax, qword [rsp + rax*8 + 0x38]
mov qword [rsp + 0x168], rax
mov eax, dword [rsp + 0x68]
add eax, 0x10
mov ecx, 1
mov dword [rsp + 0x20c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x20c]
shl eax, cl
mov ecx, dword [rsp + 0x64]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140028bdf
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x158]
mov rax, qword [rsp + rax*8 + 0x38]
mov qword [rdx + rcx], rax
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
mov ecx, reloc.WS2_32.dll_recv
mov rdx, qword [rsp + 0x158]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x68]
mov rax, qword [rsp + rax*8 + 0x38]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0xffffffffffffffff
jne 0x140028bec
jmp 0x140028bf1
jmp 0x140028ac7
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
jmp 0x140028a9e
mov dword [rsp + 0x68], 0
jmp 0x140028c17
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x240]
cmp dword [rsp + 0x68], eax
jae 0x140028d54
mov eax, dword [rsp + 0x68]
imul rax, rax, 0x10
mov ecx, dword [rsp + 0x6c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x158]
mov r8, qword [rsp + 0x238]
mov rax, qword [r8 + rax]
mov qword [rdx + rcx], rax
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
xor ecx, ecx
mov rdx, qword [rsp + 0x158]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x68]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x238]
movsx eax, word [rcx + rax + 8]
and eax, 1
test eax, eax
je 0x140028cb2
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x158]
movsx eax, word [rcx + rax + 8]
or eax, 0x300
mov ecx, dword [rsp + 0x6c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x158]
mov word [rdx + rcx + 8], ax
mov eax, dword [rsp + 0x68]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x238]
movsx eax, word [rcx + rax + 8]
and eax, 2
test eax, eax
je 0x140028cfc
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x158]
movsx eax, word [rcx + rax + 8]
bts eax, 0xa
mov ecx, dword [rsp + 0x6c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x158]
mov word [rdx + rcx + 8], ax
mov eax, dword [rsp + 0x68]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x238]
movsx eax, word [rcx + rax + 8]
and eax, 4
test eax, eax
je 0x140028d45
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x158]
movsx eax, word [rcx + rax + 8]
or eax, 0x10
mov ecx, dword [rsp + 0x6c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x158]
mov word [rdx + rcx + 8], ax
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
jmp 0x140028c0d
movzx eax, byte [rsp + 0x260]
test eax, eax
je 0x140028dcd
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x230]
cmp qword [rcx + rax + 0x178], 0xffffffffffffffff
je 0x140028dcd
mov eax, 8
imul rax, rax, 0
mov ecx, dword [rsp + 0x6c]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x158]
mov r8, qword [rsp + 0x230]
mov rax, qword [r8 + rax + 0x178]
mov qword [rdx + rcx], rax
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
mov ecx, 0x300
mov rdx, qword [rsp + 0x158]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x140028fad
mov r8d, dword [rsp + 0x248]
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x158]
call fcn.14005fc20
mov dword [rsp + 0x170], eax
cmp dword [rsp + 0x170], 0
jle 0x140028fad
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x68], 0
jmp 0x140028e28
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x240]
cmp dword [rsp + 0x68], eax
jae 0x140028ef2
xor eax, eax
mov word [rsp + 0x174], ax
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x158]
movsx eax, word [rcx + rax + 0xa]
mov dword [rsp + 0x178], eax
mov eax, dword [rsp + 0x178]
and eax, 0x300
test eax, eax
je 0x140028e8c
movzx eax, word [rsp + 0x174]
or eax, 1
mov word [rsp + 0x174], ax
mov eax, dword [rsp + 0x178]
and eax, 0x10
test eax, eax
je 0x140028ead
movzx eax, word [rsp + 0x174]
or eax, 4
mov word [rsp + 0x174], ax
mov eax, dword [rsp + 0x178]
and eax, 0x400
test eax, eax
je 0x140028ed0
movzx eax, word [rsp + 0x174]
or eax, 2
mov word [rsp + 0x174], ax
mov eax, dword [rsp + 0x68]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x238]
movzx edx, word [rsp + 0x174]
mov word [rcx + rax + 0xa], dx
jmp 0x140028e1e
movzx eax, byte [rsp + 0x260]
test eax, eax
je 0x140028fad
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x230]
cmp qword [rcx + rax + 0x178], 0xffffffffffffffff
je 0x140028fad
mov eax, dword [rsp + 0x240]
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x158]
movsx eax, word [rcx + rax + 0xa]
and eax, 0x300
test eax, eax
je 0x140028fad
xor eax, eax
cmp eax, 1
je 0x140028f9d
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 0x40
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x230]
mov rcx, qword [rcx + rax + 0x178]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x1d8], rax
cmp qword [rsp + 0x1d8], 0
jg 0x140028f9b
jmp 0x140028f9d
jmp 0x140028f4d
mov eax, dword [rsp + 0x94]
dec eax
mov dword [rsp + 0x94], eax
movzx eax, byte [rsp + 0x74]
test eax, eax
je 0x140028fc4
mov rcx, qword [rsp + 0x158]
call qword [0x1400ce008]
cmp qword [rsp + 0x250], 0
je 0x140028fe0
mov rax, qword [rsp + 0x250]
mov ecx, dword [rsp + 0x94]
mov dword [rax], ecx
movzx eax, byte [rsp + 0x258]
test eax, eax
je 0x140028ff3
cmp dword [rsp + 0x6c], 0
je 0x140028ff5
jmp 0x140029073
mov dword [rsp + 0x1e4], 0
lea rdx, [rsp + 0x1e4]
mov rcx, qword [rsp + 0x230]
call fcn.140025b90
test eax, eax
jne 0x140029073
cmp dword [rsp + 0x1e4], 0
je 0x140029073
mov eax, dword [rsp + 0x248]
cmp dword [rsp + 0x1e4], eax
jle 0x140029043
mov eax, dword [rsp + 0x248]
mov dword [rsp + 0x1e4], eax
jmp 0x140029067
cmp dword [rsp + 0x1e4], 0
jge 0x140029067
movzx eax, byte [rsp + 0x258]
test eax, eax
je 0x140029067
mov eax, dword [rsp + 0x248]
mov dword [rsp + 0x1e4], eax
mov ecx, dword [rsp + 0x1e4]
call fcn.1400602b0
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.1400abe64
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400ab680
add rsp, 0x220
pop rdi
ret