Function at 0x180008ff4
Capabilities:
Encode data using xor

Disassembly:
mov byte [rsp + 0x20], r9b
mov word [rsp + 0x18], r8w
mov dword [rsp + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
movzx edi, byte [0x18041713e]
mov r13, rdx
movsxd rdx, dword [0x180417128]
mov r8, qword [rsp + 0xe8]
mov rbx, qword [0x180417178]
movzx r9d, byte [rsp + 0xe0]
mov r15, qword [rsp + 0xf0]
movsxd rax, ecx
mov qword [rsp + 0x58], rdx
movsxd rax, dword [rbx + rax*4]
mov qword [rsp + 0x40], rax
mov rax, qword [0x180417190]
movzx r14d, word [rax + rdi*2]
mov al, byte [0x180417170]
xor r14, 0x118a
mov qword [rsp + 0x68], rax
lea eax, [rcx + 0xb]
movsxd rcx, eax
movzx eax, word [0x180417138]
sub ax, word [0x1804170f0]
mov word [rsp + 0xf0], ax
mov eax, dword [r8 + rdx*4]
movzx ebp, word [r15 + rcx*4]
add eax, 0xbae
movzx edx, byte [0x180417198]
cdqe
mov qword [rsp + 0x38], rax
movsxd rax, dword [r8 + r9*4 + 0xc]
mov qword [rsp + 0x50], rax
movzx eax, byte [0x18041713c]
movsxd rcx, dword [r8 + rax*4 + 0x54]
mov eax, dword [0x18041719c]
inc eax
mov qword [rsp + 0x60], rcx
mov cl, byte [0x18041713f]
mov dword [0x18041719c], eax
add cl, 0xff
mov dword [rsp + 0x30], eax
mov byte [0x18041713f], cl
movzx eax, cl
imul eax, eax
mov r12d, eax
movzx eax, cl
xor rax, 0x1cbb
mov qword [rsp + 0x48], rax
movsxd rcx, dword [r12]
movzx eax, byte [0x18041713d]
inc eax
mov dword [rsp + 0xc8], eax
mov r8d, dword [r8 + rcx*4]
mov ecx, edi
add r8d, edx
shl ecx, 2
lea esi, [rax + 5]
movsxd r11, r8d
add dil, 1
mov eax, dword [rbx + rcx*4]
mov ebx, dword [rsp + 0xc8]
cdq
idiv dword [r14 + rsi*4]
movzx ecx, byte [rsp + 0xd8]
xor edx, edx
movsxd r10, eax
mov rax, qword [0x180417158]
mov byte [0x18041713e], dil
mov r8d, dword [r15 + r9*4]
imul r8d, ecx
add cl, 0xff
movsxd rax, dword [rax + rbx*4]
div r13
mov byte [rsp + 0xd8], cl
mov rcx, r11
mov r9d, edx
movsxd r8, r8d
mov rdx, r10
call fcn.180003b24
movsxd rcx, dword [r12]
mov rdx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov word [rdx + rcx*2], ax
movzx ecx, word [rsp + 0xf0]
mov eax, dword [rdi + rbx*4]
xor edx, edx
sub eax, dword [r14 + rcx*4]
movzx r10d, byte [rsp + 0xd8]
mov r9, qword [rsp + 0x38]
mov dword [r14 + rcx*4], eax
dec r9
movzx eax, byte [0x18041713e]
mov rcx, qword [rsp + 0x50]
add eax, eax
mov qword [rsp + 0x38], r9
mov rcx, qword [rcx + rax*8]
mov eax, 0xb36
add r10, rcx
movzx ecx, byte [0x18041713c]
div ecx
lea rcx, [r9 - 0x1db9]
mov rdx, r10
movsxd r8, eax
mov r9d, 0xffffee5a
call fcn.180008dc8
movzx r9d, word [rsp + 0xf0]
movsxd rdx, dword [rsp + 0xc0]
mov r14, qword [rsp + 0xe8]
mov ebx, dword [rsp + 0xc8]
mov r10d, ebx
shl r10d, 2
mov dword [r14 + rdx*4], eax
xor edx, edx
mov al, byte [rsp + 0xe0]
add al, 0xff
mov dword [rsp + 0xe8], r10d
movzx r8d, al
mov byte [rsp + 0xe0], al
mov eax, 0x51f
div ebp
lea eax, [r9*4 + 1]
add edx, dword [r10*4 + 0xa16]
or edx, r9d
mov r9d, 0x1397
xor dword [r15 + r8*4], edx
lea r8, [r13 + 1]
mov eax, dword [r12 + rax*4 - 4]
xor edx, edx
movzx r15d, word [rsp + 0xf0]
sub eax, 0x1763
movsxd rcx, eax
inc r15w
mov rax, qword [rsp + 0x40]
mov word [rsp + 0xf0], r15w
movzx eax, word [rax + rsi*2]
div r8
mov r8d, 0x7c5
call fcn.180008dc8
mov rcx, qword [0x180417158]
mov rbp, qword [rsp + 0x48]
movzx edx, r15w
mov dword [rcx + rdx*4], eax
movsxd rcx, dword [rsp + 0xc0]
movzx eax, byte [0x18041713e]
mov r10, rcx
lea eax, [rax + rax*2]
movsxd r8, dword [rcx + rax*8]
lea ecx, [rbx + 2]
mov rax, qword [0x180417100]
movzx ecx, word [rax + rcx*2]
cmp r8d, ecx
jl 0x180009358
movzx r15d, word [rsp + 0xd0]
lea r11, [r14 + r10*4]
mov r13, qword [rsp + 0x38]
lea r9, [r8 + rbp]
add r15d, 0x1876
mov esi, ebx
add r10, r10
mov ebx, 1
mov eax, r15d
cdq
idiv r8d
mov eax, dword [r11]
add r8d, ebx
imul eax, edx
mov dword [r11], eax
movzx ecx, byte [r9]
movzx eax, byte [rbp + 0x1500]
xor eax, 0x1a4a
cdq
idiv ecx
mov byte [r9], dl
add r9, rbx
mov dword [rdi + r10*8], r13d
mov rax, qword [0x180417100]
movzx ecx, word [rax + rsi*2 + 4]
cmp r8d, ecx
jge 0x180009307
mov ebx, dword [rsp + 0xc8]
movzx r15d, word [rsp + 0xf0]
movsxd r10, dword [0x180417128]
mov r11d, 1
mov eax, dword [rdi + 0x7c54]
movzx r13d, word [rsp + 0xd0]
cmp dword [r14 + r10*4], eax
jle 0x180009478
mov rax, qword [0x180417180]
sub ebx, r11d
mov r9, qword [rsp + 0x40]
sub rax, r11
mov dl, byte [rsp + 0xe0]
mov qword [0x180417180], rax
add dl, 0xff
add rax, rax
movzx ecx, dl
add dword [rdi + rax*8], 0x6cd
movzx eax, byte [0x18041713c]
mov r8, qword [0x180417188]
movzx eax, word [r9 + rax*2 + 0x2a]
xor eax, ecx
movzx ecx, dl
sub eax, dword [r14 + rcx*4]
cdq
idiv dword [0x1804170f8]
mov rax, qword [rsp + 0x60]
add byte [r8 + rax + 0x11], dl
xor edx, edx
movzx r8d, byte [0x18041713e]
movsxd rax, dword [0x180417128]
movsxd rcx, dword [rdi + rax*4]
mov eax, r8d
imul rax, qword [0x180417188]
add r8b, r11b
imul rax, rax, 0x1cc3
mov byte [0x18041713e], r8b
div rcx
movzx ecx, byte [rsp + 0xd8]
add qword [0x180417108], rcx
mov rsi, rdx
mov ecx, dword [0x18041719c]
xor ecx, dword [rsp + 0x30]
movzx eax, r8b
mov dword [r14 + rax*4], ecx
mov eax, ebx
shl eax, 2
mov ecx, 0x1254
mov dword [rsp + 0xe8], eax
add eax, 2
movsxd r8, eax
movzx eax, r15w
sub ecx, eax
movsxd rax, ebx
or dword [r12 + r8*4 - 4], ecx
mov r10d, dword [0x180417128]
movzx ecx, word [r9 + rax*2]
mov r9, qword [0x180417188]
and r9, rcx
mov qword [0x180417188], r9
jmp 0x180009484
mov r9, qword [0x180417188]
mov rsi, qword [rsp + 0x68]
movzx ebx, byte [rsp + 0xd8]
add r10d, r11d
mov dword [0x180417128], r10d
xor edx, edx
movzx r9d, byte [r9 + r9 + 0x1abb]
imul r9d, ebx
lea eax, [r10 + 1]
movsxd rcx, eax
movzx eax, byte [rcx + 0x1ab7]
movzx ecx, byte [0x18041713f]
div ecx
movsxd rdi, eax
lea eax, [r10 + 0x1f]
movsxd rcx, eax
sub r10d, r11d
mov rax, qword [rsp + 0x50]
movzx edx, word [rax + rcx*8]
mov eax, dword [r12 - 4]
add eax, 8
movsxd rcx, eax
movzx eax, r15w
sub eax, dword [r12 + rcx*4 - 4]
mov rcx, rdi
movsxd r8, eax
mov eax, r10d
shl eax, 2
mov dword [0x180417128], r10d
movsxd r10, eax
mov rax, qword [0x180417140]
movsxd r11, dword [rax + r10*4]
movzx eax, r13w
xor r11, rax
mov qword [rsp + 0x20], r11
call fcn.180001fa8
movsxd rcx, dword [r12 - 4]
sub sil, 1
movzx r8d, sil
mov byte [rcx + rbp], al
mov eax, dword [rsp + 0xe8]
movzx edx, byte [0x18041713f]
inc eax
movsxd rcx, eax
mov eax, dword [r12 - 4]
add eax, eax
cdqe
sub ebx, dword [rcx*4 + 0xa16]
movsxd rcx, ebx
mov r9d, dword [r14 + rax*4]
call fcn.180003b24
mov byte [0x180417198], al
mov eax, dword [rsp + 0xc0]
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret