Function at 0x140035c10
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r15, rdx
movzx eax, byte [r8 + 0x3b]
movzx ebx, al
test byte [rcx], 4
je 0x140035c9c
test al, al
je 0x140035c9c
cmp bl, 8
jae 0x140035c3d
xor eax, eax
jmp 0x140035c90
mov eax, ebx
and eax, 0xfffffff8
mov edx, ebx
shr edx, 3
shl rdx, 5
xor r10d, r10d
movdqa xmm0, xmmword [str._a_a_a_a8888]
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rcx + r10]
movdqu xmm2, xmmword [rcx + r10 + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rcx + r10], xmm1
movdqu xmmword [rcx + r10 + 0x10], xmm2
add r10, 0x20
cmp rdx, r10
jne 0x140035c60
cmp rax, rbx
je 0x140035c9c
xor byte [rcx + rax*4], 7
inc rax
cmp rbx, rax
jne 0x140035c90
test r9d, r9d
mov qword [rsp], rbx
je 0x140035d8f
movzx r11d, byte [r8 + 0x40]
dec r9d
cmp r11b, 2
jb 0x140035d2e
mov eax, 2
mov esi, 1
mov rdx, r9
shl rdx, 6
lea rdi, [0x1400584d0]
add rdi, rdx
jmp 0x140035cec
movzx edx, r11b
inc rax
cmp rsi, rdx
jae 0x140035d2e
mov rbx, rsi
inc rsi
movzx edx, r11b
cmp rsi, rdx
jae 0x140035ce4
mov rdx, rax
jmp 0x140035d0c
inc rdx
movzx r10d, r11b
cmp rdx, r10
jae 0x140035ce0
movsxd r10, dword [rcx + rbx*4]
movzx ebp, byte [r10 + rdi]
movsxd r14, dword [rcx + rdx*4]
cmp bpl, byte [r14 + rdi]
jae 0x140035d00
mov dword [rcx + rbx*4], r14d
mov dword [rcx + rdx*4], r10d
movzx r11d, byte [r8 + 0x40]
jmp 0x140035d00
movzx esi, r11b
lea rax, [rsi + rsi*2]
shl rax, 6
movsxd rdx, dword [rcx]
lea r10, [r9 + r9*8]
shl r9, 6
lea rdi, [0x140058450]
add rdi, r9
movzx edx, byte [rdx + rdi]
shl r10, 7
lea rdi, [0x140080f10]
add rdi, r10
add rdi, rax
mov rax, qword [rdi + rdx*8 - 0xc0]
mov edi, esi
cmp sil, 2
jb 0x140035e5d
mov r10, r15
lea rbx, [rdi - 1]
cmp esi, 2
jne 0x140035db0
mov r14d, 1
jmp 0x140035e2a
test byte [rcx], 0x20
je 0x14003605c
test bl, bl
je 0x14003605c
cmp bl, 8
jae 0x140036000
xor eax, eax
jmp 0x140036050
mov r14, rdi
shl r14, 9
lea rdx, [0x140081810]
lea r15, [r14 + rdx]
add r15, 0xfffffffffffffe00
mov r12, rbx
and r12, 0xfffffffffffffffe
neg r12
mov r14d, 1
lea rdx, [0x1400584d0]
add rdx, r9
nop word cs:[rax + rax]
movsxd r13, dword [rcx + r14*4]
movzx r13d, byte [r13 + rdx]
add rax, qword [r15 + r13*8]
movsxd r13, dword [rcx + r14*4 + 4]
movzx r13d, byte [r13 + rdx]
add rax, qword [r15 + r13*8 - 0x200]
add r15, 0xfffffffffffffc00
lea r13, [r12 + r14]
add r13, 2
add r14, 2
cmp r13, 1
jne 0x140035df0
test bl, 1
mov r15, r10
je 0x140035e5d
mov rbx, rdi
sub rbx, r14
movsxd rdx, dword [rcx + r14*4]
lea r10, [0x1400584d0]
add r10, r9
movzx edx, byte [rdx + r10]
shl rbx, 9
lea r9, [0x140081810]
add r9, rbx
add rax, qword [r9 + rdx*8]
imul rax, qword [r15 + 8]
movzx r9d, byte [r8 + 0x41]
test r9, r9
je 0x140035feb
mov qword [rsp + 8], rax
lea r8, [rdi + r9]
lea rbx, [rcx + rdi*4]
mov rdx, rdi
jmp 0x140035e9a
dec r9
add rbx, 4
mov rdx, rax
lea rax, [rdx + 1]
cmp rax, r8
jae 0x140035ece
mov r10d, 1
jmp 0x140035eb8
inc r10
cmp r9, r10
je 0x140035e90
mov ebp, dword [rcx + rdx*4]
mov r14d, dword [rbx + r10*4]
cmp ebp, r14d
jle 0x140035eb0
mov dword [rcx + rdx*4], r14d
mov dword [rbx + r10*4], ebp
jmp 0x140035eb0
mov r10, r15
mov r9d, edi
and r9d, 0xfffffff8
mov ebx, edi
shr ebx, 3
shl rbx, 5
xor r14d, r14d
lea r15, [0x140081810]
mov r12, rdi
jmp 0x140035f1a
mov rax, r12
sub rax, rdi
shl rax, 9
add rax, r15
sub ebp, r13d
add ebp, 0xfffffff8
movsxd rdx, ebp
add r14, qword [rax + rdx*8 + 0x200]
inc r12
cmp r12, r8
jae 0x140035fd8
mov ebp, dword [rcx + r12*4]
mov r13d, 0
test esi, esi
je 0x140035ef0
cmp r11b, 7
ja 0x140035f40
xor eax, eax
xor r13d, r13d
jmp 0x140035fc0
movd xmm0, ebp
pshufd xmm2, xmm0, 0
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
nop word cs:[rax + rax]
movdqu xmm3, xmmword [rcx + rax]
movdqu xmm4, xmmword [rcx + rax + 0x10]
movdqa xmm5, xmm2
pcmpgtd xmm5, xmm3
psubd xmm0, xmm5
movdqa xmm3, xmm2
pcmpgtd xmm3, xmm4
psubd xmm1, xmm3
add rax, 0x20
cmp rbx, rax
jne 0x140035f60
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddd xmm0, xmm1
pshufd xmm1, xmm0, 0x55
paddd xmm1, xmm0
movd r13d, xmm1
mov rax, r9
cmp r9, rdi
je 0x140035ef0
nop word cs:[rax + rax]
xor edx, edx
cmp ebp, dword [rcx + rax*4]
setg dl
add r13d, edx
inc rax
cmp rdi, rax
jne 0x140035fc0
jmp 0x140035ef0
mov r15, r10
imul r14, qword [r10 + rdi*8 + 8]
mov rax, qword [rsp + 8]
add rax, r14
jmp 0x140035fee
mov r8d, esi
mov rbx, qword [rsp]
cmp r8d, ebx
jl 0x1400362a8
jmp 0x1400364fb
mov eax, ebx
and eax, 0xfffffff8
mov edx, ebx
shr edx, 3
shl rdx, 5
xor r9d, r9d
movdqa xmm0, xmmword [0x140055320]
nop dword [rax]
movdqu xmm1, xmmword [rcx + r9]
movdqu xmm2, xmmword [rcx + r9 + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rcx + r9], xmm1
movdqu xmmword [rcx + r9 + 0x10], xmm2
add r9, 0x20
cmp rdx, r9
jne 0x140036020
cmp rax, rbx
je 0x14003605c
xor byte [rcx + rax*4], 0x38
inc rax
cmp rbx, rax
jne 0x140036050
movabs rax, 0x8040201008040201
test ebx, ebx
je 0x140036155
mov r9d, ebx
xor edx, edx
nop word cs:[rax + rax]
movsxd r10, dword [rcx + rdx*4]
bt rax, r10
jae 0x140036097
inc rdx
cmp r9, rdx
jne 0x140036080
jmp 0x140036155
movabs r11, 0x7f3f1f0f07030100
bt r11, r10
jae 0x140036155
xor r10d, r10d
cmp byte [r8 + 0x40], 1
adc r10d, 2
cmp r10d, edx
jbe 0x140036155
mov r11d, r9d
and r11d, 3
cmp bl, 4
jae 0x1400360d0
xor edx, edx
jmp 0x14003611f
and r9d, 0xfffffffc
xor edx, edx
lea r10, [0x140057e30]
nop dword [rax]
movsxd rsi, dword [rcx + rdx*4]
movzx esi, byte [rsi + r10]
mov dword [rcx + rdx*4], esi
movsxd rsi, dword [rcx + rdx*4 + 4]
movzx esi, byte [rsi + r10]
mov dword [rcx + rdx*4 + 4], esi
movsxd rsi, dword [rcx + rdx*4 + 8]
movzx esi, byte [rsi + r10]
mov dword [rcx + rdx*4 + 8], esi
movsxd rsi, dword [rcx + rdx*4 + 0xc]
movzx esi, byte [rsi + r10]
mov dword [rcx + rdx*4 + 0xc], esi
add rdx, 4
cmp r9, rdx
jne 0x1400360e0
test r11, r11
je 0x140036155
lea rdx, [rcx + rdx*4]
xor r9d, r9d
lea r10, [0x140057e30]
nop word cs:[rax + rax]
movsxd rsi, dword [rdx + r9*4]
movzx esi, byte [rsi + r10]
mov dword [rdx + r9*4], esi
inc r9
cmp r11, r9
jne 0x140036140
cmp byte [r8 + 0x40], 0
je 0x14003618c
movsxd rax, dword [rcx]
lea rdx, [0x140058370]
movzx eax, byte [rax + rdx]
movsxd rdx, dword [rcx + 4]
shl rax, 7
lea r8, [0x140057e70]
add r8, rax
movsx rax, word [r8 + rdx*2]
mov r8d, 2
jmp 0x14003629a
movsxd r11, dword [rcx + 4]
movsxd rdi, dword [rcx]
xor esi, esi
cmp r11d, edi
setg sil
movsxd r9, dword [rcx + 8]
xor r8d, r8d
cmp r9d, edi
setg r8b
xor edx, edx
cmp r9d, r11d
setg dl
add r8d, edx
neg r8d
bt rax, rdi
jb 0x1400361ee
lea rax, [0x140058370]
movzx eax, byte [rdi + rax]
imul eax, eax, 0xf42
sub r11d, esi
lea edx, [r11 + r11]
shl r11d, 6
sub r11d, edx
add r8d, r9d
add r8d, r11d
add r8d, eax
movsxd rax, r8d
jmp 0x140036294
bt rax, r11
jb 0x14003622e
lea rax, [0x1400583b0]
movzx eax, byte [rdi + rax]
imul eax, eax, 0x6c8
lea rdx, [0x1400583f0]
movzx edx, byte [r11 + rdx]
lea r10d, [rdx + rdx]
shl edx, 6
sub edx, r10d
add r9d, r8d
add r9d, eax
lea eax, [rdx + r9]
add eax, 0x5b8c
cdqe
jmp 0x140036294
lea rdx, [0x1400583b0]
movzx r10d, byte [rdi + rdx]
bt rax, r9
jb 0x140036270
imul eax, r10d, 0xc4
lea r8, [0x1400583f0]
movzx r8d, byte [r9 + r8]
add r8d, eax
movzx eax, byte [r11 + rdx]
sub eax, esi
lea edx, [rax + rax*8]
lea edx, [rdx + rdx*2]
add edx, eax
lea eax, [r8 + rdx]
add eax, 0x76ac
jmp 0x140036294
imul eax, r10d, 0x2a
movzx r10d, byte [r11 + rdx]
sub r10d, esi
lea r10d, [r10 + r10*2]
movzx edx, byte [r9 + rdx]
add r8d, edx
add r8d, eax
lea eax, [r8 + r10*2]
add eax, 0x79bc
mov r8d, 3
imul rax, qword [r15 + 8]
cmp r8d, ebx
jge 0x1400364fb
lea rdx, [rcx + 4]
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x10], r15
jmp 0x1400362e2
xor edi, edi
mov r15, qword [rsp + 0x10]
imul rdi, qword [r15 + rsi*8 + 8]
mov rax, qword [rsp + 8]
add rax, rdi
mov rbx, qword [rsp]
cmp r8d, ebx
jge 0x1400364fb
mov qword [rsp + 8], rax
mov esi, r8d
movzx edi, byte [r15 + rsi + 0x47]
lea r8, [rdi + rsi]
test edi, edi
je 0x1400362c0
lea ebx, [rsi + 1]
lea ebp, [rdi - 2]
lea r14d, [rsi + rdi]
xor r15d, r15d
mov r12, rsi
jmp 0x140036319
inc rbx
inc r15d
mov r12, r13
lea r13, [r12 + 1]
cmp r13, r8
jae 0x1400363b0
mov edx, r15d
not edx
add edx, edi
mov rax, rbx
test dl, 1
je 0x14003634c
mov eax, dword [rcx + r12*4]
mov edx, dword [rcx + rbx*4]
cmp eax, edx
jle 0x140036348
mov dword [rcx + r12*4], edx
mov dword [rcx + rbx*4], eax
lea rax, [rbx + 1]
cmp ebp, r15d
je 0x140036310
mov r10d, r14d
sub r10d, eax
mov rdx, qword [rsp + 0x18]
lea rdx, [rdx + rax*4]
xor r9d, r9d
jmp 0x140036379
add r9, 2
cmp r10d, r9d
je 0x140036310
mov eax, dword [rcx + r12*4]
mov r11d, dword [rdx + r9*4 - 4]
cmp eax, r11d
jle 0x140036394
mov dword [rcx + r12*4], r11d
mov dword [rdx + r9*4 - 4], eax
mov eax, dword [rcx + r12*4]
mov r11d, dword [rdx + r9*4]
cmp eax, r11d
jle 0x140036370
mov dword [rcx + r12*4], r11d
mov dword [rdx + r9*4], eax
jmp 0x140036370
test esi, esi
jle 0x1400364c0
mov ebx, 1
sub ebx, esi
mov r14d, esi
and r14d, 0xfffffff8
mov r15d, esi
shr r15d, 3
shl r15, 5
mov r12, rsi
xor edi, edi
jmp 0x14003640a
lea eax, [rbx + r12]
cdqe
sub ebp, r13d
movsxd rdx, ebp
shl rax, 9
lea r9, [0x140081810]
add rax, r9
add rdi, qword [rax + rdx*8]
inc r12
cmp r12, r8
jae 0x1400362c2
mov ebp, dword [rcx + r12*4]
cmp esi, 8
jae 0x140036420
xor edx, edx
xor r13d, r13d
jmp 0x1400364a0
movd xmm0, ebp
pshufd xmm2, xmm0, 0
pxor xmm0, xmm0
xor edx, edx
pxor xmm1, xmm1
nop word cs:[rax + rax]
movdqu xmm3, xmmword [rcx + rdx]
movdqu xmm4, xmmword [rcx + rdx + 0x10]
movdqa xmm5, xmm2
pcmpgtd xmm5, xmm3
psubd xmm0, xmm5
movdqa xmm3, xmm2
pcmpgtd xmm3, xmm4
psubd xmm1, xmm3
add rdx, 0x20
cmp r15, rdx
jne 0x140036440
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddd xmm0, xmm1
pshufd xmm1, xmm0, 0x55
paddd xmm1, xmm0
movd r13d, xmm1
mov rdx, r14
cmp r14, rsi
je 0x1400363e0
nop word cs:[rax + rax]
xor eax, eax
cmp ebp, dword [rcx + rdx*4]
setg al
add r13d, eax
inc rdx
cmp rsi, rdx
jne 0x1400364a0
jmp 0x1400363e0
mov edx, 1
mov r9, rsi
xor edi, edi
nop word [rax + rax]
movsxd rax, dword [rcx + r9*4]
movsxd rdx, edx
mov r10, rdx
shl r10, 9
lea r11, [0x140081810]
add r10, r11
add rdi, qword [r10 + rax*8]
inc r9
inc edx
cmp r9, r8
jb 0x1400364d0
jmp 0x1400362c2
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret