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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
mov qword [rbp + 7], 0xfffffffffffffffe
mov esi, r8d
test r8d, r8d
je 0x180004f0b
lea rcx, [rbp + 0x67]
call fcn.180004290
mov r14, rax
test rax, rax
je 0x180004f0b
or edx, 0xffffffff
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc dword [r14 + 0x98]
mov edi, dword [r14 + 0x98]
mov dword [rbp + 0x7f], edi
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_SetEvent]
or edx, 0xffffffff
mov rcx, qword [0x18005ffe0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [0x18005ffe8]
mov dword [rbp - 0x51], ebx
mov rcx, qword [0x18005ffe0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov eax, esi
div ebx
mov ecx, edx
mov dword [rbp - 1], edx
mov r15d, eax
mov dword [rbp - 5], eax
mov edx, eax
mov dword [rsp + 0x30], eax
test ecx, ecx
je 0x180004ba3
lea edx, [rax + 1]
mov dword [rsp + 0x30], edx
xor r9d, r9d
mov qword [rsp + 0x38], r9
mov dword [rbp - 0x71], 1
mov dword [rbp - 0x75], 1
mov qword [rbp - 0x59], r9
mov dword [rbp - 0x5d], r9d
mov dword [rbp - 0x79], edi
mov dword [rbp - 0x6d], esi
mov r13d, r9d
mov qword [rbp - 0x49], r9
mov r12d, r9d
mov qword [rbp - 0x41], r9
mov esi, r9d
mov qword [rbp - 0x39], r9
mov dword [rbp - 0x11], r9d
mov eax, r9d
mov dword [rsp + 0x34], eax
test r15d, r15d
je 0x180004f1c
mov esi, dword [rbp - 0x51]
mov ecx, r9d
mov dword [rbp - 9], ecx
mov ebx, dword [rbp - 0x65]
lea r8d, [rsi + 0x50]
mov dword [rbp - 0x75], edx
mov dword [rbp - 0x71], eax
mov dword [rbp - 0x5d], esi
mov eax, ecx
add rax, qword [rbp + 0x6f]
mov qword [rbp - 0x11], rax
mov edi, dword [r14 + 0x10]
mov esi, dword [r14 + 0xc]
mov dword [rbp - 0x7d], 4
mov ecx, r8d
call fcn.18002f604
mov r15, rax
mov dword [rax + 4], 4
mov eax, dword [rbp + 0x7f]
mov dword [r15 + 8], eax
mov eax, dword [rsp + 0x30]
mov dword [r15 + 0xc], eax
mov r11d, dword [rsp + 0x34]
mov dword [r15 + 0x10], r11d
mov eax, dword [rbp + 0x77]
mov dword [r15 + 0x14], eax
mov dword [rbp - 0x69], edi
mov dword [r15 + 0x18], edi
mov dword [r15 + 0x1c], ebx
mov dword [rbp - 0x61], esi
mov dword [r15 + 0x20], esi
mov esi, dword [rbp - 0x51]
mov dword [r15 + 0x24], esi
xor eax, eax
mov qword [r15 + 0x28], rax
lea edi, [rax + 0x30]
test esi, esi
je 0x180004c91
mov r8d, esi
lea rcx, [r15 + 0x30]
mov rdx, qword [rbp - 0x11]
call fcn.18002fb80
lea edi, [rsi + 0x30]
mov r11d, dword [rsp + 0x34]
lea eax, [rdi - 4]
cmp eax, 1
jge 0x180004c9f
or r8d, 0xffffffff
jmp 0x180004ce7
xor r8d, r8d
xor r9d, r9d
movsxd r10, eax
test eax, eax
je 0x180004ce4
lea rbx, [0x18004dd40]
nop word [rax + rax]
movsx ecx, byte [r15 + r9 + 4]
mov eax, r8d
xor rcx, rax
movzx edx, cl
shr eax, 8
mov r8d, dword [rbx + rdx*4]
xor r8d, eax
inc r9
cmp r9, r10
jne 0x180004cc0
mov ebx, dword [rbp - 0x65]
not r8d
mov dword [rsp + 0x38], r8d
mov dword [r15], r8d
mov dword [rbp - 0x11], edi
mov dword [rbp - 0x29], 0
mov qword [rbp - 0x21], r15
mov dword [rbp - 0x19], edi
mov dword [rbp - 0x25], r11d
lea rax, [rbp - 0x29]
cmp rax, r12
jae 0x180004d7a
lea rax, [rbp - 0x29]
cmp r13, rax
ja 0x180004d7a
lea rcx, [rbp - 0x29]
sub rcx, r13
movabs rax, 0x6666666666666667
imul rcx
mov rdi, rdx
sar rdi, 3
mov rax, rdi
shr rax, 0x3f
add rdi, rax
cmp r12, qword [rbp - 0x39]
jne 0x180004d52
lea rcx, [rbp - 0x49]
call fcn.180005240
mov r12, qword [rbp - 0x41]
mov r13, qword [rbp - 0x49]
lea rcx, [rdi + rdi*4]
test r12, r12
je 0x180004da8
mov rax, qword [r13 + rcx*4]
mov qword [r12], rax
mov rax, qword [r13 + rcx*4 + 8]
mov qword [r12 + 8], rax
mov eax, dword [r13 + rcx*4 + 0x10]
mov dword [r12 + 0x10], eax
jmp 0x180004da8
cmp r12, qword [rbp - 0x39]
jne 0x180004d91
lea rcx, [rbp - 0x49]
call fcn.180005240
mov r12, qword [rbp - 0x41]
mov r13, qword [rbp - 0x49]
test r12, r12
je 0x180004da8
mov rax, qword [rbp - 0x29]
mov qword [r12], rax
mov qword [r12 + 8], r15
mov dword [r12 + 0x10], edi
add r12, 0x14
mov qword [rbp - 0x41], r12
mov rcx, r12
sub rcx, r13
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 0xa
jb 0x180004dfb
lea r8, [rbp - 0x49]
mov edx, dword [rbp + 0x7f]
mov rcx, r14
call fcn.180011620
test eax, eax
je 0x180004e23
lea rcx, [rbp - 0x49]
call fcn.180004a10
mov r12, qword [rbp - 0x41]
mov r13, qword [rbp - 0x49]
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov ecx, dword [rbp - 9]
add ecx, esi
mov dword [rbp - 9], ecx
mov r15d, dword [rbp - 5]
cmp eax, r15d
jae 0x180004f12
mov edx, dword [rsp + 0x30]
jmp 0x180004bfc
xor r15d, r15d
mov edi, r15d
mov rcx, r12
sub rcx, r13
movabs rax, 0x6666666666666667
imul rcx
mov rsi, rdx
sar rsi, 3
mov rax, rsi
shr rax, 0x3f
add rsi, rax
je 0x180004e68
lea rbx, [r13 + 8]
mov rcx, qword [rbx]
call fcn.18002f934
inc edi
add rbx, 0x14
mov eax, edi
cmp rax, rsi
jb 0x180004e53
cmp r13, r12
cmovne r12, r13
mov qword [rbp - 0x41], r12
mov qword [rsp + 0x38], r15
mov eax, dword [rbp + 0x7f]
mov dword [rbp - 0x79], eax
mov dword [rbp - 0x6d], r15d
mov dword [rbp - 0x5d], r15d
mov qword [rbp - 0x75], 1
mov qword [rbp - 0x59], r15
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp - 0x65], eax
mov dword [rbp + 0x77], r15d
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x20], eax
mov r9d, 7
mov r8d, dword [r14 + 0xc]
lea rdx, [rbp + 0x77]
lea rcx, [rsp + 0x38]
call fcn.18002d480
mov rbx, rax
test rax, rax
je 0x180004ef4
lea rcx, [r14 + 0x48]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, dword [rbp + 0x77]
mov rdx, rax
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, rbx
call fcn.18002f934
lea rcx, [rbp + 0x67]
call fcn.180004330
nop
test r13, r13
je 0x180004f0b
mov rcx, r13
call fcn.18002f934
xor eax, eax
jmp 0x1800051c8
mov rsi, qword [rbp - 0x39]
mov ebx, dword [rbp - 0x51]
mov ecx, dword [rbp - 1]
test ecx, ecx
je 0x180005022
mov eax, dword [rsp + 0x30]
mov dword [rbp - 0x75], eax
mov dword [rbp - 0x71], r15d
mov dword [rbp - 0x5d], ecx
imul ebx, r15d
mov eax, ebx
add rax, qword [rbp + 0x6f]
mov qword [rbp - 0x59], rax
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x20], eax
mov r9d, 4
mov r8d, dword [r14 + 0xc]
lea rdx, [rbp - 0x11]
lea rcx, [rsp + 0x38]
call fcn.18002d480
mov rbx, rax
mov dword [rbp - 0x29], 0
mov qword [rbp - 0x21], rax
mov edi, dword [rbp - 0x11]
mov dword [rbp - 0x19], edi
mov dword [rbp - 0x25], r15d
lea rax, [rbp - 0x29]
cmp rax, r12
jae 0x180004fed
lea rax, [rbp - 0x29]
cmp r13, rax
ja 0x180004fed
lea rcx, [rbp - 0x29]
sub rcx, r13
movabs rax, 0x6666666666666667
imul rcx
mov rbx, rdx
sar rbx, 3
mov rax, rbx
shr rax, 0x3f
add rbx, rax
cmp r12, rsi
jne 0x180004fc5
lea rcx, [rbp - 0x49]
call fcn.180005240
mov r12, qword [rbp - 0x41]
mov r13, qword [rbp - 0x49]
lea rcx, [rbx + rbx*4]
test r12, r12
je 0x18000501a
mov rax, qword [r13 + rcx*4]
mov qword [r12], rax
mov rax, qword [r13 + rcx*4 + 8]
mov qword [r12 + 8], rax
mov eax, dword [r13 + rcx*4 + 0x10]
mov dword [r12 + 0x10], eax
jmp 0x18000501a
cmp r12, rsi
jne 0x180005003
lea rcx, [rbp - 0x49]
call fcn.180005240
mov r12, qword [rbp - 0x41]
mov r13, qword [rbp - 0x49]
test r12, r12
je 0x18000501a
mov rax, qword [rbp - 0x29]
mov qword [r12], rax
mov qword [r12 + 8], rbx
mov dword [r12 + 0x10], edi
add r12, 0x14
mov qword [rbp - 0x41], r12
mov rcx, r12
sub rcx, r13
movabs rax, 0x6666666666666667
imul rcx
mov rsi, rdx
sar rsi, 3
mov rax, rsi
shr rax, 0x3f
mov r15d, dword [rbp + 0x7f]
add rsi, rax
je 0x180005132
lea r8, [rbp - 0x49]
mov edx, r15d
mov rcx, r14
call fcn.180011620
test eax, eax
jne 0x180005125
xor ebx, ebx
mov edi, ebx
test rsi, rsi
je 0x18000508b
lea rbx, [r13 + 8]
mov rcx, qword [rbx]
call fcn.18002f934
inc edi
add rbx, 0x14
mov eax, edi
cmp rax, rsi
jb 0x180005074
xor ebx, ebx
cmp r13, r12
cmovne r12, r13
mov qword [rbp - 0x41], r12
mov qword [rsp + 0x38], 0
mov dword [rbp - 0x79], r15d
mov dword [rbp - 0x6d], ebx
mov dword [rbp - 0x5d], ebx
mov qword [rbp - 0x75], 1
mov qword [rbp - 0x59], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp - 0x65], eax
mov dword [rbp + 0x77], ebx
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x20], eax
mov r9d, 7
mov r8d, dword [r14 + 0xc]
lea rdx, [rbp + 0x77]
lea rcx, [rsp + 0x38]
call fcn.18002d480
mov rbx, rax
test rax, rax
je 0x180005116
lea rcx, [r14 + 0x48]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, dword [rbp + 0x77]
mov rdx, rax
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, rbx
call fcn.18002f934
lea rcx, [rbp + 0x67]
call fcn.180004330
nop
jmp 0x180004efe
lea rcx, [rbp - 0x49]
call fcn.180004a10
mov r13, qword [rbp - 0x49]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rbp - 0x79], r15d
mov dword [rbp - 0x6d], ebx
mov dword [rbp - 0x5d], ebx
mov qword [rbp - 0x75], 1
mov qword [rbp - 0x59], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp - 0x65], eax
mov dword [rbp + 0x7f], ebx
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x20], eax
lea r9d, [rbx + 7]
mov r8d, dword [r14 + 0xc]
lea rdx, [rbp + 0x7f]
lea rcx, [rsp + 0x38]
call fcn.18002d480
mov rbx, rax
test rax, rax
je 0x1800051ae
lea rcx, [r14 + 0x48]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, dword [rbp + 0x7f]
mov rdx, rax
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, rbx
call fcn.18002f934
lea rcx, [rbp + 0x67]
call fcn.180004330
nop
test r13, r13
je 0x1800051c5
mov rcx, r13
call fcn.18002f934
mov eax, dword [rbp + 0x77]
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret