Function at 0x180004620
Capabilities:
Check for time delay via gettickcount
Encode data using xor
Hash data with crc32
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rsp + 0x140], rbx
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov ebx, edx
mov r15, rcx
mov qword [rbp - 0x41], rcx
xor esi, esi
mov rdx, qword [rcx]
lea rcx, [rbp - 0x69]
call fcn.180022200
nop
mov rax, qword [rbp - 0x69]
cmp dword [rax - 0x10], esi
jne 0x1800046b7
lea rdx, [rax - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004695
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1800046b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x1800049de
xor r8d, r8d
mov r12d, 2
mov edx, r12d
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov qword [rbp - 0x71], rax
test rax, rax
jne 0x1800046fc
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800046fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x180004695
mov dword [rbp - 0x5d], esi
mov dword [rbp - 0x61], esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x61]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rbp - 0x5d]
mov edx, 0x9800000c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov word [rbp + 0xf], r12w
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x11], ax
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x13], eax
mov dword [rbp - 0x59], 1
mov ecx, edi
lea r8, [rbp - 0x59]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
call fcn.180030ab8
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add r14d, eax
mov dword [rbp - 0x75], r14d
mov dword [rbp - 0x79], esi
mov r13d, esi
mov ecx, 4
call fcn.18002f604
mov rbx, rax
mov ecx, dword [0x18005e638]
mov dword [rax], ecx
mov ecx, 0x54
call fcn.18002f604
mov r12, rax
mov qword [rax + 4], rsi
mov qword [rax + 0xc], 1
mov dword [rax + 0x14], 4
mov dword [rax + 0x18], r14d
mov ecx, dword [rbp - 5]
mov dword [rax + 0x1c], ecx
mov dword [rax + 0x20], 0x500000
mov dword [rax + 0x24], 4
xor eax, eax
mov qword [r12 + 0x28], rax
mov eax, dword [rbx]
mov dword [r12 + 0x30], eax
mov r8d, esi
mov r9, rsi
lea r10, [0x18004dd40]
nop word [rax + rax]
movsx ecx, byte [r12 + r9 + 4]
mov eax, r8d
xor rcx, rax
movzx edx, cl
shr eax, 8
mov r8d, dword [r10 + rdx*4]
xor r8d, eax
inc r9
cmp r9, 0x30
jne 0x180004800
not r8d
mov dword [r12], r8d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
mov ebx, esi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 0x34]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x1800048a9
mov edx, dword [rbp - 0x75]
lea rcx, [rbp - 0x71]
call fcn.180004490
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
test r13d, r13d
jne 0x18000489e
sub eax, r14d
cmp eax, 0x4e20
jae 0x180004898
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
mov rdi, qword [rbp - 0x71]
cmp ebx, 0x64
jbe 0x180004834
jmp 0x1800048a9
mov rdi, qword [rbp - 0x71]
jmp 0x1800048a9
mov ebx, eax
sub ebx, r14d
mov rdi, qword [rbp - 0x71]
jmp 0x1800048ac
mov ebx, dword [rbp - 0x79]
mov rcx, r12
call fcn.18002f934
test r13d, r13d
je 0x180004982
mov dword [rbp - 0x79], esi
mov ecx, edi
lea r8, [rbp - 0x79]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, 0xa0
call fcn.18002ff98
mov qword [rbp - 0x51], rax
test rax, rax
je 0x1800048ef
mov rcx, rax
call fcn.180010ab0
mov rsi, rax
mov eax, dword [rbp - 0x75]
mov dword [rsi + 0x10], eax
mov qword [rsi + 0x40], rdi
mov dword [rsi + 0x58], 0x7530
mov dword [rsi + 0x5c], 0x5265c00
mov dword [rsi + 0x60], ebx
mov eax, dword [rbp + 0xf]
mov dword [rsi + 0x48], eax
mov eax, dword [rbp + 0x13]
mov dword [rsi + 0x4c], eax
mov eax, dword [rbp + 0x17]
mov dword [rsi + 0x50], eax
mov eax, dword [rbp + 0x1b]
mov dword [rsi + 0x54], eax
or edx, 0xffffffff
mov rcx, qword [0x18005fdc0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [0x18005fde8]
inc ebx
mov dword [0x18005fde8], ebx
mov dword [rbp - 0x51], ebx
mov qword [rbp - 0x49], rsi
lea rdx, [rbp - 0x51]
lea rcx, [0x18005fdc8]
call fcn.1800058d0
mov r8, rax
lea rdx, [rbp - 0x31]
lea rcx, [0x18005fdc8]
call fcn.180005510
mov rcx, qword [0x18005fdc0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, ebx
mov ecx, ebx
call fcn.1800045a0
jmp 0x18000499f
test rdi, rdi
je 0x18000499f
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800049c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1800049dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, esi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret