Function at 0x180062884
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov esi, 9
movzx r13d, r9b
mov r15, rdx
mov rbx, rcx
cmp r8d, esi
jb 0x180062b58
xor r12d, r12d
cmp r8d, esi
jge 0x1800628c2
mov edi, r12d
jmp 0x1800628ce
mov ecx, dword [rdx]
call sub.WS2_32.dll_ntohl
mov edi, eax
shr edi, 8
movzx ebp, byte [r15 + 4]
and ebp, 1
cmp byte [0x18010a364], r12b
je 0x180062936
lea rcx, [rsp + 0x80]
call fcn.1800605a8
cmp byte [rax + 0x4a], r12b
je 0x18006291f
mov r9, r12
movabs r10, 0xd993efbb19cfe32d
mov cl, r9b
mov r8, r10
and cl, 7
shl cl, 3
shr r8, cl
xor byte [r9 + rax], r8b
inc r9
cmp r9, 0x4a
jb 0x1800628ff
mov byte [rax + 0x4a], r12b
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, r13d
mov rdx, rax
mov ecx, 4
call fcn.18006a848
mov eax, 0xaaaaaaab
mul edi
shr edx, 2
lea eax, [rdx + rdx*2]
add eax, eax
cmp edi, eax
jne 0x180062b58
test edx, edx
je 0x180062a23
mov edi, edx
mov eax, esi
movzx ecx, word [rax + r15]
call sub.WS2_32.dll_ntohs
add esi, 2
movzx r14d, ax
mov ecx, dword [rsi + r15]
call sub.WS2_32.dll_ntohl
add esi, 4
mov r12d, eax
cmp byte [0x18010a364], 0
je 0x1800629e3
lea rcx, [rsp + 0x80]
call fcn.180060a00
cmp byte [rax + 0x52], 0
je 0x1800629c7
xor r9d, r9d
movabs rbx, 0xd993efbb19cfe32d
mov cl, r9b
mov r8, rbx
and cl, 7
shl cl, 3
shr r8, cl
xor byte [r9 + rax], r8b
inc r9
cmp r9, 0x52
jb 0x1800629a2
mov rbx, qword [rsp + 0x70]
mov byte [rax + 0x52], 0
mov r8d, r14d
mov dword [rsp + 0x28], ebp
mov r9d, r12d
mov dword [rsp + 0x20], r13d
mov rdx, rax
mov ecx, 4
call fcn.18006a848
mov eax, 1
cmp r14w, ax
jne 0x180062a0f
test ebp, ebp
jne 0x180062a0f
mov rax, r12
xor r12d, r12d
test r13b, r13b
je 0x180062a06
mov qword [rbx + 0x2e8], rax
jmp 0x180062a12
mov qword [rbx + 0x1c8], rax
jmp 0x180062a12
xor r12d, r12d
mov r14d, 1
sub rdi, r14
jne 0x180062957
jmp 0x180062a29
mov r14d, 1
test ebp, ebp
je 0x180062b53
test r13b, r13b
je 0x180062acb
mov rdx, qword [rbx + 0x1c8]
test rdx, rdx
je 0x180062b53
cmp byte [0x18010a364], r12b
je 0x180062ab3
lea rcx, [rsp + 0x80]
call fcn.18006123c
cmp byte [rax + 0x56], r12b
je 0x180062a98
mov r9, r12
movabs rbx, 0xd993efbb19cfe32d
mov cl, r9b
mov r8, rbx
and cl, 7
shl cl, 3
shr r8, cl
xor byte [r9 + rax], r8b
add r9, r14
cmp r9, 0x56
jb 0x180062a73
mov rbx, qword [rsp + 0x70]
mov byte [rax + 0x56], r12b
mov r8, qword [rbx + 0x1c8]
mov rdx, rax
mov ecx, 4
call fcn.18006a848
mov rdx, qword [rbx + 0x1c8]
lea rcx, [rbx + 0xb8]
call fcn.180041270
mov qword [rbx + 0x1c8], r12
jmp 0x180062b53
mov rdx, qword [rbx + 0x2e8]
test rdx, rdx
je 0x180062b53
cmp byte [0x18010a364], r12b
je 0x180062b40
lea rcx, [rsp + 0x80]
call fcn.180061044
cmp byte [rax + 0x58], r12b
je 0x180062b25
mov r9, r12
movabs rbx, 0xd993efbb19cfe32d
mov cl, r9b
mov r8, rbx
and cl, 7
shl cl, 3
shr r8, cl
xor byte [r9 + rax], r8b
add r9, r14
cmp r9, 0x58
jb 0x180062b00
mov rbx, qword [rsp + 0x70]
mov byte [rax + 0x58], r12b
mov r8, qword [rbx + 0x2e8]
mov rdx, rax
mov ecx, 4
call fcn.18006a848
mov rdx, qword [rbx + 0x2e8]
lea rcx, [rbx + 0x1d8]
call fcn.180041270
mov qword [rbx + 0x2e8], r12
mov al, r14b
jmp 0x180062b5a
xor al, al
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret