Function at 0x140299530
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
mov r12d, 1
mov esi, r12d
mov ebp, dword [rsp + 0x1b0]
mov qword [rsp + 0x190], rcx
mov ecx, ebp
mov rbx, r8
mov edi, r9d
shl esi, cl
mov rcx, qword [rsp + 0x190]
mov dword [rsp + 0x198], edx
call fcn.1401a2360
test rax, rax
je 0x140299bf2
cmp ebp, 3
jle 0x140299b68
lea r15d, [rbp - 2]
mov eax, edi
mov edx, r12d
mov ecx, r15d
mov dword [rsp + 0x2c], r15d
sar eax, cl
shl edx, cl
mov ecx, eax
lea eax, [rdx - 1]
mov r9d, ecx
lea r8d, [rcx - 1]
mov r10d, ecx
mov r11d, ecx
not r9d
xor r10d, 0xfffffffe
xor r11d, 0xfffffffd
and eax, edi
and r9d, r8d
mov r8d, ecx
xor r8d, 1
shr r9d, 0x1f
sub r8d, 1
neg r9
and r8d, r10d
mov r10d, ecx
xor r10d, 2
shr r8d, 0x1f
sub r10d, 1
neg r8
and r10d, r11d
mov r11d, ecx
xor ecx, 0xfffffffc
xor r11d, 3
shr r10d, 0x1f
sub r11d, 1
neg r10
and r11d, ecx
mov ecx, dword [rsp + 0x198]
shr r11d, 0x1f
neg r11
test ecx, ecx
jle 0x140299b39
movsxd rsi, esi
mov ecx, r15d
mov edi, 2
mov ebp, 3
shl rsi, 3
shl edi, cl
mov qword [rsp + 0x40], rsi
mov rsi, qword [rsp + 0x190]
shl ebp, cl
mov ecx, ebp
mov r15, qword [rsi]
mov esi, dword [rsp + 0x198]
lea r14, [r15 + 8]
sub esi, 1
lea rsi, [r14 + rsi*8]
mov qword [rsp + 0x30], rsi
movsxd rsi, edx
shl rsi, 3
mov qword [rsp + 0x78], rsi
movsxd rsi, edi
shl rsi, 3
mov qword [rsp + 0x70], rsi
movsxd rsi, ebp
mov ebp, eax
shl rsi, 3
not ebp
mov qword [rsp + 0x68], rsi
lea esi, [rax - 1]
and esi, ebp
mov ebp, eax
shr esi, 0x1f
xor ebp, 0xfffffffe
neg rsi
mov qword [rsp + 0x60], rsi
lea esi, [rdx + 1]
shl rsi, 3
mov qword [rsp + 0x58], rsi
lea esi, [rdi + 1]
shl rsi, 3
mov qword [rsp + 0x50], rsi
lea esi, [rcx + 1]
shl rsi, 3
mov qword [rsp + 0x48], rsi
mov esi, eax
xor esi, 1
sub esi, 1
and esi, ebp
mov ebp, eax
shr esi, 0x1f
xor ebp, 0xfffffffd
neg rsi
mov qword [rsp + 0x38], rsi
lea esi, [rdx + 2]
shl rsi, 3
mov qword [rsp + 0x80], rsi
lea esi, [rdi + 2]
shl rsi, 3
mov qword [rsp + 0x88], rsi
lea esi, [rcx + 2]
shl rsi, 3
mov qword [rsp + 0x90], rsi
mov esi, eax
xor esi, 2
sub esi, 1
and esi, ebp
mov ebp, eax
shr esi, 0x1f
neg rsi
mov qword [rsp + 0x98], rsi
lea esi, [rdx + 3]
shl rsi, 3
mov qword [rsp + 0xa0], rsi
lea esi, [rdi + 3]
shl rsi, 3
mov qword [rsp + 0xa8], rsi
lea esi, [rcx + 3]
shl rsi, 3
mov qword [rsp + 0xb0], rsi
mov esi, eax
xor esi, 3
sub esi, 1
xor ebp, 0xfffffffc
and esi, ebp
mov ebp, eax
shr esi, 0x1f
xor ebp, 0xfffffffb
neg rsi
mov qword [rsp + 0xb8], rsi
lea esi, [rdx + 4]
shl rsi, 3
mov qword [rsp + 0xc0], rsi
lea esi, [rdi + 4]
shl rsi, 3
mov qword [rsp + 0xc8], rsi
lea esi, [rcx + 4]
shl rsi, 3
mov qword [rsp + 0xd0], rsi
mov esi, eax
xor esi, 4
sub esi, 1
and esi, ebp
mov ebp, eax
shr esi, 0x1f
xor ebp, 0xfffffffa
neg rsi
mov qword [rsp + 0xd8], rsi
lea esi, [rdx + 5]
shl rsi, 3
mov qword [rsp + 0xe0], rsi
lea esi, [rdi + 5]
shl rsi, 3
mov qword [rsp + 0xe8], rsi
lea esi, [rcx + 5]
shl rsi, 3
mov qword [rsp + 0xf0], rsi
mov esi, eax
xor esi, 5
sub esi, 1
and esi, ebp
mov ebp, eax
shr esi, 0x1f
xor ebp, 0xfffffff9
neg rsi
mov qword [rsp + 0xf8], rsi
lea esi, [rdx + 6]
shl rsi, 3
mov qword [rsp + 0x100], rsi
lea esi, [rdi + 6]
shl rsi, 3
mov qword [rsp + 0x108], rsi
lea esi, [rcx + 6]
shl rsi, 3
mov qword [rsp + 0x110], rsi
mov esi, eax
xor esi, 6
sub esi, 1
and esi, ebp
shr esi, 0x1f
neg rsi
add edx, 7
mov qword [rsp + 0x118], rsi
lea rsi, [rdx*8]
lea edx, [rdi + 7]
lea rdi, [rdx*8]
lea edx, [rcx + 7]
mov qword [rsp + 0x120], rsi
lea rcx, [rdx*8]
mov edx, eax
xor eax, 0xfffffff8
mov qword [rsp + 0x128], rdi
xor edx, 7
mov qword [rsp + 0x130], rcx
sub edx, 1
and edx, eax
shr edx, 0x1f
mov eax, edx
neg rax
mov qword [rsp + 0x138], rax
jmp 0x1402998a4
add r14, 8
mov rax, qword [rsp + 0x78]
mov rdx, qword [rbx]
mov r12, qword [rsp + 0x48]
add rax, rbx
and rdx, r9
mov rcx, qword [rax]
mov rax, qword [rsp + 0x70]
add r12, rbx
add rax, rbx
and rcx, r8
mov rbp, qword [rax]
mov rax, qword [rsp + 0x68]
add rax, rbx
and rbp, r10
mov rdi, qword [rax]
mov rax, qword [rsp + 0x58]
or rcx, rbp
mov rsi, qword [rbx + 8]
or rdx, rcx
add rax, rbx
and rdi, r11
mov r13, qword [rax]
mov rax, qword [rsp + 0x50]
and rsi, r9
or rdx, rdi
mov rdi, qword [rsp + 0x80]
and rdx, qword [rsp + 0x60]
add rax, rbx
and r13, r8
mov rax, qword [rax]
mov r12, qword [r12]
or rsi, r13
mov rcx, qword [rbx + 0x10]
and rax, r10
and r12, r11
or rax, rsi
and rcx, r9
or rax, r12
and rax, qword [rsp + 0x38]
or rax, rdx
lea rdx, [rdi + rbx]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rdx]
lea rdx, [rdi + rbx]
mov rdi, qword [rsp + 0x90]
mov rdx, qword [rdx]
and rsi, r8
add rdi, rbx
or rsi, rcx
mov rcx, qword [rsp + 0x98]
mov rdi, qword [rdi]
and rdx, r10
or rdx, rsi
and rdi, r11
or rdx, rdi
mov rdi, qword [rsp + 0xa0]
and rcx, rdx
lea rdx, [rbx + rdi]
mov rdi, qword [rsp + 0xa8]
or rcx, rax
mov rax, qword [rbx + 0x18]
mov rsi, qword [rdx]
lea rdx, [rbx + rdi]
mov rdi, qword [rsp + 0xb0]
and rax, r9
mov rdx, qword [rdx]
and rsi, r8
add rdi, rbx
or rsi, rax
mov rax, qword [rsp + 0xb8]
mov rdi, qword [rdi]
and rdx, r10
mov ebp, dword [rsp + 0x2c]
or rdx, rsi
and rdi, r11
or rdx, rdi
and rax, rdx
or rax, rcx
cmp ebp, 2
je 0x140299b23
mov rcx, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xc8]
mov rdi, qword [rbx + 0x20]
lea rdx, [rbx + rcx]
mov rcx, qword [rdx]
lea rdx, [rbx + rsi]
mov rsi, qword [rsp + 0xd0]
and rdi, r9
mov rdx, qword [rdx]
add rsi, rbx
and rcx, r8
mov rsi, qword [rsi]
or rcx, rdi
and rdx, r10
mov rdi, qword [rsp + 0xe0]
or rdx, rcx
mov rcx, qword [rbx + 0x28]
and rsi, r11
or rdx, rsi
and rdx, qword [rsp + 0xd8]
and rcx, r9
or rax, rdx
lea rdx, [rbx + rdi]
mov rdi, qword [rsp + 0xe8]
mov rsi, qword [rdx]
lea rdx, [rbx + rdi]
mov rdi, qword [rsp + 0xf0]
mov rdx, qword [rdx]
and rsi, r8
add rdi, rbx
or rsi, rcx
mov rcx, qword [rsp + 0xf8]
mov rdi, qword [rdi]
and rdx, r10
or rdx, rsi
and rdi, r11
or rdx, rdi
mov rdi, qword [rsp + 0x100]
and rcx, rdx
lea rdx, [rbx + rdi]
mov rdi, qword [rsp + 0x108]
or rcx, rax
mov rax, qword [rbx + 0x30]
mov rsi, qword [rdx]
lea rdx, [rbx + rdi]
mov rdi, qword [rsp + 0x110]
and rax, r9
mov rdx, qword [rdx]
and rsi, r8
add rdi, rbx
or rsi, rax
mov rax, qword [rsp + 0x118]
mov rdi, qword [rdi]
and rdx, r10
or rdx, rsi
and rdi, r11
or rdx, rdi
and rax, rdx
or rax, rcx
cmp ebp, 3
jne 0x140299b23
mov rcx, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x128]
mov rdi, qword [rbx + 0x38]
lea rdx, [rcx + rbx]
mov rcx, qword [rdx]
lea rdx, [rsi + rbx]
mov rsi, qword [rsp + 0x130]
and rdi, r9
mov rdx, qword [rdx]
add rsi, rbx
and rcx, r8
mov rsi, qword [rsi]
or rcx, rdi
and rdx, r10
or rdx, rcx
and rsi, r11
or rdx, rsi
and rdx, qword [rsp + 0x138]
or rax, rdx
mov qword [r15], rax
add rbx, qword [rsp + 0x40]
mov r15, r14
cmp qword [rsp + 0x30], r14
jne 0x1402998a0
mov rax, qword [rsp + 0x190]
mov ebx, dword [rsp + 0x198]
mov dword [rax + 8], ebx
mov eax, 1
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, dword [rsp + 0x198]
test r8d, r8d
jle 0x140299b39
mov rax, qword [rsp + 0x190]
movsxd r11, esi
shl r11, 3
mov r10, qword [rax]
mov eax, dword [rsp + 0x198]
lea r9, [r10 + 8]
sub eax, 1
lea rbp, [r9 + rax*8]
nop dword [rax]
mov rcx, rbx
xor r8d, r8d
xor edx, edx
nop dword [rax + rax]
mov r13d, edi
mov r12, qword [rcx]
add rcx, 8
xor r13d, edx
add edx, 1
lea eax, [r13 - 1]
not r13d
and eax, r13d
shr eax, 0x1f
neg rax
and rax, r12
or r8, rax
cmp esi, edx
jne 0x140299bb0
mov qword [r10], r8
add rbx, r11
mov r10, r9
cmp r9, rbp
je 0x140299b39
add r9, 8
jmp 0x140299ba0
xor eax, eax
jmp 0x140299b50