Function at 0x180357220
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
mov rax, qword [0x18048aea8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r12, qword [rcx + 8]
mov rsi, rcx
mov eax, dword [rcx + 0x34]
mov rbx, r8
mov rbp, qword [rcx + 0x38]
mov r8d, edx
sub r8d, r12d
mov dword [rsp + 8], eax
mov eax, r8d
mov dword [rsp + 0xc], r8d
mov r13d, edx
mov qword [rsp + 0x40], rdx
sub r13d, r12d
mov qword [rsp + 0x58], r9
mov r9, qword [rcx + 0x70]
mov r15d, 1
mov ecx, dword [rcx + 0x100]
mov r10, rdx
mov edx, r15d
mov qword [rsp + 0x20], rbx
shl edx, cl
mov edi, 3
mov ecx, dword [rsi + 0x1c]
sub r8d, edx
sub eax, ecx
mov qword [rsp + 0x48], r9
cmp eax, edx
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 0x10c]
cmovbe r8d, ecx
mov qword [rsp + 0x28], r12
cmp dword [rsi + 0x28], 0
mov dword [rsp + 4], r13d
cmovne r8d, ecx
mov dword [rsp + 0x10], 0x3f
mov ecx, 6
mov dword [rsp + 0x1c], r8d
cmp eax, ecx
cmovb ecx, eax
mov rax, qword [rsi + 0x60]
shl r15d, cl
xor r11d, r11d
lea ecx, [rdi + 0x35]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x14], r15d
cmp dword [rsi + 0x12c], r11d
jne 0x180357601
mov r14d, dword [rsi + 0x2c]
mov eax, r13d
mov rdx, qword [rsp + 0x28]
sub eax, r14d
mov r12, r9
mov r9d, dword [rsp + 8]
mov r8, rdx
movabs r13, 0xcf1bbcdcbb000000
cmp eax, 0x180
jbe 0x1803574d5
lea r8d, [r14 + 0x60]
mov qword [rsp + 0x38], rdx
cmp r14d, r8d
jae 0x18035741d
mov r10, qword [rsp + 0x48]
lea r12, [rdx + 8]
mov rdi, qword [rsp + 0x50]
mov ebx, ecx
sub ebx, r9d
mov ebp, r14d
add r12, r14
mov r15d, r8d
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r12]
mov ecx, ebx
imul rdx, r13
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r10 + rax*4]
prefetcht0 byte [r10 + rax*4 + 0x40]
prefetcht0 byte [rax + rdi]
prefetcht0 byte [rax + rdi + 0x20]
mov rax, rbp
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rsi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rsi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + rdi]
lea rdx, [r8 + rdi]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 0x10]
inc rbp
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r10 + rax*4], r14d
inc r14d
cmp r14d, r15d
jb 0x180357370
mov rax, qword [rsi + 8]
mov edi, 3
mov r10, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x20]
mov r15d, dword [rsp + 0x14]
mov rdx, qword [rsp + 0x28]
lea ecx, [rdi + 0x35]
mov qword [rsp + 0x38], rax
mov r14d, dword [rsp + 4]
lea rax, [r10 + 1]
mov r8d, dword [rsi + 0x34]
add r14d, 0xffffffe0
mov r12, qword [rsi + 0x70]
mov rbp, qword [rsi + 0x38]
mov dword [rsp], eax
sub dword [rsp], edx
lea r9, [r14 + rdx]
mov edx, dword [rsp]
sub edx, r14d
mov dword [rsp + 0x18], r8d
inc edx
mov r8d, r14d
cmp r9, rax
mov eax, 8
cmova edx, r11d
cmp edx, eax
cmova edx, eax
lea eax, [r14 + rdx]
cmp r14d, eax
jae 0x1803574c7
sub ecx, dword [rsp + 0x18]
mov ebx, edx
mov rdx, qword [r9]
imul rdx, r13
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
prefetcht0 byte [rax + rbp + 0x20]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rsi + rax*4 + 0x40], edx
sub rbx, 1
jne 0x180357470
mov r12, qword [rsi + 0x70]
mov rbp, qword [rsi + 0x38]
mov r8, qword [rsi + 8]
mov rbx, qword [rsp + 0x20]
jmp 0x1803574cc
mov r8, qword [rsp + 0x38]
mov r9d, dword [rsi + 0x34]
mov ecx, reloc.WS2_32.dll_getservbyport
mov eax, dword [rsp + 4]
cmp r14d, eax
jae 0x18035759f
mov r15d, ecx
mov ebx, r14d
sub r15d, r9d
lea rdi, [r14 + 8]
add rdi, r8
mov r10d, eax
nop word [rax + rax]
mov rdx, qword [rdi]
mov ecx, r15d
imul rdx, r13
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
prefetcht0 byte [rax + rbp + 0x20]
mov rax, rbx
lea rdi, [rdi + 1]
and eax, 7
mov r9d, dword [rsi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rsi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + rbp]
lea rdx, [r8 + rbp]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 0x10]
inc rbx
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r12 + rax*4], r14d
inc r14d
cmp r14d, r10d
jb 0x180357500
mov r10, qword [rsp + 0x40]
mov edi, 3
mov rbx, qword [rsp + 0x20]
mov r15d, dword [rsp + 0x14]
mov eax, dword [rsp + 4]
mov r12, qword [rsp + 0x28]
mov ecx, reloc.WS2_32.dll_getservbyport
sub ecx, dword [rsp + 8]
mov r9, qword [rsp + 0x48]
mov dword [rsi + 0x2c], eax
mov eax, dword [rsp + 0xc]
mov r8d, eax
mov rdx, qword [rax + r12 + 8]
imul rdx, r13
xor rdx, qword [rsp + 0x30]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov rbp, qword [rsp + 0x50]
prefetcht0 byte [rax + rbp]
prefetcht0 byte [rax + rbp + 0x20]
and r8d, 7
mov r14d, dword [rsi + r8*4 + 0x40]
mov dword [rsi + r8*4 + 0x40], edx
jmp 0x180357623
mov r14, qword [r10]
movabs r13, 0xcf1bbcdcbb000000
sub ecx, dword [rsp + 8]
imul r14, r13
xor r14, rax
mov eax, dword [rsp + 0xc]
shr r14, cl
mov dword [rsi + 0x2c], eax
add dword [rsi + 0x68], r14d
mov eax, r14d
shr rax, 2
and eax, 0x3fffffc0
movdqu xmm0, xmmword [rax + rbp]
lea r13, [r9 + rax*4]
lea r9, [rax + rbp]
mov rbp, r11
movzx eax, byte [r9]
mov qword [rsp + 0x30], r9
mov dword [rsp], eax
movsx eax, r14b
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [r9 + 0x10]
pmovmskb r8d, xmm1
movdqu xmm1, xmmword [r9 + 0x20]
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
pcmpeqb xmm1, xmm2
movdqu xmm0, xmmword [r9 + 0x30]
pmovmskb eax, xmm1
pcmpeqb xmm0, xmm2
pmovmskb r9d, xmm0
shl r9, 0x10
or r9, rax
movsxd rax, edx
mov edx, dword [rsp]
shl r9, 0x10
and edx, 0x3f
or r9, rax
mov ecx, edx
movsxd rax, r8d
neg ecx
shl r9, 0x10
and ecx, 0x3f
or r9, rax
mov r8, r9
shl r8, cl
mov ecx, edx
shr r9, cl
or r8, r9
jbe 0x180357712
mov edx, dword [rsp]
mov r9d, dword [rsp + 0x1c]
nop dword [rax]
test r15d, r15d
je 0x180357712
bsf rcx, r8
add ecx, edx
and ecx, 0x3f
je 0x180357709
mov ecx, dword [r13 + rcx*4]
cmp ecx, r9d
jb 0x180357712
prefetcht0 byte [rcx + r12]
mov dword [rsp + rbp*4 + 0x60], ecx
inc rbp
dec r15d
lea rax, [r8 - 1]
and r8, rax
ja 0x1803576e0
mov ecx, dword [rsp]
mov eax, r11d
dec ecx
mov edx, 0x3f
and ecx, 0x3f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x30]
mov byte [rax], cl
mov byte [rcx + rax], r14b
mov eax, dword [rsi + 0x2c]
mov dword [r13 + rcx*4], eax
inc dword [rsi + 0x2c]
test rbp, rbp
je 0x18035781b
mov rsi, qword [rsp + 0x58]
nop dword [rax + rax]
mov r9d, dword [rsp + r11*4 + 0x60]
mov eax, dword [rdi + r10 - 3]
lea rdx, [r12 + r9]
cmp dword [rdx + rdi - 3], eax
jne 0x18035780f
lea r8, [rbx - 7]
mov rax, r10
cmp r10, r8
jae 0x1803577ac
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x180357786
bsf rcx, rcx
shr rcx, 3
jmp 0x1803577f1
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1803577ac
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x180357842
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x180357793
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x1803577c3
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1803577c3
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x1803577dc
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1803577dc
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x1803577eb
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1803577eb
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rdi
jbe 0x18035780f
mov eax, dword [rsp + 0xc]
mov rdi, rcx
sub eax, r9d
add eax, 3
mov qword [rsi], rax
lea rax, [rcx + r10]
cmp rax, rbx
je 0x18035781b
inc r11
cmp r11, rbp
jb 0x180357750
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180394080
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
bsf rcx, rcx
shr rcx, 3
sub rcx, r10
add rcx, rax
jmp 0x1803577f1