Function at 0x180344680
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 [0x180476ea8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r13, qword [rcx + 8]
mov rbx, rcx
mov r12, qword [rcx + 0x38]
mov r11d, edx
mov esi, dword [rcx + 0x34]
sub r11d, r13d
mov eax, r11d
mov dword [rsp + 8], r11d
mov r10, rdx
mov qword [rsp + 0x30], r8
mov rdi, r8
mov qword [rsp + 0x50], r9
mov r9, qword [rcx + 0x70]
mov r8d, edx
mov ecx, dword [rcx + 0x100]
sub r8d, r13d
mov r14d, 1
mov qword [rsp + 0x38], r9
mov edx, r14d
mov qword [rsp + 0x20], r12
shl edx, cl
mov ebp, 3
mov ecx, dword [rbx + 0x1c]
sub r11d, edx
sub eax, ecx
mov dword [rsp + 4], esi
cmp eax, edx
mov qword [rsp + 0x48], r13
mov eax, dword [rbx + 0x10c]
mov rdx, qword [rbx + 0x60]
cmovbe r11d, ecx
cmp dword [rbx + 0x28], 0
mov dword [rsp], r8d
cmovne r11d, ecx
mov qword [rsp + 0x40], rdx
mov ecx, 4
mov dword [rsp + 0x28], r11d
cmp eax, ecx
mov dword [rsp + 0x18], reloc.WS2_32.dll_ntohs
cmovb ecx, eax
xor r11d, r11d
shl r14d, cl
mov dword [rsp + 0x1c], r14d
cmp dword [rbx + 0x12c], r11d
jne 0x1803449f6
mov esi, dword [rbx + 0x2c]
mov eax, r8d
mov ecx, dword [rsp + 4]
sub eax, esi
mov r15, r9
mov rdx, r13
cmp eax, 0x180
jbe 0x1803448e9
lea eax, [rsi + 0x60]
cmp esi, eax
jae 0x180344837
lea r12, [r13 + 8]
mov ebp, 0x18
mov r13, qword [rsp + 0x20]
sub ebp, ecx
add r12, rsi
mov r15d, esi
mov edi, eax
mov r14, r9
mov eax, dword [rbx + 0x60]
mov rcx, rbp
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [rax + r13]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rbx + rax*4 + 0x40]
mov r8d, r9d
mov dword [rbx + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + r13]
lea rdx, [r8 + r13]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x18]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r14 + rax*4], esi
inc esi
cmp esi, edi
jb 0x1803447a0
mov rdx, qword [rbx + 8]
mov ebp, 3
mov rdi, qword [rsp + 0x30]
mov r14d, dword [rsp + 0x1c]
mov r13, qword [rsp + 0x48]
mov r8d, dword [rsp]
mov ecx, dword [rbx + 0x34]
lea esi, [r8 - 0x20]
mov r15, qword [rbx + 0x70]
lea rax, [r10 + 1]
mov r12, qword [rbx + 0x38]
lea r9, [rsi + r13]
mov dword [rsp + 0x10], ecx
mov ecx, eax
sub ecx, r13d
mov r8d, esi
sub ecx, esi
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, r11d
cmp ecx, eax
cmova ecx, eax
lea eax, [rsi + rcx]
cmp esi, eax
jae 0x1803448dd
mov eax, 0x18
mov edi, ecx
sub eax, dword [rsp + 0x10]
mov qword [rsp + 0x10], rax
mov ecx, eax
nop dword [rax + rax]
mov eax, dword [rbx + 0x60]
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r12 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rbx + rax*4 + 0x40], edx
sub rdi, 1
jne 0x180344890
mov r15, qword [rbx + 0x70]
mov r12, qword [rbx + 0x38]
mov rdx, qword [rbx + 8]
mov rdi, qword [rsp + 0x30]
mov ecx, dword [rbx + 0x34]
mov r8d, dword [rsp]
mov r9, qword [rsp + 0x38]
cmp esi, r8d
jae 0x1803449a5
mov ebp, dword [rsp]
lea rdi, [rsi + 8]
mov r14d, 0x18
mov r13d, esi
sub r14d, ecx
add rdi, rdx
nop dword [rax + rax]
mov eax, dword [rbx + 0x60]
mov rcx, r14
imul edx, dword [rdi], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r12 + rax]
mov rax, r13
lea rdi, [rdi + 1]
and eax, 7
mov r9d, dword [rbx + rax*4 + 0x40]
mov r8d, r9d
mov dword [rbx + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + r12]
lea rdx, [r8 + r12]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x18]
inc r13
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r15 + rax*4], esi
inc esi
cmp esi, ebp
jb 0x180344910
mov rdi, qword [rsp + 0x30]
mov ebp, 3
mov r14d, dword [rsp + 0x1c]
mov r13, qword [rsp + 0x48]
mov r8d, dword [rsp]
mov r9, qword [rsp + 0x38]
mov eax, dword [rsp + 8]
mov ecx, 0x18
sub ecx, dword [rsp + 4]
mov dword [rbx + 0x2c], r8d
mov r8d, eax
imul edx, dword [rax + r13 + 8], 0x9e3779b1
mov eax, dword [rsp + 0x40]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r9 + rax*4]
mov r12, qword [rsp + 0x20]
prefetcht0 byte [rax + r12]
and r8d, 7
mov r15d, dword [rbx + r8*4 + 0x40]
mov dword [rbx + r8*4 + 0x40], edx
jmp 0x180344a13
imul r15d, dword [r10], 0x9e3779b1
mov ecx, 0x18
mov eax, edx
sub ecx, esi
xor r15, rax
mov eax, dword [rsp + 8]
shr r15, cl
mov dword [rbx + 0x2c], eax
add dword [rbx + 0x68], r15d
mov eax, r15d
shr rax, 4
mov rsi, r11
and eax, 0xffffff0
movdqu xmm0, xmmword [rax + r12]
lea rcx, [r9 + rax*4]
mov qword [rsp + 0x20], rcx
lea rcx, [rax + r12]
movzx eax, byte [rax + r12]
mov r12d, eax
mov dword [rsp + 0x10], eax
mov qword [rsp + 0x40], rcx
and r12d, 0xf
movsx eax, r15b
mov ecx, r12d
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, r12b
movzx r9d, ax
movzx eax, dx
mov rdx, qword [rsp + 0x20]
shr rax, cl
or r9, rax
jbe 0x180344ac7
mov r8d, dword [rsp + 0x28]
test r14d, r14d
je 0x180344ac7
bsf rcx, r9
add ecx, r12d
and ecx, 0xf
je 0x180344abe
mov ecx, dword [rdx + rcx*4]
cmp ecx, r8d
jb 0x180344ac7
prefetcht0 byte [rcx + r13]
mov dword [rsp + rsi*4 + 0x60], ecx
inc rsi
dec r14d
lea rax, [r9 - 1]
and r9, rax
ja 0x180344a96
mov ecx, dword [rsp + 0x10]
mov eax, r11d
dec ecx
mov r8d, reloc.WS2_32.dll_ntohs
and ecx, 0xf
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x40]
mov byte [rax], cl
mov byte [rcx + rax], r15b
mov eax, dword [rbx + 0x2c]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0x2c]
test rsi, rsi
je 0x180344bcc
mov rbx, qword [rsp + 0x50]
mov r9d, dword [rsp + r11*4 + 0x60]
mov eax, dword [r10 + rbp - 3]
lea rdx, [r9 + r13]
cmp dword [rdx + rbp - 3], eax
jne 0x180344bc0
lea r8, [rdi - 7]
mov rax, r10
cmp r10, r8
jae 0x180344b5d
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x180344b37
bsf rcx, rcx
shr rcx, 3
jmp 0x180344ba2
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x180344b5d
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x180344bf3
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x180344b44
lea rcx, [rdi - 3]
cmp rax, rcx
jae 0x180344b74
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x180344b74
add rax, 4
add rdx, 4
lea rcx, [rdi - 1]
cmp rax, rcx
jae 0x180344b8d
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x180344b8d
add rax, 2
add rdx, 2
cmp rax, rdi
jae 0x180344b9c
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x180344b9c
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rbp
jbe 0x180344bc0
mov eax, dword [rsp + 8]
mov rbp, rcx
sub eax, r9d
add eax, 3
mov qword [rbx], rax
lea rax, [rcx + r10]
cmp rax, rdi
je 0x180344bcc
inc r11
cmp r11, rsi
jb 0x180344b01
mov rax, rbp
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1803831e0
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 0x180344ba2