Function at 0x140487350
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movdqa xmmword [rsp + 0x60], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1406a7e00]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rdx + 0x20]
test byte [rcx + 0x18], 0x40
jne 0x1404877df
mov dword [rsi + 0x84], 0
movzx eax, word [rdi + 2]
rol ax, 8
xor r9d, r9d
test ax, ax
je 0x1404877b5
movzx r12d, ax
add rdi, 4
lea ebp, [r12 - 1]
lea rax, [rsi + 0x30]
mov qword [rsp + 0x38], rax
pxor xmm6, xmm6
xor ebx, ebx
xor r15d, r15d
xor r13d, r13d
jmp 0x140487418
or bl, al
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x20]
mov r9d, dword [rsi + 0x84]
lea r8, str.end_subtable__u
call fcn.140420f90
movzx eax, word [rdi + 2]
rol ax, 8
movzx eax, ax
add rdi, rax
mov r9d, dword [rsi + 0x84]
inc r9d
mov dword [rsi + 0x84], r9d
inc r13d
cmp r13d, r12d
je 0x1404877b7
movzx eax, byte [rdi + 5]
mov rcx, qword [rsi + 0x20]
mov r14d, dword [rcx + 0x30]
mov edx, r14d
and edx, 0xfffffffe
cmp edx, 4
setne dl
and al, 1
cmp al, dl
je 0x1404873ed
mov rdx, qword [rsi + 0x10]
lea r8, str.start_subtable__u
call fcn.140420f90
test al, al
je 0x1404873ed
and r14d, 0xfffffffd
test r15b, 1
jne 0x140487520
test byte [rdi + 5], 4
je 0x140487520
mov rax, qword [rsi + 0x20]
mov ecx, dword [rax + 0x58]
mov r15b, 1
test rcx, rcx
je 0x140487520
mov rax, qword [rax + 0x78]
cmp ecx, 1
jne 0x140487482
xor edx, edx
jmp 0x1404874ea
mov r8d, ecx
and r8d, 0xfffffffe
lea r9, [rax + 0x26]
xor edx, edx
nop
mov byte [r9 - 0x14], 2
mov r10, qword [rsi + 0x20]
mov r10d, dword [r10 + 0x30]
and r10d, 0xfffffffd
xor r11d, r11d
cmp r10d, 4
setne r11b
lea r10d, [r11 + r11 - 1]
mov word [r9 - 0x16], r10w
mov byte [r9], 2
mov r10, qword [rsi + 0x20]
mov r10d, dword [r10 + 0x30]
and r10d, 0xfffffffd
xor r11d, r11d
cmp r10d, 4
setne r11b
lea r10d, [r11 + r11]
dec r10d
mov word [r9 - 2], r10w
add rdx, 2
add r9, 0x28
cmp r8, rdx
jne 0x140487490
test cl, 1
je 0x140487520
lea rcx, [rdx + rdx*4]
mov byte [rax + rcx*4 + 0x12], 2
mov rdx, qword [rsi + 0x20]
mov edx, dword [rdx + 0x30]
and edx, 0xfffffffd
xor r8d, r8d
cmp edx, 4
setne r8b
lea edx, [r8 + r8]
dec edx
mov word [rax + rcx*4 + 0x10], dx
nop word [rax + rax]
cmp r14d, 5
jne 0x140487620
mov rcx, qword [rsi + 0x20]
mov eax, dword [rcx + 0x58]
cmp eax, 2
jb 0x14048759a
mov rdx, qword [rcx + 0x68]
lea r9d, [rax - 1]
lea r8, [r9 - 1]
lea r9, [r9 + r9*4]
lea r9, [rdx + r9*4]
xor r10d, r10d
nop dword [rax]
mov r11d, dword [r9 + 0x10]
mov dword [rsp + 0x50], r11d
movups xmm0, xmmword [r9]
movaps xmmword [rsp + 0x40], xmm0
mov r11d, dword [rdx + 0x10]
mov dword [r9 + 0x10], r11d
movups xmm0, xmmword [rdx]
movups xmmword [r9], xmm0
mov r11d, dword [rsp + 0x50]
mov dword [rdx + 0x10], r11d
movdqa xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdx], xmm0
inc r10
mov r11d, r8d
add rdx, 0x14
dec r8
add r9, 0xffffffffffffffec
cmp r10, r11
jb 0x140487550
cmp byte [rcx + 0x53], 0
je 0x140487620
mov edx, dword [rcx + 0x58]
cmp edx, eax
cmovb eax, edx
cmp eax, 2
jb 0x140487620
mov rcx, qword [rcx + 0x78]
dec eax
lea rdx, [rax - 1]
lea rax, [rax + rax*4]
lea rax, [rcx + rax*4]
xor r8d, r8d
nop word cs:[rax + rax]
mov r9d, dword [rax + 0x10]
mov dword [rsp + 0x50], r9d
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
mov r9d, dword [rcx + 0x10]
mov dword [rax + 0x10], r9d
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
mov r9d, dword [rsp + 0x50]
mov dword [rcx + 0x10], r9d
movdqa xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rcx], xmm0
inc r8
mov r9d, edx
add rcx, 0x14
dec rdx
add rax, 0xffffffffffffffec
cmp r8, r9
jb 0x1404875d0
nop dword [rax + rax]
mov rax, qword [rsi + 0x58]
mov rcx, qword [rax + 0x10]
mov qword [rsi + 0x30], rcx
mov eax, dword [rax + 0x18]
add rax, rcx
mov qword [rsi + 0x38], rax
cmp r13d, ebp
jae 0x140487674
test rdi, rdi
je 0x140487674
sub rax, rdi
setbe dl
cmp rcx, rdi
ja 0x14048779d
test dl, dl
jne 0x1404877a7
mov qword [rsi + 0x30], rdi
movzx ecx, word [rdi + 2]
rol cx, 8
movzx ecx, cx
cmp rax, rcx
cmovb rcx, rax
add rcx, rdi
mov qword [rsi + 0x38], rcx
mov rcx, rdi
mov rdx, rsi
call fcn.1404879b0
and bl, 1
mov rcx, qword [rsi + 0x58]
mov rdx, qword [rcx + 0x10]
mov qword [rsi + 0x30], rdx
mov ecx, dword [rcx + 0x18]
add rcx, rdx
mov qword [rsi + 0x38], rcx
cmp r14d, 5
jne 0x1404873d0
mov rdx, qword [rsi + 0x20]
mov ecx, dword [rdx + 0x58]
cmp ecx, 2
jb 0x14048771c
mov r8, qword [rdx + 0x68]
lea r10d, [rcx - 1]
lea r9, [r10 - 1]
lea r10, [r10 + r10*4]
lea r10, [r8 + r10*4]
xor r11d, r11d
nop word cs:[rax + rax]
mov r14d, dword [r10 + 0x10]
mov dword [rsp + 0x50], r14d
movups xmm0, xmmword [r10]
movaps xmmword [rsp + 0x40], xmm0
mov r14d, dword [r8 + 0x10]
mov dword [r10 + 0x10], r14d
movups xmm0, xmmword [r8]
movups xmmword [r10], xmm0
mov r14d, dword [rsp + 0x50]
mov dword [r8 + 0x10], r14d
movdqa xmm0, xmmword [rsp + 0x40]
movdqu xmmword [r8], xmm0
inc r11
mov r14d, r9d
add r8, 0x14
dec r9
add r10, 0xffffffffffffffec
cmp r11, r14
jb 0x1404876d0
cmp byte [rdx + 0x53], 0
je 0x1404873d0
mov r8d, dword [rdx + 0x58]
cmp r8d, ecx
cmovb ecx, r8d
cmp ecx, 2
jb 0x1404873d0
mov rdx, qword [rdx + 0x78]
dec ecx
lea r8, [rcx - 1]
lea rcx, [rcx + rcx*4]
lea rcx, [rdx + rcx*4]
xor r9d, r9d
nop
mov r10d, dword [rcx + 0x10]
mov dword [rsp + 0x50], r10d
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x40], xmm0
mov r10d, dword [rdx + 0x10]
mov dword [rcx + 0x10], r10d
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov r10d, dword [rsp + 0x50]
mov dword [rdx + 0x10], r10d
movdqa xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdx], xmm0
inc r9
mov r10d, r8d
add rdx, 0x14
dec r8
add rcx, 0xffffffffffffffec
cmp r9, r10
jb 0x140487750
jmp 0x1404873d0
mov dl, 1
test dl, dl
je 0x140487657
mov rax, qword [rsp + 0x38]
movdqu xmmword [rax], xmm6
jmp 0x140487674
xor ebx, ebx
and bl, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1405602f0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, dword [rcx + 0x58]
cmp r9, 2
jb 0x140487389
or byte [rcx + 0xb4], 0x20
mov rdx, qword [rcx + 0x68]
cmp dword [rcx + 0x1c], 2
jne 0x140487811
cmp r9d, 9
jae 0x14048782e
mov r8d, 0xffffffff
xor eax, eax
jmp 0x14048796c
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
mov r10d, dword [rdx + 8]
mov r8d, dword [rdx + rax*4 + 8]
cmp r10d, r8d
cmovb r8d, r10d
jmp 0x140487991
mov eax, r9d
and eax, 7
mov r8d, 8
cmovne r8, rax
mov rax, r9
sub rax, r8
lea r8, [rdx + 0x94]
pcmpeqd xmm1, xmm1
movdqa xmm0, xmmword [0x140599730]
mov r10, rax
pcmpeqd xmm2, xmm2
movd xmm3, dword [r8 - 0x50]
movd xmm4, dword [r8 - 0x64]
punpckldq xmm4, xmm3
movd xmm3, dword [r8 - 0x78]
movd xmm5, dword [r8 - 0x8c]
punpckldq xmm5, xmm3
punpcklqdq xmm5, xmm4
movd xmm3, dword [r8]
movd xmm4, dword [r8 - 0x14]
punpckldq xmm4, xmm3
movd xmm3, dword [r8 - 0x28]
movd xmm6, dword [r8 - 0x3c]
punpckldq xmm6, xmm3
punpcklqdq xmm6, xmm4
movdqa xmm3, xmm1
movdqa xmm4, xmm5
pxor xmm4, xmm0
pxor xmm1, xmm0
pcmpgtd xmm4, xmm1
pand xmm3, xmm4
pandn xmm4, xmm5
movdqa xmm1, xmm4
por xmm1, xmm3
movdqa xmm3, xmm2
movdqa xmm4, xmm6
pxor xmm4, xmm0
pxor xmm2, xmm0
pcmpgtd xmm4, xmm2
pand xmm3, xmm4
pandn xmm4, xmm6
movdqa xmm2, xmm4
por xmm2, xmm3
add r8, 0xa0
add r10, 0xfffffffffffffff8
jne 0x14048785e
movdqa xmm3, xmm1
pxor xmm3, xmm0
movdqa xmm4, xmm2
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
pand xmm1, xmm4
pandn xmm4, xmm2
por xmm4, xmm1
pshufd xmm1, xmm4, 0xee
movdqa xmm2, xmm4
pxor xmm2, xmm0
movdqa xmm3, xmm1
pxor xmm3, xmm0
pcmpgtd xmm3, xmm2
pand xmm4, xmm3
pandn xmm3, xmm1
por xmm3, xmm4
pshufd xmm1, xmm3, 0x55
movdqa xmm2, xmm3
pxor xmm2, xmm0
pxor xmm0, xmm1
pcmpgtd xmm0, xmm2
pand xmm3, xmm0
pandn xmm0, xmm1
por xmm0, xmm3
movd r8d, xmm0
mov r10, r9
sub r10, rax
lea rax, [rax + rax*4]
lea rax, [rdx + rax*4]
add rax, 8
mov r11d, dword [rax]
cmp r8d, r11d
cmovae r8d, r11d
add rax, 0x14
dec r10
jne 0x14048797e
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x28], 2
xor r8d, r8d
call fcn.14034bed0
jmp 0x140487389