Function at 0x180004510
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push r14
lea rbp, [rsp - 0x58]
sub rsp, 0x158
xorps xmm0, xmm0
xor eax, eax
xor r14d, r14d
mov qword [rsp + 0x50], rax
mov r10, rcx
mov qword [rsp + 0x58], r14
mov r9, rcx
mov r11d, edx
movups xmmword [rsp + 0x20], xmm0
mov ecx, edx
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
nop word [rax + rax]
mov eax, dword [r9]
lea r9, [r9 + 4]
inc dword [rsp + rax*4 + 0x20]
add ecx, 0xffffffff
jne 0x180004560
cmp dword [rsp + 0x20], r11d
jne 0x180004598
mov rax, qword [rbp + 0x98]
mov qword [rax], r14
mov rax, qword [rbp + 0xa0]
mov dword [rax], r14d
xor eax, eax
add rsp, 0x158
pop r14
pop rbp
ret
mov r9, qword [rbp + 0xa0]
mov ecx, 1
mov qword [rsp + 0x148], rsi
mov qword [rsp + 0x128], r15
mov edx, dword [r9]
mov eax, ecx
cmp dword [rsp + rax*4 + 0x20], r14d
jne 0x1800045c7
inc ecx
cmp ecx, 0xf
jbe 0x1800045b7
cmp edx, ecx
mov dword [rbp + 0x70], ecx
mov r8d, ecx
cmovae r8d, edx
mov edx, reloc.WS2_32.dll_ntohs
nop dword [rax + rax]
mov eax, edx
cmp dword [rsp + rax*4 + 0x20], r14d
jne 0x1800045ee
add edx, 0xffffffff
jne 0x1800045e0
cmp r8d, edx
mov qword [rsp + 0x150], rbx
mov qword [rsp + 0x140], rdi
mov esi, edx
cmovbe esi, r8d
mov qword [rsp + 0x138], r12
mov r8d, 1
mov qword [rsp + 0x130], r13
shl r8d, cl
mov dword [rbp + 0x78], edx
mov dword [r9], esi
cmp ecx, edx
jae 0x180004646
nop word [rax + rax]
mov eax, ecx
sub r8d, dword [rsp + rax*4 + 0x20]
js 0x180004965
inc ecx
add r8d, r8d
cmp ecx, edx
jb 0x180004630
mov eax, edx
mov ecx, r8d
sub r8d, dword [rsp + rax*4 + 0x20]
mov dword [rsp + 0xc], r8d
js 0x180004965
mov dword [rsp + rax*4 + 0x20], ecx
mov ecx, r14d
mov dword [rsp + 0x64], r14d
add edx, 0xffffffff
je 0x180004681
mov rax, r14
nop
add ecx, dword [rsp + rax + 0x24]
mov dword [rsp + rax + 0x68], ecx
lea rax, [rax + 4]
add edx, 0xffffffff
jne 0x180004670
mov r15, qword [rbp + 0xb8]
mov edx, r14d
nop dword [rax + rax]
mov eax, dword [r10]
lea r10, [r10 + 4]
test eax, eax
je 0x1800046ae
lea rcx, [rsp + 0x60]
lea rcx, [rcx + rax*4]
mov eax, dword [rcx]
mov dword [r15 + rax*4], edx
inc eax
mov dword [rcx], eax
inc edx
cmp edx, r11d
jb 0x180004690
movsxd rcx, dword [rbp + 0x78]
mov rdx, r15
mov r15d, dword [rbp + 0x70]
mov r11d, esi
neg r11d
mov qword [rsp], rdx
mov qword [rbp - 0x60], r14
mov edi, r14d
mov eax, dword [rsp + rcx*4 + 0x60]
mov r9, r14
mov dword [rsp + 8], eax
mov r10d, r14d
mov dword [rsp + 0x60], r14d
cmp r15d, ecx
jg 0x180004950
mov rbx, 0xffffffffffffffff
nop dword [rax]
nop dword [rax + rax]
movsxd rax, r15d
lea r8, [rsp + 0x20]
mov r13d, dword [r8 + rax*4]
lea r8, [r8 + rax*4]
mov qword [rsp + 0x10], r8
test r13d, r13d
je 0x18000493f
nop
mov r12d, r13d
lea eax, [rsi + r11]
dec r13d
cmp r15d, eax
jle 0x18000482d
nop dword [rax]
nop word [rax + rax]
mov r9d, ecx
inc rbx
mov r14d, r11d
mov edx, r15d
add r11d, esi
mov eax, 1
sub r9d, r11d
cmp r9d, esi
cmova r9d, esi
sub edx, r11d
mov ecx, edx
shl eax, cl
cmp eax, r12d
jbe 0x180004797
mov ecx, 0xffffffff
sub ecx, r13d
add eax, ecx
cmp edx, r9d
jae 0x180004797
inc edx
cmp edx, r9d
jae 0x180004797
mov ecx, dword [r8 + 4]
lea r8, [r8 + 4]
add eax, eax
cmp eax, ecx
jbe 0x180004797
sub eax, ecx
inc edx
cmp edx, r9d
jb 0x180004780
mov ecx, edx
mov r10d, 1
shl r10d, cl
mov rcx, qword [rbp + 0xb0]
mov eax, dword [rcx]
lea r8d, [rax + r10]
cmp r8d, 0x5a0
ja 0x180004965
mov r9, qword [rbp + 0xa8]
mov dword [rcx], r8d
lea r9, [r9 + rax*8]
mov qword [rbp + rbx*8 - 0x60], r9
test rbx, rbx
je 0x180004807
mov byte [rbp + 0x70], dl
mov r8d, edi
mov rdx, qword [rbp + rbx*8 - 0x68]
mov rax, r9
sub rax, rdx
mov byte [rbp + 0x71], sil
sar rax, 3
mov ecx, r14d
shr r8d, cl
sub eax, r8d
mov dword [rsp + rbx*4 + 0x60], edi
mov dword [rbp + 0x74], eax
mov rax, qword [rbp + 0x70]
mov qword [rdx + r8*8], rax
jmp 0x180004811
mov rax, qword [rbp + 0x98]
mov qword [rax], r9
mov r8, qword [rsp + 0x10]
lea eax, [rsi + r11]
mov ecx, dword [rbp + 0x78]
cmp r15d, eax
jg 0x180004740
mov rdx, qword [rsp]
xor r14d, r14d
mov rcx, qword [rbp + 0xb8]
movzx eax, r15b
sub al, r11b
mov byte [rbp + 0x71], al
mov eax, dword [rsp + 8]
lea rcx, [rcx + rax*4]
cmp rdx, rcx
jb 0x180004851
mov byte [rbp + 0x70], 0xc0
jmp 0x1800048aa
mov ecx, dword [rdx]
add rdx, 4
mov r12d, dword [rbp + 0x80]
mov qword [rsp], rdx
cmp ecx, r12d
jae 0x18000487e
cmp ecx, 0x100
mov dword [rbp + 0x74], ecx
mov eax, 0x60
cmovb eax, r14d
mov byte [rbp + 0x70], al
jmp 0x1800048aa
mov rax, qword [rbp + 0x90]
sub ecx, r12d
mov qword [rsp], rdx
lea rcx, [rcx*4]
movzx eax, byte [rcx + rax]
add al, 0x50
mov byte [rbp + 0x70], al
mov rax, qword [rbp + 0x88]
mov eax, dword [rcx + rax]
mov dword [rbp + 0x74], eax
mov ecx, r15d
mov r8d, 1
sub ecx, r11d
mov edx, edi
shl r8d, cl
mov ecx, r11d
shr edx, cl
cmp edx, r10d
jae 0x1800048dc
mov rax, qword [rbp + 0x70]
nop dword [rax]
mov qword [r9 + rdx*8], rax
add edx, r8d
cmp edx, r10d
jb 0x1800048d0
lea ecx, [r15 - 1]
mov eax, 1
shl eax, cl
test edi, eax
je 0x1800048f8
nop dword [rax + rax]
xor edi, eax
shr eax, 1
test edi, eax
jne 0x1800048f0
xor edi, eax
mov ecx, r11d
mov eax, 1
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [rsp + rbx*4 + 0x60]
je 0x18000492a
nop
sub r11d, esi
mov eax, 1
mov ecx, r11d
dec rbx
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [rsp + rbx*4 + 0x60]
jne 0x180004910
mov rdx, qword [rsp]
mov r8, qword [rsp + 0x10]
mov ecx, dword [rbp + 0x78]
test r13d, r13d
jne 0x180004720
inc r15d
cmp r15d, ecx
jle 0x180004700
mov r8d, dword [rsp + 0xc]
test r8d, r8d
je 0x180004960
cmp ecx, 1
je 0x180004960
mov r14d, 0xfffffffb
mov eax, r14d
jmp 0x18000496a
mov eax, 0xfffffffd
mov r13, qword [rsp + 0x130]
mov r12, qword [rsp + 0x138]
mov rdi, qword [rsp + 0x140]
mov rbx, qword [rsp + 0x150]
mov rsi, qword [rsp + 0x148]
mov r15, qword [rsp + 0x128]
add rsp, 0x158
pop r14
pop rbp
ret