Function at 0x180018a9c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x18002f8f0]
mov r12, rcx
movzx ecx, word [0x18002f938]
mov rbx, rdx
mov r10, qword [rsp + 0xc0]
mov rsi, r8
mov r15, qword [rsp + 0xb8]
mov r14, r9
movzx r11d, word [0x18002f8a4]
mov edx, 0x1142
movzx ebp, word [rax + rcx*4]
mov edi, 0x56f
movzx eax, word [r9 + 0x2266]
mov ecx, 0xffff
mov qword [rsp + 0x18], rax
movzx eax, word [0x18002f8dc]
add ax, cx
mov dword [rsp + 8], edx
mov rcx, qword [0x18002f900]
mov word [0x18002f8dc], ax
movzx r8d, ax
movzx eax, byte [r12 + 0x85f]
mov word [rsp + 2], ax
movzx eax, word [rsp + 0xc8]
mov word [rsp], bp
mov qword [rsp + 0x20], r8
mov word [rsp + 0xc], r11w
mov r9, qword [rsi + rax*8]
movabs rax, 0x3054ffbd6d680e91
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0xc
imul rax, rax, 0x1aeb
sub r9, rax
mov eax, 0x1495
cdq
mov qword [rsp + 0x38], r9
idiv dword [0x18002f948]
movzx edx, byte [r10]
mov dword [rsp + 0x10], eax
movzx r13d, word [rcx + rdx*8 + 0x90]
lea rax, [rdx + rdx*2]
movsxd rcx, dword [0x18002f8a0]
movzx eax, word [rbx + rax*8]
mov word [rsp + 4], r13w
sub edi, dword [r15 + rcx*8]
mov ecx, 0x1a4
sub ax, cx
mov dword [rsp + 0x14], edi
movzx ecx, word [rsp + 0xc8]
mov word [rsp + 0xc0], ax
mov rax, qword [0x18002f8a8]
mov ecx, dword [rax + rcx*4]
mov eax, 1
cmp ecx, 0x87a
je 0x180018c14
mov edx, dword [rbx + 0x4dc8]
sub edx, 0x61f
mov word [0x18002f93c], cx
add ecx, eax
mov dword [0x18002f8c4], edx
cmp ecx, 0x87a
jne 0x180018bef
jmp 0x180018c1a
mov edx, dword [0x18002f8c4]
mov rbx, qword [rsp + 0xd8]
movzx eax, r11w
mov r11, qword [rsp + 0xb0]
cmp rax, qword [r11 + 0xeb70]
ja 0x180018c8d
movzx eax, r13w
cmp qword [0x18002f8b8], rax
jne 0x180018c8d
movzx eax, byte [r10]
xor edx, edx
mov r9d, 1
sub edi, r9d
mov dword [rsp + 0x14], edi
movzx ecx, byte [rax + rbx]
mov eax, 0x610
sub rcx, qword [0x18002f8e0]
mov qword [0x18002f8e0], rcx
div qword [r15 + 0xbc0]
movsxd rcx, edi
sub ax, word [rcx*2 + 0x955]
mov word [rcx*2 + 0x955], ax
jmp 0x180018e7c
movzx ecx, word [rsp + 0xc0]
movzx eax, byte [rsp + 0x10]
lea rcx, [rcx + rcx*2]
cmp qword [r9 + rcx*8 + 0x70], rax
jbe 0x180018cef
movzx eax, word [0x18002f938]
inc rax
shl rax, 5
cmp qword [rax + rsi], 0x347
je 0x180018cef
xor dword [0x18002f914], 0x273
lea eax, [rdi*2 + 0x1d]
mov dword [0x18002f948], 0x1e61
dec byte [r10]
movzx edx, byte [r10]
movsxd rcx, eax
mov rax, qword [r11 + rdx*8]
or qword [r11 + rcx*8], rax
jmp 0x180018d96
mov rax, qword [0x18002f8f8]
cmp qword [r11 + rax*8 + 0x120], 0x32a
jb 0x180018d1a
movzx eax, byte [rsp + 0x10]
cmp eax, edx
jge 0x180018d1a
cmp r8, qword [0x18002f920]
jbe 0x180018da1
movzx eax, word [rsp + 2]
lea rcx, [rax + rax*2]
movzx eax, word [r14 + rcx*2 + 8]
cmp eax, dword [0x18002f8c0]
je 0x180018da1
movzx eax, r13w
mov edx, 0x28f
shl eax, 2
add qword [r15 + rax*8], 0x2d3
movzx eax, byte [r10]
add rax, 8
shl rax, 5
xor qword [rax + r15], 0x8d4
movzx ecx, byte [r10]
movzx eax, word [r8 + rcx*4]
and ax, dx
mov word [rcx*4 + 0x955], ax
movzx eax, byte [r10]
mov rdx, qword [0x18002f8f8]
movzx ecx, byte [rax + r12]
add cx, word [r9 + rdx*8 + 0x60]
movzx eax, word [0x18002f8a0]
or word [0x18002f940], cx
mov word [r14 + rdx*4], ax
mov r9d, 1
jmp 0x180018e7c
mov rax, qword [0x18002f918]
movzx ecx, r13w
shl rcx, 5
cmp qword [rcx + rax], 0x193d
jne 0x180018dd1
dec byte [r10]
movzx ecx, byte [r10]
mov rax, qword [r11 + 0x8768]
add rcx, rcx
cmp qword [r9 + rcx*8], rax
ja 0x180018df2
movzx edx, byte [r10]
mov r9d, 1
sub r10, r9
lea rax, [r12 + rdx*2]
movzx ecx, byte [rdx + rax + 1]
add rdx, rdx
cmp qword [rsi + rdx*8], rcx
jae 0x180018e08
jmp 0x180018df8
mov r9d, 1
movzx eax, byte [r10 + 0x180c]
cmp dword [0x18002f8a0], eax
jle 0x180018e7c
movzx ecx, byte [r10]
mov rax, qword [0x18002f8a8]
movsxd rdx, dword [rax + rcx*4]
mov rax, qword [0x18002f928]
imul rax, rdx
mov qword [0x18002f928], rax
movzx ecx, word [r14 + 0x16a8]
mov rax, qword [rsp + 0x18]
sub ecx, 0x41a
and ecx, dword [rax + 0x5a8c]
mov eax, 0x76abbf91
imul ecx
mov byte [rbx + 0xcd], 0x98
movsxd r8, dword [0x18002f8c4]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, word [rsp + 0xc]
mov dword [rsp + 8], edx
mov rdx, qword [0x18002f900]
mov ecx, dword [rdx + r8*4]
imul ecx, eax
mov dword [rdx + r8*4], ecx
mov eax, dword [0x18002f8a0]
sub eax, r9d
mov dword [0x18002f8a0], eax
cdqe
mov qword [rsi + rax*8], 0xc
movzx eax, byte [r10]
movzx ecx, word [r15 + 0x1a00]
movzx edx, word [r11 + rax*8]
imul rax, qword [0x18002f928], 0x1a02
imul edx, ecx
mov rcx, qword [rsp + 0x18]
mov qword [0x18002f928], rax
movzx eax, word [rsp + 2]
add ax, r9w
movzx eax, ax
add dx, word [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x30], dx
xor edx, edx
mov dword [rcx + rax*4], 0x131f
mov eax, dword [0x18002f914]
shl eax, 2
movsxd r8, eax
movzx eax, r13w
movzx ecx, byte [r8 + rbx]
div ecx
mov byte [r8 + rbx], dl
mov r9, qword [0x18002f8f8]
mov eax, dword [rsi + r9*8 + 0xd8]
dec r9
movsxd rsi, dword [0x18002f920]
mov dword [0x18002f948], eax
mov qword [0x18002f8f8], r9
cmp esi, 0x104
jg 0x180019038
mov r13, qword [rsp + 0x28]
mov r8, rsi
movzx ecx, bp
mov edi, 1
lea rbp, [r12 + 0x27]
shl r8, 4
mov r12, qword [rsp + 0x18]
lea rbp, [rbp + rsi*4]
add r8, r11
mov r15d, ecx
mov ecx, dword [0x18002f8a4]
add ecx, edi
mov dword [0x18002f8a4], ecx
movzx eax, byte [rbx + 0x6d9]
cdq
idiv ecx
movsxd rax, edx
xor edx, edx
div qword [0x18002f930]
mov eax, dword [0x18002f8c0]
mov dword [0x18002f8d8], eax
mov qword [0x18002f930], rdx
movzx eax, byte [r10]
movzx ecx, word [r14 + rax*2]
lea eax, [r15 - 0xf80]
add eax, ecx
movsxd rcx, eax
imul rcx, qword [rsp + 0xd0]
sub rcx, r9
mov qword [0x18002f8f8], rcx
movzx eax, word [r8]
add r8, 0x10
or ax, word [0x18002f940]
add word [0x18002f93c], ax
mov al, byte [rbp]
lea rbp, [rbp + 4]
mov byte [rbx + r13*4], al
movzx eax, word [0x18002f8dc]
or qword [r11 + rax*8], 0xf0f
movzx edx, byte [r10]
imul eax, esi, 0x868
add rdx, 6
add rdx, rdx
add esi, edi
mov ecx, dword [r12 + rdx*8]
imul ecx, eax
mov dword [r12 + rdx*8], ecx
cmp esi, 0x104
jg 0x18001901e
mov r9, qword [0x18002f8f8]
jmp 0x180018f5d
mov edi, dword [rsp + 0x14]
mov r12, qword [rsp + 0x90]
mov r15, qword [rsp + 0xb8]
movzx r13d, word [rsp + 4]
mov r9, qword [0x18002f8b8]
movzx ebp, r13w
movzx eax, byte [r12 + rbp]
cmp r9d, eax
jg 0x1800190f6
mov r15, qword [rsp + 0x20]
mov ebx, 1
mov r13, qword [rsp + 0xa0]
movsxd rsi, r9d
shl rsi, 3
dec byte [r10]
add r9d, ebx
mov rax, qword [0x18002f8a8]
mov r8, qword [0x18002f8f8]
movsxd rcx, dword [rax + 0x7bb4]
movabs rax, 0x878d499b6f765855
imul rcx, qword [r13 + 0x7a40]
mul rcx
mov eax, 0x159e
sub rcx, rdx
shr rcx, 1
add rcx, rdx
cdq
idiv edi
mov rax, qword [0x18002f900]
shr rcx, 0xb
mov edi, edx
xor edi, dword [0x18002f928]
mov dword [0x18002f944], ecx
mov ecx, dword [rsi + rax]
lea rsi, [rsi + 8]
and dword [r15 + r8*4], ecx
movzx eax, byte [r12 + rbp]
cmp r9d, eax
jle 0x18001906a
mov r9, qword [0x18002f8b8]
mov rbx, qword [rsp + 0xd8]
mov r15, qword [rsp + 0xb8]
movzx r13d, word [rsp + 4]
movzx eax, byte [r10]
dec r9
mov rcx, qword [rsp + 0x98]
movzx r8d, word [rsp]
movzx r11d, r13w
movzx eax, byte [rax + rbx + 0x12]
cdq
idiv dword [0x18002f8c4]
xor edx, edx
lea r14, [r12 + r11*2]
mov dword [0x18002f8c4], eax
movzx eax, word [rsp + 0x30]
imul rax, qword [rcx + rax*8 + 0x28], 0x919
mov rcx, qword [rsp + 0x38]
div qword [rcx + 0x570]
mov qword [0x18002f8b8], r9
and eax, 0x2cc
mov dword [0x18002f914], eax
mov al, byte [r10 + 0x103b]
add al, r9b
movzx eax, al
imul ecx, eax, 0xa7
mov eax, 0xb03
and word [rsp + 8], ax
movzx eax, byte [rsp + 0x10]
mov r9d, eax
shl r9, 2
mov byte [r8 + rbx + 5], cl
mov r13, qword [0x18002f8a8]
lea r15, [r15 + rax*8]
mov ebp, dword [0x18002f8a0]
mov ecx, dword [0x18002f914]
mov rsi, qword [r15]
mov qword [0x18002f8f8], rsi
movsxd rax, ebp
movzx eax, byte [rax + rbx]
cdq
idiv dword [0x18002f8c0]
sub dx, r8w
movzx r8d, byte [r11 + r14]
mov word [rsp], dx
cmp r8d, dword [r13 + 0x68c0]
jne 0x180019256
lea rsi, [r12 + r8]
movzx ebx, dx
mov r14d, 1
lea eax, [rdi + 0x24]
add r8d, r14d
movsxd rcx, eax
movzx eax, byte [rsi]
add rsi, r14
movzx edx, byte [rcx + r10]
sub edx, eax
mov eax, 0x380690c5
mov dword [r9 + r13], edx
movzx ecx, byte [r12 + 0xe4b]
mov r13, qword [0x18002f8a8]
or ecx, 0x1465
mul ecx
mov ecx, dword [0x18002f914]
mov eax, 0x1b87
shr edx, 0xa
sub edx, edi
mov edi, edx
cdq
idiv ecx
mov eax, 0x13d8
and dx, ax
sub dx, bx
movzx ebx, dx
cmp r8d, dword [r13 + 0x68c0]
je 0x1800191d6
mov ebp, dword [0x18002f8a0]
lea r14, [r12 + r11*2]
mov rsi, qword [0x18002f8f8]
mov rbx, qword [rsp + 0xd8]
mov word [rsp], dx
movzx r8d, word [rsp]
add r15, 8
add r9, 4
cmp r9, 0x38ac
jne 0x180019197
movzx eax, word [rsp + 0xc8]
cmp qword [0x18002f920], rax
mov r11, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xa8]
jbe 0x18001941d
lea eax, [rcx + rcx*2]
movsxd rcx, eax
lea r8d, [rdi + 1]
mov rax, qword [0x18002f8f0]
mov edi, 1
mov eax, dword [rax + rcx*4]
movzx ecx, word [0x18002f938]
cdq
idiv r8d
movzx r8d, byte [r10]
xor edx, edx
cdqe
imul rax, qword [rsp + 0xd0]
shl rcx, 5
div qword [rcx + r11]
movzx ecx, word [rsp]
mov eax, 0xba1
movzx r9d, dx
sub cx, di
or cx, ax
mov eax, 0x10de
movzx ecx, cx
imul ecx, eax
movabs rax, 0x74a0d76cfc8b0201
sub cx, word [r8*2 + 0x955]
mov word [r8*2 + 0x955], cx
mov r8d, r9d
sub r8, qword [r11 + 0x14a0]
movzx ecx, byte [r10]
mul r8
sub r8, rdx
shr r8, 1
lea rax, [rdx + r8]
movzx edx, byte [r10 + rcx*2]
movsxd r8, dword [0x18002f948]
shr rax, 0xb
mov rcx, r8
sub rax, rdx
or rcx, 0x165
xor edx, edx
div qword [0x18002f8d0]
mov qword [0x18002f8d0], rax
movzx eax, byte [r12 + 0x1208]
mov word [0x18002f93c], ax
movzx edx, byte [r10]
mov rax, qword [0x18002f8c8]
mov rdx, qword [rax + rdx*8]
and rdx, rcx
sub rdx, 0x18e
xor qword [0x18002f8b0], rdx
cmp r9, qword [rsp + 0xd0]
jne 0x1800193a2
movzx ecx, byte [r10]
mov rdx, qword [rsp + 0x18]
movzx eax, word [r14 + rcx*4 + 4]
cmp eax, dword [rdx + rcx*4]
jg 0x1800193d1
movzx eax, byte [r10]
add byte [rbx + rax*2], r8b
mov rax, qword [0x18002f8b8]
mov r8d, dword [0x18002f948]
add rax, rdi
mov qword [0x18002f8b8], rax
imul eax, eax, 0x7e
sub eax, dword [0x18002f914]
mov dword [0x18002f914], eax
mov edx, dword [rsp + 8]
movzx eax, byte [r10 + 0x13d8]
movzx edx, dx
cmp edx, eax
jne 0x1800194ba
lea r9d, [rdx + 0x4b0]
lea eax, [r8 + r8*2]
add edx, edi
movsxd rcx, eax
mov rax, qword [rsp + 0x20]
xor dword [rax + rcx*4], r9d
add r9d, edi
movzx eax, byte [r10 + 0x13d8]
cmp edx, eax
jne 0x1800194ba
mov r8d, dword [0x18002f948]
jmp 0x1800193ef
movzx eax, byte [r10 + 0xeb9]
cmp edi, eax
jg 0x18001943e
movzx ecx, byte [r10]
mov rdx, qword [rsp + 0xb8]
movsxd rax, ebp
cmp rax, qword [rdx + rcx*8]
jne 0x1800194ba
movzx eax, byte [r10]
lea rcx, [rax + rax*2]
movzx eax, byte [r10 + 0x596]
movzx edx, word [r14 + rcx*2]
movzx ecx, word [0x18002f8dc]
xor eax, edx
add eax, 0x545
xor edx, edx
cdqe
div rsi
mov eax, 1
add qword [0x18002f8d0], rax
mov rax, qword [0x18002f900]
mov qword [0x18002f8f8], rdx
movzx edx, word [r14 + 0xfb6]
and edx, 0x1280
mov dword [rax + rcx*8], edx
mov eax, 0xffff
add word [0x18002f8dc], ax
movzx edx, byte [r10]
mov rcx, qword [0x18002f918]
movzx eax, word [r14 + 0x253a]
shl rdx, 5
add qword [rdx + rcx], rax
mov eax, 0xce2
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret