Function at 0x140063560
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
lea rcx, [0x1401a1766]
call fcn.140068b20
mov rax, qword [rbp + 0x250]
cmp qword [rax + 0x38], 0
je 0x1400635dc
mov rax, qword [rbp + 0x250]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.ucrtbased.dll_free]
mov rax, qword [rbp + 0x250]
add rax, 0x28
mov r8d, 0x28
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140D.dll_memset
lea r9, [rbp + 0x10]
mov r8d, dword [rbp + 0x260]
mov rax, qword [rbp + 0x250]
mov edx, dword [rax]
mov rax, qword [rbp + 0x250]
mov rcx, qword [rax + 0x10]
call fcn.140042c80
mov dword [rbp + 0xb4], eax
cmp dword [rbp + 0xb4], 0
je 0x140063618
cmp dword [rbp + 0x98], 0
jne 0x140063631
lea rdx, str.ERROR:_bad_packet_template_n
xor ecx, ecx
call fcn.14002ddd0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 0x250]
mov rcx, qword [rbp + 0x250]
mov ecx, dword [rcx + 8]
mov eax, dword [rax]
sub eax, ecx
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 4]
mov dword [rbp + 0xf4], eax
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 8]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x250]
mov eax, dword [rax]
add eax, 0x28
mov eax, eax
mov ecx, eax
call fcn.140068550
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x250]
mov eax, dword [rax]
mov r8d, eax
mov rax, qword [rbp + 0x250]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp + 0x158]
call sub.VCRUNTIME140D.dll_memcpy
mov rax, qword [rbp + 0x250]
mov rcx, qword [rbp + 0x158]
mov qword [rax + 0x38], rcx
mov eax, dword [rbp + 0xf4]
add eax, 0x28
mov dword [rbp + 0x134], eax
mov eax, dword [rbp + 0xd4]
mov ecx, dword [rbp + 0x114]
mov rdx, qword [rbp + 0x158]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rbp + 0x134]
mov r8, qword [rbp + 0x158]
add r8, rdx
mov rdx, r8
mov qword [rbp + 0x228], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x228]
mov rcx, rax
call sub.VCRUNTIME140D.dll_memmove
mov eax, dword [rbp + 0xf4]
mov rcx, qword [rbp + 0x158]
add rcx, rax
mov rax, rcx
mov r8d, 0x28
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140D.dll_memset
mov eax, dword [rbp + 0xf4]
mov ecx, dword [rbp + 0xd4]
lea eax, [rax + rcx + 0x28]
mov rcx, qword [rbp + 0x250]
mov dword [rcx + 0x28], eax
mov eax, dword [rbp + 0x260]
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0
je 0x140063771
cmp dword [rbp + 0x224], 1
je 0x140063782
jmp 0x1400637c6
mov rax, qword [rbp + 0x158]
mov dword [rax], reloc.WS2_32.dll_socket
jmp 0x1400637c6
mov rax, qword [rbp + 0x258]
mov r8d, 6
mov rdx, rax
mov rcx, qword [rbp + 0x158]
call sub.VCRUNTIME140D.dll_memcpy
mov eax, 1
imul rax, rax, 0xc
mov rcx, qword [rbp + 0x158]
mov byte [rcx + rax], 0x86
mov eax, 1
imul rax, rax, 0xd
mov rcx, qword [rbp + 0x158]
mov byte [rcx + rax], 0xdd
mov eax, dword [rbp + 0xf4]
mov eax, eax
mov rcx, qword [rbp + 0x158]
mov byte [rcx + rax], 0x60
mov eax, dword [rbp + 0xd4]
shr eax, 8
mov ecx, dword [rbp + 0xf4]
add ecx, 4
mov ecx, ecx
mov rdx, qword [rbp + 0x158]
mov byte [rdx + rcx], al
mov eax, dword [rbp + 0xf4]
add eax, 5
mov eax, eax
mov rcx, qword [rbp + 0x158]
movzx edx, byte [rbp + 0xd4]
mov byte [rcx + rax], dl
mov eax, dword [rbp + 0xf4]
add eax, 6
mov eax, eax
mov rcx, qword [rbp + 0x158]
movzx edx, byte [rbp + 0x30]
mov byte [rcx + rax], dl
cmp dword [rbp + 0x30], 1
jne 0x14006387c
mov eax, dword [rbp + 0xf4]
add eax, 6
mov eax, eax
mov rcx, qword [rbp + 0x158]
mov byte [rcx + rax], 0x3a
cmp dword [rbp + 0xd4], 0
jbe 0x14006387c
mov eax, dword [rbp + 0x134]
mov eax, eax
mov rcx, qword [rbp + 0x158]
movzx eax, byte [rcx + rax]
cmp eax, 8
jne 0x14006387c
mov eax, dword [rbp + 0x134]
mov eax, eax
mov rcx, qword [rbp + 0x158]
mov byte [rcx + rax], 0x80
mov eax, dword [rbp + 0xf4]
add eax, 7
mov eax, eax
mov rcx, qword [rbp + 0x158]
mov byte [rcx + rax], 0xff
lea r9, [rbp + 0x10]
mov r8d, dword [rbp + 0x260]
mov rax, qword [rbp + 0x250]
mov edx, dword [rax + 0x28]
mov rcx, qword [rbp + 0x158]
call fcn.140042c80
mov dword [rbp + 0xb4], eax
cmp dword [rbp + 0xb4], 0
je 0x1400638cb
cmp dword [rbp + 0x98], 0
jne 0x1400638e4
lea rdx, str.____FAILED:_bad_packet_template_n
xor ecx, ecx
call fcn.14002ddd0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 0x250]
mov ecx, dword [rbp + 0x28]
mov dword [rax + 0x2c], ecx
mov rax, qword [rbp + 0x250]
mov ecx, dword [rbp + 0x80]
mov dword [rax + 0x30], ecx
mov rax, qword [rbp + 0x250]
mov ecx, dword [rbp + 0x90]
mov dword [rax + 0x34], ecx
lea rcx, [rbp - 0x20]
lea rdx, [0x14008f120]
call fcn.140068a90
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret