Function at 0x140061b00
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, r9
mov r12, r8
mov qword [rsp + 0x40], rdx
mov r14, rcx
mov rsi, qword [rsp + 0xb0]
cmp byte [rsi + 0x28], 0
jne 0x140061b93
mov rcx, qword [rsi + 0x10]
mov r15, qword [rsi + 0x20]
cmp rcx, qword [rsi + 0x18]
jne 0x140061b7f
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x140061b8d
mov rax, rdi
shr rax, 0x3d
jne 0x140061b8d
lea rdx, [rdi*8]
mov rcx, qword [rsi + 8]
call fcn.1400936f0
test rax, rax
je 0x140061b8d
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], rdi
mov rcx, qword [rsi + 0x10]
jmp 0x140061b83
mov rax, qword [rsi + 8]
mov qword [rax + rcx*8], r15
inc qword [rsi + 0x10]
jmp 0x140061b93
mov word [rsi + 0x28], 0x101
mov rcx, rsi
call fcn.140055620
xor ebp, ebp
test rax, rax
je 0x140062424
mov r15, rax
lea r9, [rbx + 0x18]
mov r8, qword [r14 + 8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rdx, r12
call fcn.140059540
test eax, eax
je 0x140062424
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, r15
mov r8, rbx
mov r9, rbx
call fcn.140058b60
test eax, eax
je 0x140062424
mov r8, qword [r14 + 0x10]
movsxd rax, dword [r15 + 8]
movsxd rdx, dword [r8 + 8]
cmp eax, edx
jge 0x140061c12
mov r9, qword [r8]
mov r11, rdx
sub r11, rax
cmp r11, 4
jae 0x140061c16
xor ecx, ecx
mov r10, rax
jmp 0x140061c80
xor ecx, ecx
jmp 0x140061c8c
mov rdi, r11
and rdi, 0xfffffffffffffffc
lea r10, [rdi + rax]
lea rcx, [r9 + rax*8]
add rcx, 0x10
pxor xmm0, xmm0
xor r12d, r12d
pxor xmm1, xmm1
nop word cs:[rax + rax]
movdqu xmm2, xmmword [rcx + r12*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [rcx + r12*8]
por xmm1, xmm2
add r12, 4
cmp rdi, r12
jne 0x140061c40
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq rcx, xmm0
cmp r11, rdi
je 0x140061c8c
nop word cs:[rax + rax]
or rcx, qword [r9 + r10*8]
inc r10
cmp rdx, r10
jne 0x140061c80
cmp edx, eax
jge 0x140061d1c
mov r9, qword [r15]
mov r11, rax
sub r11, rdx
cmp r11, 4
jae 0x140061ca8
mov r10, rdx
jmp 0x140061d10
mov r12, r11
and r12, 0xfffffffffffffffc
lea r10, [r12 + rdx]
movq xmm1, rcx
lea rcx, [r9 + rdx*8]
add rcx, 0x10
pxor xmm0, xmm0
xor edi, edi
nop word cs:[rax + rax]
movdqu xmm2, xmmword [rcx + rdi*8 - 0x10]
por xmm1, xmm2
movdqu xmm2, xmmword [rcx + rdi*8]
por xmm0, xmm2
add rdi, 4
cmp r12, rdi
jne 0x140061cd0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rcx, xmm1
cmp r11, r12
je 0x140061d1c
nop word cs:[rax + rax]
or rcx, qword [r9 + r10*8]
inc r10
cmp rax, r10
jne 0x140061d10
cmp eax, edx
cmovl edx, eax
test edx, edx
jle 0x140061dc3
mov r9, qword [r15]
mov r10, qword [r8]
mov r11d, edx
cmp edx, 4
jae 0x140061d3b
xor edx, edx
jmp 0x140061db0
mov edx, r11d
and edx, 0xfffffffc
movq xmm0, rcx
lea rcx, [r11*8]
and rcx, 0xffffffffffffffe0
pxor xmm1, xmm1
xor edi, edi
nop dword [rax + rax]
movdqu xmm2, xmmword [r9 + rdi]
movdqu xmm3, xmmword [r9 + rdi + 0x10]
movdqu xmm4, xmmword [r10 + rdi]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [r10 + rdi + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add rdi, 0x20
cmp rcx, rdi
jne 0x140061d60
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq rcx, xmm0
cmp rdx, r11
je 0x140061dc3
nop word [rax + rax]
mov rdi, qword [r10 + rdx*8]
xor rdi, qword [r9 + rdx*8]
or rcx, rdi
inc rdx
cmp r11, rdx
jne 0x140061db0
mov edx, dword [r15 + 0x10]
mov r11d, dword [r8 + 0x10]
xor r11d, edx
mov r8, qword [r14 + 0x18]
movsxd r9, dword [r8 + 8]
cmp eax, r9d
mov qword [rsp + 0x38], rbx
jge 0x140061df7
mov r12, qword [r8]
mov rbp, r9
sub rbp, rax
cmp rbp, 4
jae 0x140061dfc
xor r10d, r10d
mov r13, rax
jmp 0x140061e60
xor r10d, r10d
jmp 0x140061e6c
mov rdi, rbp
and rdi, 0xfffffffffffffffc
lea r13, [rdi + rax]
lea r10, [r12 + rax*8]
add r10, 0x10
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
nop dword [rax]
movdqu xmm2, xmmword [r10 + rbx*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r10 + rbx*8]
por xmm1, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x140061e20
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp rbp, rdi
mov rbx, qword [rsp + 0x38]
je 0x140061e6c
nop word [rax + rax]
or r10, qword [r12 + r13*8]
inc r13
cmp r9, r13
jne 0x140061e60
movsxd r11, r11d
cmp r9d, eax
jge 0x140061efc
mov r12, qword [r15]
mov rdi, rax
sub rdi, r9
cmp rdi, 4
jae 0x140061e8c
mov r13, r9
jmp 0x140061ef0
mov rbp, rdi
and rbp, 0xfffffffffffffffc
lea r13, [r9 + rbp]
movq xmm1, r10
lea r10, [r12 + r9*8]
add r10, 0x10
pxor xmm0, xmm0
xor ebx, ebx
nop word [rax + rax]
movdqu xmm2, xmmword [r10 + rbx*8 - 0x10]
por xmm1, xmm2
movdqu xmm2, xmmword [r10 + rbx*8]
por xmm0, xmm2
add rbx, 4
cmp rbp, rbx
jne 0x140061eb0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r10, xmm1
cmp rdi, rbp
mov rbx, qword [rsp + 0x38]
je 0x140061efc
nop word [rax + rax]
or r10, qword [r12 + r13*8]
inc r13
cmp rax, r13
jne 0x140061ef0
or rcx, r11
cmp eax, r9d
cmovl r9d, eax
test r9d, r9d
jle 0x140061fb3
mov rax, qword [r15]
mov r11, qword [r8]
mov r12d, r9d
cmp r9d, 4
jae 0x140061f23
xor r9d, r9d
jmp 0x140061fa0
mov r9d, r12d
and r9d, 0xfffffffc
movq xmm0, r10
lea r10, [r12*8]
and r10, 0xffffffffffffffe0
pxor xmm1, xmm1
xor edi, edi
nop word cs:[rax + rax]
movdqu xmm2, xmmword [rax + rdi]
movdqu xmm3, xmmword [rax + rdi + 0x10]
movdqu xmm4, xmmword [r11 + rdi]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [r11 + rdi + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add rdi, 0x20
cmp r10, rdi
jne 0x140061f50
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp r9, r12
je 0x140061fb3
nop dword [rax + rax]
mov rdi, qword [r11 + r9*8]
xor rdi, qword [rax + r9*8]
or r10, rdi
inc r9
cmp r12, r9
jne 0x140061fa0
test rcx, rcx
sete al
xor edx, dword [r8 + 0x10]
movsxd rcx, edx
or rcx, r10
sete cl
or cl, al
movzx r12d, cl
neg r12
cmp dword [r14 + 0x20], 2
jl 0x140062413
mov ebp, 1
nop
cmp dword [r14 + 0x24], ebp
jne 0x140061ff0
cmp r12, 0xffffffffffffffff
jne 0x140062413
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, r15
mov r8, r15
mov r9, rbx
call fcn.140058b60
test eax, eax
je 0x140062456
mov rdx, qword [r14 + 0x18]
movsxd rax, dword [r15 + 8]
movsxd rcx, dword [rdx + 8]
cmp eax, ecx
jge 0x140062040
mov r9, qword [rdx]
mov r11, rcx
sub r11, rax
cmp r11, 4
jae 0x140062050
mov r10, rax
xor r8d, r8d
jmp 0x1400620b0
xor r8d, r8d
jmp 0x1400620bc
mov rdi, r11
and rdi, 0xfffffffffffffffc
lea r10, [rdi + rax]
lea r8, [r9 + rax*8]
add r8, 0x10
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
nop dword [rax]
movdqu xmm2, xmmword [r8 + rbx*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r8 + rbx*8]
por xmm1, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x140062070
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp r11, rdi
mov rbx, qword [rsp + 0x38]
je 0x1400620bc
nop word [rax + rax]
or r8, qword [r9 + r10*8]
inc r10
cmp rcx, r10
jne 0x1400620b0
cmp ecx, eax
jge 0x14006214c
mov r9, qword [r15]
mov r11, rax
sub r11, rcx
cmp r11, 4
jae 0x1400620e0
mov r10, rcx
jmp 0x140062140
mov rdi, r11
and rdi, 0xfffffffffffffffc
lea r10, [rdi + rcx]
movq xmm1, r8
lea r8, [r9 + rcx*8]
add r8, 0x10
pxor xmm0, xmm0
xor ebx, ebx
nop
movdqu xmm2, xmmword [r8 + rbx*8 - 0x10]
por xmm1, xmm2
movdqu xmm2, xmmword [r8 + rbx*8]
por xmm0, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x140062100
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r8, xmm1
cmp r11, rdi
mov rbx, qword [rsp + 0x38]
je 0x14006214c
nop word [rax + rax]
or r8, qword [r9 + r10*8]
inc r10
cmp rax, r10
jne 0x140062140
cmp eax, ecx
cmovl ecx, eax
test ecx, ecx
jle 0x1400621f3
mov r9, qword [r15]
mov r10, qword [rdx]
mov r11d, ecx
cmp ecx, 4
jae 0x140062170
xor ecx, ecx
jmp 0x1400621e0
mov ecx, r11d
and ecx, 0xfffffffc
movq xmm0, r8
lea r8, [r11*8]
and r8, 0xffffffffffffffe0
pxor xmm1, xmm1
xor edi, edi
nop dword [rax]
movdqu xmm2, xmmword [r9 + rdi]
movdqu xmm3, xmmword [r9 + rdi + 0x10]
movdqu xmm4, xmmword [r10 + rdi]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [r10 + rdi + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add rdi, 0x20
cmp r8, rdi
jne 0x140062190
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp rcx, r11
je 0x1400621f3
nop word [rax + rax]
mov rdi, qword [r10 + rcx*8]
xor rdi, qword [r9 + rcx*8]
or r8, rdi
inc rcx
cmp r11, rcx
jne 0x1400621e0
mov ecx, dword [r15 + 0x10]
mov edx, dword [rdx + 0x10]
xor edx, ecx
movsxd rdx, edx
or rdx, r8
mov rdx, 0xffffffffffffffff
cmove r12, rdx
mov rdx, qword [r14 + 0x10]
movsxd r8, dword [rdx + 8]
cmp eax, r8d
jge 0x140062240
mov r10, qword [rdx]
mov r13, r8
sub r13, rax
cmp r13, 4
jae 0x140062250
mov r11, rax
xor r9d, r9d
jmp 0x1400622b0
xor r9d, r9d
jmp 0x1400622bc
mov rdi, r13
and rdi, 0xfffffffffffffffc
lea r11, [rdi + rax]
lea r9, [r10 + rax*8]
add r9, 0x10
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
nop dword [rax]
movdqu xmm2, xmmword [r9 + rbx*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r9 + rbx*8]
por xmm1, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x140062270
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r9, xmm0
cmp r13, rdi
mov rbx, qword [rsp + 0x38]
je 0x1400622bc
nop word [rax + rax]
or r9, qword [r10 + r11*8]
inc r11
cmp r8, r11
jne 0x1400622b0
cmp r8d, eax
jge 0x14006234c
mov r10, qword [r15]
mov r13, rax
sub r13, r8
cmp r13, 4
jae 0x1400622e0
mov r11, r8
jmp 0x140062340
mov rdi, r13
and rdi, 0xfffffffffffffffc
lea r11, [rdi + r8]
movq xmm1, r9
lea r9, [r10 + r8*8]
add r9, 0x10
pxor xmm0, xmm0
xor ebx, ebx
nop
movdqu xmm2, xmmword [r9 + rbx*8 - 0x10]
por xmm1, xmm2
movdqu xmm2, xmmword [r9 + rbx*8]
por xmm0, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x140062300
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r9, xmm1
cmp r13, rdi
mov rbx, qword [rsp + 0x38]
je 0x14006234c
nop word [rax + rax]
or r9, qword [r10 + r11*8]
inc r11
cmp rax, r11
jne 0x140062340
cmp eax, r8d
cmovl r8d, eax
test r8d, r8d
jle 0x1400623f3
mov rax, qword [r15]
mov r10, qword [rdx]
mov r11d, r8d
cmp r8d, 4
jae 0x140062370
xor r8d, r8d
jmp 0x1400623e0
mov r8d, r11d
and r8d, 0xfffffffc
movq xmm0, r9
lea r9, [r11*8]
and r9, 0xffffffffffffffe0
pxor xmm1, xmm1
xor edi, edi
nop
movdqu xmm2, xmmword [rax + rdi]
movdqu xmm3, xmmword [rax + rdi + 0x10]
movdqu xmm4, xmmword [r10 + rdi]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [r10 + rdi + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add rdi, 0x20
cmp r9, rdi
jne 0x140062390
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r9, xmm0
cmp r8, r11
je 0x1400623f3
nop dword [rax + rax]
mov rdi, qword [r10 + r8*8]
xor rdi, qword [rax + r8*8]
or r9, rdi
inc r8
cmp r11, r8
jne 0x1400623e0
xor ecx, dword [rdx + 0x10]
movsxd rax, ecx
mov ecx, r12d
and ecx, 1
or rcx, r9
or rcx, rax
je 0x140062413
inc ebp
cmp ebp, dword [r14 + 0x20]
jl 0x140061fe0
and r12d, 1
mov rax, qword [rsp + 0x40]
mov dword [rax], r12d
mov ebp, 1
cmp byte [rsi + 0x28], 0
jne 0x140062443
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
lea rdx, [rcx - 1]
mov qword [rsi + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [rsi + 0x20], rax
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
cmp byte [rsi + 0x28], 0
jne 0x140062443
jmp 0x14006242a