Function at 0x140031187
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1228
call fcn.140068fb0
sub rsp, rax
movdqa xmmword [rsp + 0x1210], xmm15
movdqa xmmword [rsp + 0x1200], xmm14
movdqa xmmword [rsp + 0x11f0], xmm13
movdqa xmmword [rsp + 0x11e0], xmm12
movdqa xmmword [rsp + 0x11d0], xmm11
movdqa xmmword [rsp + 0x11c0], xmm10
movdqa xmmword [rsp + 0x11b0], xmm9
movdqa xmmword [rsp + 0x11a0], xmm8
movdqa xmmword [rsp + 0x1190], xmm7
movdqa xmmword [rsp + 0x1180], xmm6
mov rsi, r8
mov r12, rdx
mov rdi, rcx
mov al, byte [0x1400a5530]
mov edx, 0x8000
xor ecx, ecx
call fcn.1400639e0
test rax, rax
je 0x140031d05
mov rbp, rax
mov qword [rsp + 0x30], 0x20
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
movabs rcx, 0xaaaaaaaaaaaaaaab
mov rax, rsi
mul rcx
shr rdx, 1
and rdx, 0xfffffffffffffff0
lea r13, [rdx + rdx*2]
cmp r13, 0x2f
ja 0x140031296
mov dword [rdi + 8], 7
movabs rax, 0x8000000000000000
mov qword [rdi], rax
mov rcx, rbp
xor edx, edx
call fcn.14002a92f
mov qword [rsp + 0x48], rdi
pxor xmm6, xmm6
movabs rbx, 0xf00ff00f00000
movabs r15, 0xf0f00000f0f0000
movabs rsi, 0xf000ff000f0000
mov al, byte [0x1400a423c]
cmp al, 0xff
je 0x1400312d8
cmp al, 1
lea r14, [rsp + 0x620]
je 0x140031327
jmp 0x140031888
lea r14, [rsp + 0x620]
mov rcx, r14
call fcn.14001bb24
lea rcx, [rsp + 0x260]
call fcn.14001bb46
mov edi, dword [rsp + 0x628]
mov eax, edi
not eax
test eax, 0xc000000
jne 0x140031881
call fcn.140031d15
shr eax, 1
shr edi, 0x19
and edi, eax
and edi, 1
mov byte [0x1400a423c], dil
je 0x140031888
movdqu xmm6, xmmword [r12]
movdqu xmm7, xmmword [r12 + 0x10]
movdqa xmmword [rsp + 0xa0], xmm7
lea rbp, [rsp + 0x170]
mov rcx, rbp
lea rdx, [rsp + 0xa0]
call fcn.14001bb68
pshufd xmm0, xmmword [rsp + 0x170], 0xff
movdqa xmmword [rsp + 0x70], xmm6
movdqa xmm1, xmm6
pslldq xmm1, 4
movdqa xmm2, xmm6
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm0, xmm6
pslldq xmm0, 0xc
pxor xmm0, xmm1
pxor xmm0, xmm2
pxor xmm0, xmm6
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmm6, xmm0
mov rcx, rbp
lea rdx, [rsp + 0xb0]
call fcn.14001bb73
pshufd xmm0, xmmword [rsp + 0x170], 0xaa
movdqa xmmword [rsp + 0x60], xmm7
movdqa xmm1, xmm7
pslldq xmm1, 4
movdqa xmm2, xmm7
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm0, xmm7
pslldq xmm0, 0xc
pxor xmm0, xmm1
pxor xmm0, xmm2
pxor xmm0, xmm7
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmm8, xmm0
mov rcx, rbp
lea rdx, [rsp + 0xc0]
call fcn.14001bb7e
pshufd xmm0, xmmword [rsp + 0x170], 0xff
movdqa xmmword [rsp + 0x90], xmm6
movdqa xmm1, xmm6
pslldq xmm1, 4
movdqa xmm2, xmm6
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm7, xmm6
pslldq xmm7, 0xc
pxor xmm7, xmm1
pxor xmm7, xmm2
pxor xmm7, xmm6
movdqa xmmword [rsp + 0xd0], xmm7
mov rcx, rbp
lea rdx, [rsp + 0xd0]
call fcn.14001bb73
pshufd xmm0, xmmword [rsp + 0x170], 0xaa
movdqa xmmword [rsp + 0x80], xmm8
movdqa xmm1, xmm8
pslldq xmm1, 4
movdqa xmm2, xmm8
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm6, xmm8
pslldq xmm6, 0xc
pxor xmm6, xmm1
pxor xmm6, xmm2
pxor xmm6, xmm8
movdqa xmmword [rsp + 0xe0], xmm6
mov rcx, rbp
lea rdx, [rsp + 0xe0]
call fcn.14001bb89
pshufd xmm0, xmmword [rsp + 0x170], 0xff
movdqa xmm1, xmm7
pslldq xmm1, 4
movdqa xmm2, xmm7
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm9, xmm7
pslldq xmm9, 0xc
pxor xmm9, xmm1
pxor xmm9, xmm2
pxor xmm9, xmm7
movdqa xmmword [rsp + 0xf0], xmm9
mov rcx, rbp
lea rdx, [rsp + 0xf0]
call fcn.14001bb73
pshufd xmm0, xmmword [rsp + 0x170], 0xaa
movdqa xmm1, xmm6
pslldq xmm1, 4
movdqa xmm2, xmm6
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm8, xmm6
pslldq xmm8, 0xc
pxor xmm8, xmm1
pxor xmm8, xmm2
pxor xmm8, xmm6
movdqa xmmword [rsp + 0x100], xmm8
mov rcx, rbp
lea rdx, [rsp + 0x100]
call fcn.14001bb94
pshufd xmm0, xmmword [rsp + 0x170], 0xff
movdqa xmm1, xmm9
pslldq xmm1, 4
movdqa xmm2, xmm9
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm11, xmm9
pslldq xmm11, 0xc
pxor xmm11, xmm1
pxor xmm11, xmm2
pxor xmm11, xmm9
movdqa xmmword [rsp + 0x110], xmm11
mov rcx, rbp
lea rdx, [rsp + 0x110]
call fcn.14001bb73
pshufd xmm0, xmmword [rsp + 0x170], 0xaa
movdqa xmm1, xmm8
pslldq xmm1, 4
movdqa xmm2, xmm8
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm10, xmm8
pslldq xmm10, 0xc
pxor xmm10, xmm1
pxor xmm10, xmm2
pxor xmm10, xmm8
movdqa xmmword [rsp + 0x120], xmm10
mov rcx, rbp
lea rdx, [rsp + 0x120]
call fcn.14001bb9f
pshufd xmm0, xmmword [rsp + 0x170], 0xff
movdqa xmm1, xmm11
pslldq xmm1, 4
movdqa xmm2, xmm11
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm13, xmm11
pslldq xmm13, 0xc
pxor xmm13, xmm1
pxor xmm13, xmm2
pxor xmm13, xmm11
movdqa xmmword [rsp + 0x130], xmm13
mov rcx, rbp
lea rdx, [rsp + 0x130]
call fcn.14001bb73
pshufd xmm0, xmmword [rsp + 0x170], 0xaa
movdqa xmm1, xmm10
pslldq xmm1, 4
movdqa xmm2, xmm10
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm12, xmm10
pslldq xmm12, 0xc
pxor xmm12, xmm1
pxor xmm12, xmm2
pxor xmm12, xmm10
movdqa xmmword [rsp + 0x140], xmm12
mov rcx, rbp
lea rdx, [rsp + 0x140]
call fcn.14001bbaa
pshufd xmm0, xmmword [rsp + 0x170], 0xff
movdqa xmm1, xmm13
pslldq xmm1, 4
movdqa xmm2, xmm13
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm15, xmm13
pslldq xmm15, 0xc
pxor xmm15, xmm1
pxor xmm15, xmm2
pxor xmm15, xmm13
movdqa xmmword [rsp + 0x150], xmm15
mov rcx, rbp
lea rdx, [rsp + 0x150]
call fcn.14001bb73
pshufd xmm0, xmmword [rsp + 0x170], 0xaa
movdqa xmm1, xmm12
pslldq xmm1, 4
movdqa xmm2, xmm12
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm14, xmm12
pslldq xmm14, 0xc
pxor xmm14, xmm1
pxor xmm14, xmm2
pxor xmm14, xmm12
movdqa xmmword [rsp + 0x170], xmm14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.14001bbb5
pshufd xmm0, xmmword [rsp + 0x160], 0xff
movdqa xmm1, xmm15
pslldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm0, xmm15
pslldq xmm0, 4
movdqa xmm2, xmm15
pslldq xmm2, 0xc
pxor xmm2, xmm0
pxor xmm2, xmm1
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x170], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x180], xmm0
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x190], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x1a0], xmm0
movdqa xmmword [rsp + 0x1b0], xmm7
movdqa xmmword [rsp + 0x1c0], xmm6
pxor xmm6, xmm6
movdqa xmmword [rsp + 0x1d0], xmm9
movdqa xmmword [rsp + 0x1e0], xmm8
movdqa xmmword [rsp + 0x1f0], xmm11
movdqa xmmword [rsp + 0x200], xmm10
movdqa xmmword [rsp + 0x210], xmm13
movdqa xmmword [rsp + 0x220], xmm12
pxor xmm2, xmm15
movdqa xmmword [rsp + 0x230], xmm15
movdqa xmmword [rsp + 0x240], xmm14
movdqa xmmword [rsp + 0x250], xmm2
lea rcx, [rsp + 0x350]
mov rdx, rbp
call fcn.140031d22
mov r8d, 0xf0
lea rdi, [rsp + 0x260]
mov rcx, rdi
mov rdx, rbp
call fcn.140076250
mov r8d, 0x1e0
mov rcx, r14
mov rdx, rdi
jmp 0x140031b56
mov byte [0x1400a423c], 0
mov qword [rsp + 0x60], r13
mov r8d, 0x3c0
lea r14, [rsp + 0x260]
mov rcx, r14
xor edx, edx
call fcn.1400768f0
mov qword [rsp + 0x20], r12
mov rcx, r14
mov rdx, r12
mov r8, r12
mov r9, r12
call fcn.14001a7b7
mov qword [rsp + 0x70], r12
lea rdx, [r12 + 0x10]
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x2a0]
mov r8, rdx
mov r9, rdx
call fcn.14001a7b7
mov ebp, 8
mov edi, 0x80
mov r12d, 0xc0
mov r13d, 0x80
mov rcx, r14
mov rdx, rbp
call fcn.14001a9a4
lea r14, [rsp + rdi]
add r14, 0x260
mov rcx, r14
call fcn.14001aa05
not qword [r14]
not qword [r14 + 8]
not qword [r14 + 0x28]
not qword [r14 + 0x30]
lea r14, [rsp + 0x260]
xor byte [rsp + r13 + 0x263], 0xf0
add rbp, 8
mov rcx, r14
mov rdx, rbp
mov r8d, 0x1c
call fcn.14001acb2
cmp r13, 0x3b0
je 0x1400319b6
mov rcx, r14
mov rdx, rbp
call fcn.14001a9a4
lea rcx, [rsp + r12]
add rcx, 0x260
call fcn.14001aa05
not qword [rsp + rdi + 0x2a0]
not qword [rsp + rdi + 0x2a8]
not qword [rsp + rdi + 0x2c8]
not qword [rsp + rdi + 0x2d0]
add rbp, 8
mov rcx, r14
mov rdx, rbp
mov r8d, 0xc
call fcn.14001acb2
add r13, 0x88
mov eax, 0x80
add rdi, rax
add r12, rax
jmp 0x1400318f3
mov eax, 3
lea rcx, [rsp + 0x320]
lea rdx, [rsp + 0x2e0]
lea r8, [rsp + 0x2a0]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x60]
lea r14, [rsp + 0x620]
movabs rdi, 0xff000000ff0000
mov ebp, 0x100
dec rax
xor r9d, r9d
mov r10, qword [r8 + r9*8]
mov r11, r10
shr r11, 8
xor r11, r10
and r11, rbx
xor r10, r11
shl r11, 8
xor r11, r10
mov r10, r11
shr r10, 4
xor r10, r11
and r10, r15
xor r11, r10
shl r10, 4
xor r10, r11
mov qword [r8 + r9*8], r10
lea r10, [r9 + 1]
mov r9, r10
cmp r10, 8
jne 0x1400319fa
xor r9d, r9d
mov r10, qword [rdx + r9*8]
mov r11, r10
shr r11, 8
xor r11, r10
and r11, rdi
xor r10, r11
shl r11, 8
xor r11, r10
mov qword [rdx + r9*8], r11
lea r10, [r9 + 1]
mov r9, r10
cmp r10, 8
jne 0x140031a40
xor r9d, r9d
mov r10, qword [rcx + r9*8]
mov r11, r10
shr r11, 8
xor r11, r10
and r11, rsi
xor r10, r11
shl r11, 8
xor r11, r10
mov r10, r11
shr r10, 4
xor r10, r11
and r10, r15
xor r11, r10
shl r10, 4
xor r10, r11
mov qword [rcx + r9*8], r10
lea r10, [r9 + 1]
mov r9, r10
cmp r10, 8
jne 0x140031a6f
add r8, rbp
add rdx, rbp
add rcx, rbp
test rax, rax
jne 0x1400319f4
mov eax, 0x68
mov rcx, qword [rsp + rax*8 + 0x260]
mov rdx, rcx
shr rdx, 8
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
shl rdx, 8
xor rdx, rcx
mov rcx, rdx
shr rcx, 4
xor rcx, rdx
and rcx, r15
xor rdx, rcx
shl rcx, 4
xor rcx, rdx
mov qword [rsp + rax*8 + 0x260], rcx
lea rcx, [rax + 1]
mov rax, rcx
cmp rcx, 0x70
jne 0x140031ac9
mov eax, 0x70
not qword [rsp + rax + 0x230]
not qword [rsp + rax + 0x238]
not qword [rsp + rax + 0x258]
not qword [rsp + rax + 0x260]
add rax, 0x40
cmp rax, 0x3f0
jne 0x140031b19
mov r8d, 0x3c0
mov rcx, r14
lea rdx, [rsp + 0x260]
call fcn.140076250
lea rdi, [r12 + 0x20]
mov r8d, 0x3c0
lea rbp, [rsp + 0xdb0]
mov rcx, rbp
mov rdx, r14
call fcn.140076250
movups xmm0, xmmword [rdi]
lea rax, [rsp + 0x1170]
movups xmmword [rax], xmm0
mov r8d, 0x3d0
lea rcx, [rsp + 0x9e0]
mov rdx, rbp
call fcn.140076250
mov rax, qword [rsp + 0x260]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x268]
mov dword [rsp + 0x58], eax
mov r14, qword [rsp + 0x40]
cmp r14, qword [rsp + 0x30]
jne 0x140031bd3
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.14002a870
mov r14, qword [rsp + 0x40]
add r12, 0x30
add r13, 0xffffffffffffffd0
mov rbp, qword [rsp + 0x38]
mov rdi, r14
shl rdi, 0xa
lea rcx, [rdi + rbp]
mov r8d, 0x3d0
lea rdx, [rsp + 0x9e0]
call fcn.140076250
mov dword [rbp + rdi + 0x3d0], 0
mov rax, qword [rsp + 0x50]
mov qword [rbp + rdi + 0x3d4], rax
mov eax, dword [rsp + 0x58]
mov dword [rbp + rdi + 0x3dc], eax
movdqa xmmword [rbp + rdi + 0x3e0], xmm6
mov byte [rbp + rdi + 0x3f0], 0
inc r14
mov qword [rsp + 0x40], r14
cmp r13, 0x30
jae 0x1400312bd
test r14, r14
je 0x140031ccf
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rcx], xmm0
mov rsi, qword [rsp + 0x30]
mov ecx, 0x10