Function at 0x1400023d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
movzx eax, word [0x140060940]
movzx esi, cl
mov r14, qword [rsp + 0xb0]
inc ax
mov ebx, dword [rsp + 0x98]
mov rdi, r9
mov word [0x140060940], ax
mov r9, rdx
movzx ecx, ax
inc ebx
mov eax, dword [0x140060944]
mov ebp, 0x139d
add eax, eax
mov qword [rsp + 0x10], rcx
movsxd r10, eax
mov r13, r8
movsxd rax, dword [rdx + r10*4]
mov r10, qword [0x140060990]
and rax, r10
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x90]
cdq
idiv dword [0x140060960]
movzx edx, byte [0x140060943]
mov dword [rsp + 0x90], eax
mov ecx, edx
movzx eax, word [0x140060974]
mov word [rsp + 0x70], ax
mov eax, 0xffff
imul ecx, ecx
mov r12d, ecx
movzx ecx, word [0x140060978]
mov qword [rsp + 0x80], rcx
inc cx
mov word [0x140060978], cx
movzx ecx, word [0x140060954]
add cx, ax
movsxd rax, ebx
mov word [0x140060954], cx
inc ebx
sub bp, word [r9 + r10*4]
movsxd r15, dword [r9 + rax*4]
movsxd rax, dword [r9 + 0x6104]
mov qword [rsp], rax
mov rax, qword [r14 + 0x6e98]
or rax, 0x13c6
mov qword [rsp + 0xb0], rax
movsxd rax, ebx
lea r11, [rax*4]
mov rax, qword [rsp + 0xa0]
movsxd r8, dword [r11 + rax]
cmp r8d, 0x1c63
je 0x14000258c
mov r9, r8
movzx edi, sil
mov eax, 0x1c63
shl r9, 4
sub eax, r8d
lea r10, [r8*4]
add r11, r12
add ebx, eax
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [0x1400609a0]
lea r11, [r11 + 4]
lea r9, [r9 + 0x10]
lea r10, [r10 + 4]
xor dword [r10 + rax - 4], edi
mov eax, dword [0x140060964]
mov rcx, qword [0x140060980]
cdq
idiv dword [0x140060944]
mov dword [0x140060944], eax
mov eax, dword [r11]
cdq
idiv r8d
inc r8d
mov dword [r9 + rcx - 0x10], eax
cmp r8d, 0x1c63
jne 0x140002520
mov r10, qword [0x140060990]
movzx edx, byte [0x140060943]
movzx ecx, word [0x140060954]
mov r9, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x88]
movzx eax, cx
cmp r15, rax
ja 0x1400025a3
cmp dl, sil
jb 0x1400025a3
lea rax, [r10 + r10*2]
cmp r15, qword [r14 + rax*8]
jb 0x1400025b0
inc r10
mov qword [0x140060990], r10
nop dword [rax]
mov rax, qword [0x140060988]
movzx ecx, word [rax + 0x3a4c]
cmp r10, rcx
je 0x140002618
mov eax, dword [0x140060964]
movzx ecx, sil
cmp dword [r12 + rcx*4], eax
jne 0x140002618
movzx eax, word [r13 + 0x368]
cmp rax, r10
jne 0x140002618
movzx eax, word [r13 + 0x1ef0]
movzx r8d, word [rsp + 0x70]
mov dword [0x140060944], eax
mov eax, 0xffff
add bp, ax
lea eax, [rbx + rbx*2]
movsxd rcx, eax
movzx edx, bp
movzx ecx, word [rdi + rcx*8]
or cx, word [r9 + r8*4]
and word [rdx + rdx + 0x1667], cx
jmp 0x14000261e
movzx r8d, word [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
mov r11, qword [rsp + 0xa8]
movzx r8d, r8w
lea eax, [r8*4]
mov eax, dword [r15 + rax*4]
cdq
idiv r8d
mov eax, 1
dec dx
movzx r8d, dx
mov eax, dword [rax]
shl eax, 2
cdqe
lea rdx, [rcx + rax*2]
lea rax, [r8 + r8*2]
movzx ecx, word [rax*4 + 1]
mov eax, 0xf1c
and cx, ax
or cx, word [rdi + r8*8]
xor cx, word [0x140060960]
movzx eax, cx
movzx ecx, word [rdx]
imul ecx, eax
lea eax, [rbx*4]
mov word [rdx], cx
xor edx, edx
movsxd rcx, eax
mov rax, qword [rsp]
lea r8, [rax + rcx*4]
mov eax, dword [rsp + 0x90]
dec ax
movzx ecx, ax
mov eax, 0x6d
div ecx
add dword [r8], eax
movzx eax, byte [r11 + 0x144e]
mov r9d, dword [0x140060948]
cmp r9d, eax
jle 0x1400027b3
mov r12, qword [rsp + 8]
lea eax, [rbx + 1]
mov r13, qword [rsp + 0x10]
lea esi, [r9*4]
movsxd rcx, eax
mov r15d, 1
lea rax, [rcx + rcx*2]
lea r10, [r14 + rax*8]
lea rbx, [rcx + rcx]
lea rdi, [rcx + r11]
nop
lea r10, [r10 - 0x18]
mov eax, 0x1bee
sub rax, qword [r10]
lea rdi, [rdi - 1]
mov qword [r10], rax
lea rbx, [rbx - 2]
mov eax, dword [r15]
inc r9d
shl eax, 2
cdqe
lea r8, [r14 + rax*8]
xor eax, eax
movzx eax, word [rax]
movzx ecx, byte [r11 + rax*4]
movsxd rax, esi
add esi, 4
mov eax, dword [r12 + rax*4]
cdq
idiv ecx
movzx ecx, byte [rdi]
movsxd rax, edx
xor edx, edx
and rax, rcx
movsxd rcx, dword [0x140060960]
xor rax, rcx
div qword [r8]
mov qword [r8], rax
movsxd rax, dword [r15]
mov r8d, dword [0x140060964]
mov eax, dword [r13 + rax*4]
cdq
idiv r8d
dec r8d
mov ecx, eax
mov dword [0x140060964], r8d
mov eax, 0x5a4917ad
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
mov rax, qword [0x140060988]
xor word [0x140060978], dx
mov word [rbx + rax], bp
movzx eax, byte [r11 + 0x144e]
cmp r9d, eax
jg 0x140002700
mov r15, qword [rsp + 0x80]
movsxd rcx, dword [0x14006097c]
mov eax, dword [r15 + rcx*4]
inc ecx
mov dword [0x14006097c], ecx
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret