Function at 0x140178560
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0xb0], 0
je 0x1401785b4
mov dword [rsp + 0x58], 0x1d
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x94], 0
jne 0x1401785d0
mov eax, dword [rsp + 0x54]
or eax, 2
mov dword [rsp + 0x54], eax
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.14014afb0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 8
jle 0x1401785ef
mov dword [rsp + 0x38], 8
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xa0]
cmp dword [rax + 0x2d0], 0
je 0x14017860f
mov dword [rsp + 0x38], 0
imul eax, dword [rsp + 0x38], 6
add eax, 0x52
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
cdqe
mov r9d, 0x5e7
lea r8, [0x140564c30]
mov edx, 1
mov rcx, rax
call fcn.1403ba980
mov rcx, qword [rsp + 0xa8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0
jne 0x1401786a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x5e7
lea rdx, [0x140564c80]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x5e7
lea rdx, [0x140564cd0]
lea rcx, [0x140564d18]
call fcn.140015e70
mov ecx, 0xfe
call fcn.14038e600
nop
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
mov edx, 1
mov word [rax + rcx], dx
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
mov edx, 4
imul rdx, rdx, 0
mov dword [rcx + rdx + 2], eax
mov rax, qword [rsp + 0xa0]
add rax, 0x30
mov ecx, dword [rsp + 0x30]
mov edx, dword [rsp + 0x58]
lea ecx, [rcx + rdx - 6]
movsxd rcx, ecx
mov rdx, qword [rsp + 0xa8]
mov rdx, qword [rdx]
add rdx, 6
mov qword [rsp + 0x60], rdx
mov r9d, 0x2a
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x60]
mov rcx, rax
call fcn.140168c00
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xa0]
mov ecx, 1
imul rcx, rcx, 0x30
mov rdx, qword [rsp + 0xa8]
mov rdx, qword [rdx]
movzx eax, byte [rax + 0x250]
mov byte [rcx + rdx], al
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xa0]
movsxd rax, dword [rax + 0x250]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0xa0]
mov edx, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x58]
lea edx, [rdx + r8 - 0x31]
movsxd rdx, edx
mov r8, qword [rsp + 0xa8]
mov r8, qword [r8]
add r8, 0x31
mov qword [rsp + 0x68], r8
mov r9, rax
mov r8, qword [rcx + 0x248]
mov rax, qword [rsp + 0x68]
mov rcx, rax
call fcn.140168c00
mov eax, 1
imul rax, rax, 0x51
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x38]
mov byte [rax + rcx], dl
mov dword [rsp + 0x34], 0
jmp 0x1401787e9
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jge 0x140178868
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
imul edx, dword [rsp + 0x34], 6
movsxd rdx, edx
lea rcx, [rcx + rdx + 0x52]
mov edx, 4
imul rdx, rdx, 0
mov r8, qword [rsp + 0x48]
mov eax, dword [r8 + rax + 4]
mov dword [rcx + rdx], eax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
imul edx, dword [rsp + 0x34], 6
movsxd rdx, edx
lea rcx, [rcx + rdx + 0x52]
mov edx, 2
imul rdx, rdx, 0
movzx eax, word [rax + 0x72]
mov word [rcx + rdx + 4], ax
jmp 0x1401787df
cmp qword [rsp + 0x48], 0
je 0x140178880
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1403ba8b0
nop
cmp dword [rsp + 0x58], 0
jle 0x140178961
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xa0]
movzx eax, word [rax + 0x29c]
cmp eax, 0x17
jne 0x1401788b1
mov qword [rsp + 0x70], 0x1c
jmp 0x1401788ba
mov qword [rsp + 0x70], reloc.WS2_32.dll_recv
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa8]
add rax, qword [rcx]
mov ecx, 1
imul rcx, rcx, 0
movzx edx, byte [rsp + 0x70]
mov byte [rax + rcx], dl
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xa0]
movzx eax, word [rax + 0x29c]
cmp eax, 0x17
jne 0x140178901
mov qword [rsp + 0x78], 0x1c
jmp 0x14017890a
mov qword [rsp + 0x78], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0xa0]
add rax, 0x29c
mov ecx, dword [rsp + 0x58]
dec ecx
movsxd rcx, ecx
movsxd rdx, dword [rsp + 0x30]
mov r8, qword [rsp + 0xa8]
mov r8, qword [r8]
lea rdx, [r8 + rdx + 1]
mov qword [rsp + 0x80], rdx
mov r9, qword [rsp + 0x78]
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x80]
mov rcx, rax
call fcn.140168c00
nop
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14037c300
mov rax, rdi
add rsp, 0x90
pop rdi
ret