Function at 0x18033a370
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c8
mov rax, qword [0x180476ea8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov eax, dword [rcx + 0x34]
mov r10, rcx
mov rsi, qword [rcx + 0x70]
mov rdi, rdx
mov r14, qword [rcx + 0x38]
mov r15d, edx
mov dword [rsp + 0x40], eax
mov rbx, r8
mov r8, qword [rcx + 8]
mov r12d, 1
mov eax, dword [rcx + 0x18]
sub r15d, r8d
mov ecx, dword [rcx + 0x100]
mov ebp, 3
mov r11, qword [r10 + 0x60]
mov dword [rsp + 0x30], eax
add rax, r8
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x80], r9
mov r9d, edx
sub r9d, r8d
mov qword [rsp + 0x88], rdx
mov eax, r9d
mov dword [rsp + 0x24], r9d
mov edx, r12d
mov qword [rsp + 0x38], rbx
shl edx, cl
mov ecx, dword [r10 + 0x1c]
sub r9d, edx
sub eax, ecx
mov qword [rsp + 0x98], rsi
cmp eax, edx
mov qword [rsp + 0x70], r14
mov eax, dword [r10 + 0x10c]
cmovbe r9d, ecx
mov qword [rsp + 0x60], r8
cmp dword [r10 + 0x28], 0
mov dword [rsp + 0x34], r15d
cmovne r9d, ecx
mov qword [rsp + 0x58], r11
mov ecx, 4
mov dword [rsp + 0x78], r9d
mov r9, qword [r10 + 0xf8]
cmp eax, ecx
mov qword [rsp + 0x90], rbp
cmovb ecx, eax
mov qword [rsp + 0x48], r9
shl r12d, cl
movabs rax, 0xcf1bbcdcbf9b0000
mov rcx, qword [rdi]
imul rcx, rax
mov eax, 0x42
mov dword [rsp + 0x20], r12d
sub eax, dword [r9 + 0x108]
mov rdx, rcx
mov qword [rsp + 0x50], rcx
movzx ecx, al
shr rdx, cl
lea rax, [rdx*4]
lea rcx, [rax*4]
mov qword [rsp + 0xa0], rax
mov rax, qword [r9 + 0x70]
mov qword [rsp + 0x68], rcx
prefetcht0 byte [rcx + rax]
mov ecx, dword [r10 + 0x10c]
xor r13d, r13d
cmp ecx, 4
jbe 0x18033a4dc
add ecx, 0xfffffffc
mov eax, 1
shl eax, cl
mov dword [rsp + 0x2c], eax
jmp 0x18033a4e1
mov dword [rsp + 0x2c], r13d
mov dword [rsp + 0x28], reloc.WS2_32.dll_ntohs
cmp dword [r10 + 0x12c], r13d
jne 0x18033a7d1
mov r11d, dword [r10 + 0x2c]
mov eax, r15d
mov ecx, dword [rsp + 0x40]
sub eax, r11d
mov r12d, ecx
mov rdx, r8
mov r15d, reloc.WS2_32.dll_getservbyport
cmp eax, 0x180
jbe 0x18033a6a6
lea eax, [r11 + 0x60]
cmp r11d, eax
jae 0x18033a5ea
mov rbp, qword [rsp + 0x98]
lea r14, [r8 + 8]
mov rdi, qword [rsp + 0x70]
mov r12d, r15d
sub r12d, ecx
mov esi, r11d
add r14, r11
mov ebx, eax
movabs r15, 0xcf1bbcdcbf9b0000
mov rdx, qword [r14]
mov ecx, r12d
imul rdx, r15
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [rdi + rax]
mov rax, rsi
lea r14, [r14 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, r13d
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [rdi + r8]
lea rdx, [rdi + r8]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x28]
inc rsi
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rbp + rax*4], r11d
inc r11d
cmp r11d, ebx
jb 0x18033a551
mov rdx, qword [r10 + 8]
mov r15d, reloc.WS2_32.dll_getservbyport
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov r11d, dword [rsp + 0x34]
lea rax, [rdi + 1]
mov r9, qword [rsp + 0x60]
add r11d, 0xffffffe0
mov rsi, qword [r10 + 0x70]
mov ecx, eax
mov r14, qword [r10 + 0x38]
sub ecx, r11d
sub ecx, dword [rsp + 0x60]
mov r12d, dword [r10 + 0x34]
inc ecx
mov r8d, r11d
add r9, r8
cmp r9, rax
mov eax, 8
cmova ecx, r13d
cmp ecx, eax
cmova ecx, eax
lea eax, [r11 + rcx]
cmp r11d, eax
jae 0x18033a6a6
mov ebx, r15d
movabs rbp, 0xcf1bbcdcbf9b0000
sub ebx, r12d
mov r12d, ecx
nop word [rax + rax]
mov rdx, qword [r9]
mov ecx, ebx
imul rdx, rbp
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [r14 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub r12, 1
jne 0x18033a650
mov rsi, qword [r10 + 0x70]
mov ebp, 3
mov r14, qword [r10 + 0x38]
mov r12d, dword [r10 + 0x34]
mov rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x38]
mov eax, dword [rsp + 0x34]
cmp r11d, eax
jae 0x18033a769
mov ebx, r15d
mov ebp, eax
sub ebx, r12d
mov r15d, r11d
lea r12, [r11 + 8]
movabs rdi, 0xcf1bbcdcbf9b0000
add r12, rdx
nop
mov rdx, qword [r12]
mov ecx, ebx
imul rdx, rdi
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [r14 + rax]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, r13d
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r14 + r8]
lea rdx, [r14 + r8]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x28]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rsi + rax*4], r11d
inc r11d
cmp r11d, ebp
jb 0x18033a6d0
mov rbx, qword [rsp + 0x38]
mov r15d, reloc.WS2_32.dll_getservbyport
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov eax, dword [rsp + 0x34]
sub r15d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x24]
movzx ecx, r15b
mov rsi, qword [rsp + 0x98]
mov dword [r10 + 0x2c], eax
mov rax, qword [rsp + 0x60]
mov rdx, qword [r8 + rax + 8]
movabs rax, 0xcf1bbcdcbf9b0000
imul rdx, rax
xor rdx, qword [rsp + 0x58]
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
mov r14, qword [rsp + 0x70]
prefetcht0 byte [rax + r14]
mov r12d, dword [rsp + 0x20]
and r8d, 7
mov r11d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
jmp 0x18033a7ea
xor r11, qword [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_getservbyport
sub ecx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x24]
shr r11, cl
mov dword [r10 + 0x2c], eax
add dword [r10 + 0x68], r11d
mov eax, r11d
shr rax, 4
and eax, 0xffffff0
mov qword [rsp + 0x58], r11
movdqu xmm0, xmmword [rax + r14]
lea rcx, [rax + r14]
mov r11, r13
mov qword [rsp + 0x70], rcx
lea r15, [rsi + rax*4]
movzx eax, byte [rcx]
mov r14d, eax
mov dword [rsp + 0x50], eax
movsx eax, byte [rsp + 0x58]
and r14d, 0xf
mov ecx, r14d
mov rsi, r13
neg ecx
and ecx, 0xf
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb edx, xmm1
movzx eax, dx
shl ax, cl
movzx ecx, r14b
movzx r9d, ax
movzx eax, dx
shr rax, cl
or r9, rax
jbe 0x18033a8ad
mov rbx, qword [rsp + 0x60]
mov edx, dword [rsp + 0x78]
nop
test r12d, r12d
je 0x18033a8a3
bsf rcx, r9
add ecx, r14d
and ecx, 0xf
je 0x18033a89a
mov ecx, dword [r15 + rcx*4]
cmp ecx, edx
jb 0x18033a8a3
prefetcht0 byte [rcx + rbx]
mov dword [rsp + rsi*4 + 0xb0], ecx
inc rsi
dec r12d
lea rax, [r9 - 1]
and r9, rax
ja 0x18033a870
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x20], r12d
mov ecx, dword [rsp + 0x50]
mov eax, r13d
dec ecx
mov edx, reloc.WS2_32.dll_ntohs
and ecx, 0xf
cmove eax, edx
mov rdx, qword [rsp + 0x70]
add ecx, eax
mov rax, qword [rsp + 0x58]
mov byte [rdx], cl
mov byte [rcx + rdx], al
mov eax, dword [r10 + 0x2c]
mov dword [r15 + rcx*4], eax
inc dword [r10 + 0x2c]
test rsi, rsi
je 0x18033a9df
mov r13, qword [rsp + 0x60]
mov r12d, dword [rsp + 0x24]
mov r10, qword [rsp + 0x80]
nop dword [rax]
mov r9d, dword [rsp + r11*4 + 0xb0]
mov eax, dword [rdi + rbp - 3]
lea rdx, [r9 + r13]
cmp dword [rdx + rbp - 3], eax
jne 0x18033a9cb
lea r8, [rbx - 7]
mov rax, rdi
cmp rdi, r8
jae 0x18033a969
mov rcx, qword [rdx]
xor rcx, qword [rdi]
je 0x18033a938
bsf rcx, rcx
shr rcx, 3
jmp 0x18033a9ae
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x18033a969
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x18033ab3d
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x18033a950
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x18033a980
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x18033a980
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x18033a999
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x18033a999
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x18033a9a8
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x18033a9a8
inc rax
mov rcx, rax
sub rcx, rdi
cmp rcx, rbp
jbe 0x18033a9cb
mov eax, r12d
mov rbp, rcx
sub eax, r9d
add eax, 3
mov qword [r10], rax
lea rax, [rcx + rdi]
cmp rax, rbx
je 0x18033a9d7
inc r11
cmp r11, rsi
jb 0x18033a900
mov r12d, dword [rsp + 0x20]
xor r13d, r13d
mov rsi, qword [rsp + 0x48]
mov r9d, 3
mov r11d, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x68]
add r11d, r12d
mov r12d, r9d
mov dword [rsp + 0x20], r11d
mov r8, qword [rsi]
mov r15, qword [rsi + 8]
mov rdx, qword [rsi + 0x70]
mov r10d, r15d
sub r10d, r8d
mov qword [rsp + 0x38], r8
add r10d, dword [rsp + 0x30]
cmp r11d, r9d
mov dword [rsp + 0x28], r10d
cmovb r12d, r11d
add rcx, rdx
mov dword [rsp + 0x30], r12d
nop
mov eax, dword [rcx]
prefetcht0 byte [rax + r15]
lea rcx, [rcx + 4]
sub r9, 1
jne 0x18033aa30
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rdx + rax*4 + 0xc]
mov rax, qword [rsi + 0x80]
shr rcx, 8
prefetcht0 byte [rax + rcx*4]
mov dword [rsp + 0x2c], r13d
mov r9d, r13d
test r12d, r12d
je 0x18033ab74
mov rcx, qword [rsp + 0x68]
mov r14d, dword [rcx + rdx]
mov rsi, r13
lea r11, [r15 + r14]
test r14d, r14d
je 0x18033ac83
mov eax, dword [rdi]
cmp dword [r11], eax
jne 0x18033ab05
add r11, 4
lea r12, [rdi + 4]
mov rcx, r12
mov rdx, r11
sub rcx, r11
add rcx, r8
mov r8, rbx
cmp rcx, rbx
cmovb r8, rcx
mov rcx, r12
call fcn.18032af00
mov r8, qword [rsp + 0x38]
mov rsi, rax
lea rcx, [rax + r11]
cmp rcx, r8
jne 0x18033aae4
mov rdx, qword [rsp + 0xa8]
lea rcx, [rax + r12]
mov r8, rbx
call fcn.18032af00
mov r8, qword [rsp + 0x38]
add rsi, rax
mov r9, qword [rsp + 0x48]
add rsi, 4
mov r10d, dword [rsp + 0x28]
mov r12d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [r9 + 0x70]
mov r9d, dword [rsp + 0x2c]
cmp rsi, rbp
jbe 0x18033ab50
mov eax, dword [rsp + 0x24]
mov rbp, rsi
mov rdx, qword [rsp + 0x80]
sub eax, r14d
sub eax, r10d
add eax, 3
mov qword [rdx], rax
lea rax, [rsi + rdi]
cmp rax, rbx
je 0x18033acaa
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsi + 0x70]
jmp 0x18033ab55
bsf rcx, rcx
shr rcx, 3
sub rcx, rdi
add rcx, rax
jmp 0x18033a9ae
mov rsi, qword [rsp + 0x48]
inc r9d
add rcx, 4
mov dword [rsp + 0x2c], r9d
mov qword [rsp + 0x68], rcx
cmp r9d, r12d
jb 0x18033aa72
mov r11d, dword [rsp + 0x20]
mov rax, qword [rsp + 0xa0]
sub r11d, r9d
mov eax, dword [rdx + rax*4 + 0xc]
mov r14d, eax
shr r14d, 8
mov edx, r13d
movzx ecx, al
cmp r11d, ecx
cmova r11d, ecx
mov dword [rsp + 0x20], r11d
test r11d, r11d
je 0x18033ac83
mov r9, qword [rsi + 0x80]
nop dword [rax]
lea eax, [rdx + r14]
mov eax, dword [r9 + rax*4]
prefetcht0 byte [rax + r15]
inc edx
cmp edx, r11d
jb 0x18033abb0
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rsi + 0x80]
mov eax, dword [rax + r14*4]
lea r11, [r15 + rax]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi]
cmp dword [r11], eax
jne 0x18033ac6d
add r11, 4
lea r12, [rdi + 4]
mov rcx, r12
mov rdx, r11
sub rcx, r11
add rcx, r8
mov r8, rbx
cmp rcx, rbx
cmovb r8, rcx
mov rcx, r12
call fcn.18032af00
mov rsi, rax
lea rcx, [rax + r11]
cmp rcx, qword [rsp + 0x38]
jne 0x18033ac39
mov rdx, qword [rsp + 0xa8]
lea rcx, [rax + r12]
mov r8, rbx
call fcn.18032af00
add rsi, rax
add rsi, 4
cmp rsi, rbp
jbe 0x18033ac68
mov eax, dword [rsp + 0x24]
mov rbp, rsi
sub eax, dword [rsp + 0x30]
sub eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
add eax, 3
mov qword [rcx], rax
lea rcx, [rsi + rdi]
cmp rcx, rbx
je 0x18033ac83
mov rsi, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
inc r14d
inc r13d
cmp r13d, dword [rsp + 0x20]
jb 0x18033abd0
mov rax, rbp
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1803831e0
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, rsi
jmp 0x18033ac86