Function at 0x18000207c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov byte [rax + 0x10], dl
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
movsxd rsi, dword [rsp + 0x130]
mov rbx, rcx
mov ecx, dword [0x18002f948]
mov r15d, 1
mov r9, qword [rsp + 0x128]
mov eax, ecx
mov rbp, qword [0x18002f8f8]
sub ecx, r15d
mov r14, qword [rsp + 0x138]
add rbp, r15
mov r12, qword [0x18002f8b0]
mov r10d, dword [r9 + rsi*4]
movzx edi, dl
and r10d, 0x1d0e
mov byte [rsp + 0x50], dl
mov edx, dword [0x18002f8a0]
imul eax, edx
sub edx, r15d
mov dword [0x18002f8a0], edx
xor edx, edx
mov r11b, byte [r9 + 0x26f0]
mov dword [0x18002f948], ecx
mov qword [rsp + 0x70], rsi
cdqe
mov qword [rsp + 0x90], rax
movzx eax, word [0x18002f8dc]
and r11b, al
mov dword [rsp + 0x58], r15d
mov eax, ecx
mov qword [rsp + 0x80], rdi
shl eax, 2
movsxd rcx, eax
mov qword [rsp + 0x68], r12
mov al, byte [rbx + rcx*8]
mov byte [rsp + 0x51], al
lea eax, [rsi + rsi*2]
movsxd rcx, eax
sub esi, r15d
mov r15d, dword [0x18002f8c4]
movsxd r13, esi
mov rax, qword [rbx + rcx*8]
mov rcx, qword [0x18002f900]
mov qword [rsp + 0x60], rax
movzx eax, byte [r14 + 0x1179]
mov word [rsp + 0x52], ax
movsxd rax, dword [r8 + r13*4]
mov qword [rsp + 0x88], rax
mov rax, qword [0x18002f930]
mov byte [rsp + 0x130], al
movsxd rax, dword [r8 + rdi*4]
mov qword [rsp + 0x78], rax
movsxd rax, dword [rcx + 0x2bd0]
mov qword [rsp + 0x98], rax
lea eax, [r15*2 + 6]
movsxd rcx, eax
mov qword [0x18002f8f8], rbp
movsxd r9, dword [r8 + rbp*4]
movsxd r8, dword [rdi + rcx*4]
movzx ecx, word [0x18002f93c]
mov eax, ecx
inc cx
div qword [0x18002f8e0]
mov word [0x18002f93c], cx
lea rcx, [r9 + r9*2]
imul r8, rdx
xor edx, edx
mov rax, r8
mov r8, qword [0x18002f920]
div r10
mov rdx, qword [0x18002f908]
mov r10, rax
mov qword [rsp + 0xa0], rax
mov rax, r8
add rax, rax
mov al, byte [rdx + rax*8]
mov rdx, qword [rsp + 0x120]
and al, byte [rdx + rcx*4]
movzx ecx, al
movzx edx, r11b
imul edx, ecx
mov dword [rsp + 0x54], edx
mov eax, 1
mov r11, r12
add word [0x18002f8dc], ax
movsxd rax, dword [0x18002f948]
mov r11, qword [rsp + 0x118]
mov rcx, qword [r12 + rax*8]
xor rcx, qword [r12 + r12*8]
movsxd rax, dword [0x18002f914]
add rcx, qword [rbx + rax*8]
xor rcx, qword [rbx + rbp*8]
lea rbx, [r9 + 1]
movzx eax, word [rsp + 0x52]
add rbx, rcx
mov rcx, qword [rsp + 0x100]
movsxd r9, dword [rcx + rax*8]
cmp r9d, dword [rdi + rdi*4]
jl 0x18000233a
mov r14b, byte [rsp + 0x130]
lea rax, [rbx + rbx*2]
mov rcx, qword [rsp + 0x68]
lea rbp, [rax*4 + 0x1c77]
mov rax, qword [rsp + 0x78]
mov r13d, 1
movsxd r12, r10d
lea r8, [rax + r9*4]
mov dl, byte [rdi*4 + 0x1c8f]
sub r15d, r13d
movsxd r10, dword [r8]
movsxd rax, r15d
mov qword [0x18002f8b8], r10
mov dword [0x18002f8c4], r15d
mov dword [rsp + 0x54], edx
cmp qword [rcx + rax*8], r12
jae 0x180002303
mov eax, 0xb46
sub rbp, 0xc
cdq
sub rbx, r13
idiv r9d
or r14b, byte [rbp]
mov edx, dword [rsp + 0x54]
and eax, r9d
mov dword [r11 + rdi*4], eax
mov r15d, dword [0x18002f8c4]
mov r10, qword [0x18002f8b8]
add r9d, r13d
add r8, 4
cmp r9d, dword [rdi + rdi*4]
jge 0x1800022ae
mov r12, qword [0x18002f8b0]
mov rbp, qword [0x18002f8f8]
mov r8, qword [0x18002f920]
mov byte [rsp + 0x130], r14b
mov r14, qword [rsp + 0x138]
movsxd r13, esi
jmp 0x180002341
mov r10, qword [0x18002f8b8]
movzx eax, word [rsp + 0x52]
mov r9, qword [0x18002f930]
lea rcx, [rax + rax*2]
mov rax, qword [0x18002f8c8]
cmp r9, qword [rax + rcx*8 + 0x10]
jne 0x180002aaa
mov rcx, qword [rsp + 0x120]
movzx r9d, dl
movzx eax, dl
mov dword [rsp + 0x138], r9d
cmp dword [rcx + rax*4], r9d
jg 0x180002aaa
movzx eax, word [rsp + 0x52]
mov edx, 1
mov r11, qword [rsp + 0x110]
sub rbp, rdx
mov qword [0x18002f8f8], rbp
cmp ax, word [rbp*2 + 0x1c6a]
jbe 0x1800023cf
movsxd rax, dword [0x18002f948]
mov rcx, qword [rsp + 0x98]
movzx edx, word [rcx + rax*2]
lea eax, [r15 + 0x25]
movsxd rcx, eax
cmp dword [r11 + rcx*4], edx
jg 0x1800023e7
mov edx, 1
mov r9d, dword [0x18002f8d8]
mov eax, r9d
sub r9d, edx
mov dword [0x18002f8d8], r9d
cmp eax, edx
jle 0x18000241b
mov rcx, qword [0x18002f908]
movzx eax, word [rsp + 0x52]
mov r8, qword [0x18002f8f0]
mov ecx, dword [rcx + 0x264]
imul eax, ecx
mov rcx, qword [rsp + 0x128]
cdq
idiv dword [rcx + 0x7670]
and dword [r8 + r13*4], eax
jmp 0x180002c09
mov rax, qword [0x18002f900]
mov rcx, qword [0x18002f8c8]
movsxd rax, dword [rax + rbx*4]
cmp rax, qword [rcx + 0x66d0]
je 0x180002514
mov eax, esi
shl eax, 2
movsxd rcx, eax
mov rax, qword [rsp + 0x60]
cmp qword [rax + rcx*8], 0x7c6
jb 0x18000250d
movsxd rcx, dword [0x18002f948]
movzx eax, word [0x18002f8dc]
cmp word [rcx + rcx + 0x1c6a], ax
jb 0x18000250d
mov rax, qword [rsp + 0x118]
lea ecx, [r15 + 3]
movsxd rdx, ecx
mov ebx, 1
mov ecx, dword [rax + rbp*4]
mov r8d, dword [rdx*4 + 0x1c77]
and r8d, r9d
imul ecx, r8d
mov dword [rax + rbp*4], ecx
mov rcx, qword [rsp + 0x128]
mov rax, qword [0x18002f920]
sub qword [0x18002f8f8], rbx
mov eax, dword [rcx + rax*4 + 0x10]
cdq
idiv dword [0x18002f8a4]
mov ecx, edx
mov rdx, qword [0x18002f928]
add rdx, rbx
mov qword [0x18002f928], rdx
and edx, 0x18be
call fcn.180014484
mov ecx, dword [0x18002f8c0]
movzx eax, byte [rsp + 0x108]
or ax, cx
xor ecx, dword [0x18002f914]
mov word [0x18002f8dc], ax
mov rax, qword [rsp + 0x120]
or dword [rax + rdi*4], ecx
add dword [0x18002f914], ebx
jmp 0x180002c09
mov rcx, qword [0x18002f8c8]
movzx r9d, word [0x18002f940]
cmp r10, r9
jbe 0x180002a14
movsxd rax, dword [0x18002f8c0]
cmp qword [rcx + rbx*8], rax
jne 0x180002a14
movsxd rcx, dword [0x18002f914]
xor edx, edx
mov r11, qword [rsp + 0x88]
imul r8d, dword [0x18002f8e8]
movzx r12d, byte [rsp + 0x130]
mov r15, qword [rsp + 0x120]
mov rax, qword [r11 + r13*8]
or rax, 0x212
div qword [r11 + rcx*8]
mov cl, byte [rsp + 0x108]
mov r11, qword [rsp + 0x118]
mov rax, rdx
xor edx, edx
mov word [0x18002f938], r12w
div r10
mov rax, rbx
add cl, 0xff
mov qword [rsp + 0x128], rdx
xor edx, edx
div r9
mov r9d, 1
movzx ebp, cl
mov word [0x18002f940], dx
add esi, r9d
mov rdx, qword [rsp + 0x60]
movsxd rax, esi
mov dword [rsp + 0x130], esi
movzx eax, word [rax + rax + 0x1c6a]
sub r8d, eax
and r8d, 0xc4c
mov dword [r11 + rbp*4], r8d
movsxd rax, dword [0x18002f8c4]
movsxd rcx, dword [r15 + 0xb08]
mov qword [rdx + rax*8], rcx
sub dword [0x18002f8c4], r9d
movzx eax, word [0x18002f938]
cmp dword [0x18002f8c0], eax
jge 0x18000267d
mov rax, qword [0x18002f908]
mov rcx, qword [0x18002f8f8]
movsxd rdx, dword [0x18002f948]
add rcx, r9
movzx r13d, byte [rsp + 0x51]
mov qword [0x18002f8f8], rcx
mov cl, byte [rax + rcx*4]
mov byte [rdx + r14], cl
mov eax, dword [0x18002f914]
mov rdx, qword [rsp + 0x100]
sub eax, r9d
movsxd rcx, eax
mov dword [0x18002f914], eax
lea rax, [rbx + rbx*2]
sub rbx, r9
mov qword [rdx + rax*8], rcx
xor edx, edx
mov rax, qword [0x18002f8e0]
div qword [0x18002f8f8]
mov edx, r13d
add r13b, 0xff
mov cl, al
call fcn.180014484
mov r11, qword [rsp + 0x118]
mov dword [rsp + 0x58], eax
jmp 0x180002682
mov r13b, byte [rsp + 0x51]
mov r10, qword [rsp + 0x100]
mov r8, r12
cmp r12, qword [r10 + rbp*8]
ja 0x1800026db
movzx r12d, r13b
lea r9d, [r8 + r8*2]
mov edi, 1
lea r13, [r14 + r12*2]
movzx ecx, word [0x18002f93c]
mov eax, r8d
cdq
idiv ecx
movsxd rax, r9d
add r9d, 3
mov dword [0x18002f8c0], edx
or byte [rax + r14], r8b
add r8d, edi
movsxd rax, r8d
mov byte [r12 + r13], 0x29
cmp rax, qword [r10 + rbp*8]
jbe 0x1800026a4
mov rdi, qword [rsp + 0x80]
mov rcx, qword [0x18002f8a8]
lea eax, [rsi + 0x19]
movsxd rdx, eax
mov eax, dword [r10 + 0x7ae8]
add dword [rcx + rdx*4], eax
lea rcx, [rdi + rdi*2]
movzx eax, word [0x18002f914]
mov rdx, qword [rsp + 0x70]
mov word [rdx + rcx*2 + 0xc], ax
movzx eax, byte [r14 + 0xaea]
mov ecx, dword [rbx*4 + 0x1c77]
cmp ecx, eax
je 0x1800027c2
mov rax, qword [0x18002f8f8]
mov r9d, dword [0x18002f944]
mov r8d, dword [0x18002f948]
sub r9d, ecx
mov r10, qword [0x18002f8b0]
mov r15, qword [rsp + 0x78]
lea r12, [rax + rax*2]
mov dil, byte [rsp + 0x50]
lea eax, [rsi + rsi]
movsxd r13, eax
mov esi, 1
sub r10, rsi
mov eax, r9d
imul eax, ecx
sub r9d, esi
mov qword [0x18002f8b0], r10
mov bpl, r10b
xor r8d, eax
movzx eax, dil
or eax, ecx
mov dword [0x18002f948], r8d
or eax, dword [r15 + r12*4 + 0x14]
add dil, sil
imul eax, dword [r11 + r13*4]
add ecx, esi
cdq
idiv r8d
mov dword [0x18002f948], edx
mov r8d, edx
movzx eax, byte [r14 + 0xaea]
cmp ecx, eax
jne 0x180002756
mov esi, dword [rsp + 0x130]
mov r15, qword [rsp + 0x120]
mov byte [rsp + 0x50], dil
mov rdi, qword [rsp + 0x80]
jmp 0x1800027c6
mov ebp, dword [rsp + 0x54]
mov rax, qword [0x18002f8f0]
mov r11, qword [rsp + 0x70]
mov r13, qword [rsp + 0x90]
movzx r10d, bpl
movsxd rcx, dword [rax + r10*4]
mov rax, qword [rsp + 0x60]
or qword [rax + rbx*8], rcx
mov eax, esi
movzx edx, word [r11 + rbx*2]
mov r9d, dword [0x18002f914]
shl eax, 2
movsxd rcx, eax
mov rax, qword [0x18002f900]
mov ecx, dword [rax + rcx*4]
lea eax, [rsi + 0x13]
add ecx, edx
movsxd r8, eax
movsxd r12, ecx
mov rcx, qword [0x18002f8f8]
add r12, rbx
movsxd rax, esi
mov ebx, 1
sub r9d, ebx
mov dword [0x18002f914], r9d
movzx edx, word [r13 + rax*2]
mov rax, qword [0x18002f8f0]
and edx, dword [rax + rcx*4]
imul edx, r9d
and dword [rdi + r8*4], edx
movzx eax, word [0x18002f93c]
mov ecx, dword [0x18002f8c0]
mov rdx, qword [0x18002f8b8]
sub ecx, eax
mov eax, dword [0x18002f8a4]
or ecx, edx
mov r8d, dword [0x18002f948]
mov r9, qword [0x18002f8f8]
or r8d, ecx
mov rcx, qword [rsp + 0x68]
lea eax, [rax + rax*2]
mov dword [0x18002f948], r8d
cdqe
cmp qword [rcx + rax*8], rdx
jae 0x1800028af
cmp qword [0x18002f8e8], 0x18aa
jbe 0x1800028af
movsxd rax, r8d
mov ecx, dword [r15 + rax*4]
mov rax, qword [0x18002f8f0]
cmp dword [rax + r9*4], ecx
jg 0x1800028d1
add r8d, ebx
mov dword [0x18002f948], r8d
movzx eax, byte [r9 + r14]
sub r9, rbx
mov qword [0x18002f8f8], r9
cmp eax, r8d
jle 0x180002c09
lea eax, [rsi + 1]
movsxd rcx, eax
mov rax, qword [0x18002f8a8]
movzx ebp, word [r11 + rcx*2]
movzx ecx, word [0x18002f8dc]
imul ecx, dword [rax + rcx*4 + 8], 0x774
movzx eax, word [rsp + 0x52]
add ax, bx
movzx edi, ax
movsxd r8, ecx
mov ecx, dword [rsp + 0x58]
lea eax, [rdi + 1]
add ecx, ecx
movsxd r9, dword [r15 + rax*4]
mov r15d, 1
mov rax, qword [0x18002f920]
mov esi, dword [rax*4 + 0x1c77]
movzx eax, byte [r10 + r14]
and esi, 0x211
movzx r10d, word [0x18002f940]
imul rbx, rax, 0x1048
mov rax, qword [0x18002f928]
add rax, r15
mov qword [0x18002f928], rax
lea r11d, [rax + 0x45a]
mov eax, 0xaf286bcb
mul edi
sub edi, edx
shr edi, 1
lea eax, [rdx + rdi]
mov edx, ebp
shr eax, 5
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
call section..text
mov r9, qword [rsp + 0x88]
xor edx, edx
movsxd rcx, eax
movsxd rax, dword [0x18002f948]
mov qword [r9 + rax*8], rcx
mov al, byte [0x18002f8d8]
mov rcx, qword [0x18002f8f8]
mov byte [rcx + r14], al
mov al, byte [rsp + 0x50]
movsxd rcx, dword [rsp + 0x128]
sub al, r15b
movzx r8d, al
mov rax, qword [r9 + r8*8]
div qword [0x18002f930]
xor edx, edx
div rcx
lea rax, [r8 + r8*2]
mov r8, qword [rsp + 0x110]
mov dword [r8 + rax*4], edx
movzx eax, word [0x18002f938]
add eax, eax
movzx ecx, word [r13 + rax*2]
mov rax, qword [0x18002f8f8]
mov qword [r9 + rax*8], rcx
mov rax, qword [0x18002f920]
sub rax, r15
mov qword [0x18002f920], rax
and dword [r8 + r12*4 + 4], eax
jmp 0x180002c09
movzx eax, word [0x18002f93c]
sub r12, rdx
add ax, dx
mov qword [0x18002f8b0], r12
mov word [0x18002f93c], ax
xor edx, edx
movzx ecx, ax
mov rax, r10
div rcx
mov rcx, qword [0x18002f900]
mov rax, rdx
xor edx, edx
movsxd rcx, dword [rcx + 0x5684]
imul rax, rcx
movsxd rcx, dword [0x18002f948]
add rax, r12
movzx r12d, byte [rsp + 0x130]
div rcx
mov eax, dword [rsp + 0x138]
mov dword [0x18002f948], edx
xor edx, edx
lea ecx, [rax + rax*2]
mov eax, dword [rdi + r8*4]
add dword [r11 + rcx*4], eax
mov rax, qword [0x18002f8e8]
movsxd rcx, dword [0x18002f914]
div rax
sub eax, r12d
mov dword [r11 + rcx*4], eax
mov eax, 1
add qword [0x18002f8e8], rax
jmp 0x180002c09
movzx r8d, word [0x18002f938]
movzx ecx, dl
mov eax, r8d
cdq
idiv dword [rdi + rcx*4]
mov rdi, qword [rsp + 0x70]
lea ecx, [r15 + 6]
mov r9d, eax
mov eax, dword [rsp + 0xa0]
movsxd rdx, ecx
mov word [0x18002f8dc], r9w
movzx ecx, word [rdi + rdx*2]
cdq
idiv ecx
mov eax, r8d
movzx ecx, r9w
and dx, word [0x18002f910]
or rax, rbp
movsxd r8, dword [0x18002f944]
and dx, r12w
movzx r10d, dx
mov ebp, 1
xor edx, edx
div r8
xor edx, edx
add r8d, ebp
add rax, rcx
mov dword [0x18002f944], r8d
div r12
mov qword [0x18002f8b0], rdx
xor edx, edx
cmp qword [0x18002f928], rbp
je 0x180002ba8
movsxd r8, dword [0x18002f914]
mov r9, qword [rsp + 0x78]
movzx eax, byte [rsp + 0x51]
movsxd rcx, dword [r9 + r8*4]
movzx eax, word [rdi + rax*2]
xor rax, rcx
mov rcx, qword [rsp + 0x100]
div qword [rcx + r8*8]
mov rdx, qword [0x18002f908]
movzx ecx, r10w
add rcx, rcx
movsxd r8, dword [rdx + rcx*8]
xor edx, edx
div r8
lea ecx, [rsi*2 + 7]
movsxd rdx, ecx
mov dword [r11 + rdx*4], eax
movabs rax, 0xd9e89783b95996e1
mul qword [0x18002f8f8]
sub dword [0x18002f914], ebp
shr rdx, 0xb
or dx, word [r9 + 0x2ad4]
mov word [0x18002f93c], dx
jmp 0x180002c09
and byte [r14 + r13], sil
lea eax, [rsi + rsi]
movzx ecx, word [0x18002f940]
movsxd r8, eax
lea rax, [r14 + rbx*2]
movzx eax, byte [rbx + rax]
xor rax, rcx
div qword [0x18002f920]
mov rax, qword [rsp + 0x90]
add word [rax + r8*2], dx
mov eax, 0xffff
add word [0x18002f940], ax
movzx eax, word [0x18002f938]
mov r8, qword [rsp + 0x110]
add ax, bp
mov word [0x18002f938], ax
movzx eax, ax
mov dword [r8 + rax*4 + 0x1c], 0x212b
mov eax, dword [0x18002f8e0]
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret