Function at 0x140058800
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], 0xfffffffffffffffe
mov qword [rbp + 0xb8], r8
cmp rdx, 0x15
jae 0x140058865
mov r13, rdx
mov r14, rcx
cmp r13, 1
jbe 0x140058850
mov r8d, 1
mov rcx, r14
mov rdx, r13
call fcn.140059790
nop
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov esi, r9d
mov qword [rbp + 0xd8], rdx
mov qword [rbp + 0xf0], rcx
mov byte [rbp + 0xf8], 1
movabs rbx, 0xffffffffffffffe
mov dil, 1
cmp byte [rbp + 0xf8], 0
sete al
test dil, dil
sete cl
or cl, al
mov byte [rbp + 0xc0], cl
mov r14, qword [rbp + 0xf0]
mov r15, qword [rbp + 0xd8]
test esi, esi
je 0x1400593b3
cmp byte [rbp + 0xf8], 0
je 0x140058c8c
mov rdx, r15
shr rdx, 2
lea rax, [rdx + rdx]
lea rcx, [rdx + rdx*2]
cmp r15, 0x31
jbe 0x140058910
lea r9, [rdx - 1]
mov r8, rdx
shl r8, 4
mov r11, r9
shl r11, 4
mov r10, qword [r14 + r8]
mov r8, qword [r14 + r11]
cmp r8, r10
jae 0x140058920
mov edi, 1
mov r11, r10
mov r12, r9
mov r9, rdx
mov r10, r8
jmp 0x140058928
xor r8d, r8d
mov r12, rax
jmp 0x140058a42
mov r11, r8
xor edi, edi
mov r12, rdx
inc rdx
mov r8, rdx
shl r8, 4
mov r13, qword [r14 + r8]
xor r8d, r8d
cmp r10, r13
cmovae rdx, r12
cmova r13, r10
setb r8b
cmp r11, r13
adc r8, rdi
cmp r11, r13
cmovb rdx, r9
lea r10, [rax - 1]
mov r9, rax
shl r9, 4
mov r11, r10
shl r11, 4
mov r9, qword [r14 + r9]
mov rdi, qword [r14 + r11]
mov ebx, esi
cmp rdi, r9
jae 0x140058990
inc r8
mov r11, r9
mov r13, r10
mov r10, rax
jmp 0x140058999
mov r11, rdi
mov r13, rax
mov rdi, r9
mov r12, rax
or r12, 1
mov r9, r12
shl r9, 4
mov rsi, qword [r14 + r9]
xor r9d, r9d
cmp rdi, rsi
cmovae r12, r13
cmova rsi, rdi
setb r9b
cmp r11, rsi
adc r9, r8
cmp r11, rsi
cmovb r12, r10
lea r10, [rcx - 1]
mov r8, rcx
shl r8, 4
mov r11, r10
shl r11, 4
mov r8, qword [r14 + r8]
mov rdi, qword [r14 + r11]
cmp rdi, r8
jae 0x140058a00
inc r9
mov r11, r8
mov r13, r10
mov r10, rcx
jmp 0x140058a09
mov r11, rdi
mov r13, rcx
mov rdi, r8
inc rcx
mov r8, rcx
shl r8, 4
mov rsi, qword [r14 + r8]
xor r8d, r8d
cmp rdi, rsi
cmovae rcx, r13
cmova rsi, rdi
setb r8b
cmp r11, rsi
adc r8, r9
cmp r11, rsi
cmovb rcx, r10
mov esi, ebx
movabs rbx, 0xffffffffffffffe
mov r9, r12
shl r9, 4
mov r10, rdx
shl r10, 4
mov rdi, qword [r14 + r9]
mov r9, qword [r14 + r10]
cmp r9, rdi
jae 0x140058a70
inc r8
mov r10, rdi
mov r11, rdx
jmp 0x140058a7c
mov r10, r9
mov r11, r12
mov r12, rdx
mov r9, rdi
mov rdx, rcx
shl rdx, 4
mov rdx, qword [r14 + rdx]
cmp r9, rdx
adc r8, 0
cmp r9, rdx
cmovb r11, rcx
cmova rdx, r9
cmp r10, rdx
jae 0x140058b60
mov ecx, 1
cmp r8, 0xb
jb 0x140058b66
mov rcx, r15
shr rcx, 1
mov r8, rcx
shl r8, 4
mov r10, r15
shl r10, 4
lea rdx, [r14 + r10]
sub rdx, r8
lea r9, [r14 + 0x10]
add r10, r14
add r10, 0xfffffffffffffff0
xor r11d, r11d
nop word [rax + rax]
mov r8, r11
movups xmm0, xmmword [r9 - 0x10]
movups xmm1, xmmword [r10]
movups xmmword [r9 - 0x10], xmm1
movups xmmword [r10], xmm0
xor r11, rbx
add r11, rcx
shl r11, 4
movups xmm0, xmmword [r9]
movups xmm1, xmmword [rdx + r11]
movups xmmword [r9], xmm1
movups xmmword [rdx + r11], xmm0
lea r11, [r8 + 2]
add r9, 0x20
add r10, 0xffffffffffffffe0
cmp rax, r11
jne 0x140058ae0
test r15b, 2
je 0x140058b47
sub rcx, r8
shl rcx, 4
shl r11, 4
movups xmm0, xmmword [r14 + r11]
movups xmm1, xmmword [rcx + rdx - 0x30]
movups xmmword [r14 + r11], xmm1
movups xmmword [rcx + rdx - 0x30], xmm0
not r12
add r12, r15
mov al, 1
jmp 0x140058b6c
mov r12, r11
mov rcx, r8
test rcx, rcx
sete al
test al, al
sete al
or al, byte [rbp + 0xc0]
cmp al, 1
jne 0x140058c9e
cmp qword [rbp + 0xb8], 0
je 0x140058cc0
cmp r12, r15
jae 0x1400593c3
mov rax, r12
shl rax, 4
mov rcx, qword [r14 + rax]
mov rdx, qword [rbp + 0xb8]
cmp rcx, qword [rdx]
jb 0x140058cd0
add rax, r14
movups xmm0, xmmword [r14]
movaps xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movaps xmm0, xmmword [rbp + 0x20]
movups xmmword [rax], xmm0
lea rax, [r14 + 0x10]
movups xmm0, xmmword [r14]
mov rdx, qword [r14]
mov r8, r15
xor ecx, ecx
lea r9, [r8 - 1]
cmp rcx, r9
jae 0x140058c04
mov r10, rcx
shl r10, 4
add r10, rax
nop dword [rax]
cmp qword [r10], rdx
jb 0x140058c04
inc rcx
add r10, 0x10
cmp r9, rcx
jne 0x140058bf0
mov rcx, r9
mov r9, r8
shl r9, 4
add r9, r14
nop
dec r8
cmp rcx, r8
jae 0x140058c60
lea r10, [r9 - 0x10]
cmp qword [r9 - 0x10], rdx
mov r9, r10
jb 0x140058c10
mov r9, rcx
shl r9, 4
movups xmm1, xmmword [rax + r9]
movaps xmmword [rbp + 0x20], xmm1
movups xmm1, xmmword [r10]
movups xmmword [rax + r9], xmm1
movaps xmm1, xmmword [rbp + 0x20]
movups xmmword [r10], xmm1
inc rcx
lea r9, [r8 - 1]
cmp rcx, r9
jb 0x140058be3
jmp 0x140058c04
inc rcx
movups xmmword [r14], xmm0
mov r13, r15
sub r13, rcx
jb 0x1400593fc
shl rcx, 4
add r14, rcx
mov r15, r13
cmp r13, 0x15
jae 0x1400588b0
jmp 0x140058839
mov rcx, r14
mov rdx, r15
call fcn.140164f20
dec esi
jmp 0x1400588c5
mov rcx, r14
mov rdx, r15
call fcn.1401650c0
test al, al
je 0x140058b7f
jmp 0x140058850
mov r15, qword [rbp + 0xd8]
jmp 0x140058cd7
mov qword [rbp + 0xf0], r14
cmp r12, r15
mov r8, qword [rbp + 0xf0]
jae 0x1400593d7
shl r12, 4
movups xmm0, xmmword [r8]
movaps xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [r8 + r12]
movups xmmword [r8], xmm0
movaps xmm0, xmmword [rbp + 0x20]
movups xmmword [r8 + r12], xmm0
lea r9, [r8 + 0x10]
lea rdx, [r15 - 1]
mov r10, qword [r8]
movups xmm0, xmmword [r8]
movaps xmmword [rbp + 0xa0], xmm0
mov rax, r9
xor ecx, ecx
cmp r10, qword [rax]
jae 0x140058d34
inc rcx
add rax, 0x10
cmp rdx, rcx
jne 0x140058d20
mov rcx, rdx
cmp rcx, rdx
mov rax, rdx
cmovb rax, rcx
mov r11, r15
shl r11, 4
add r11, r8
add r11, 0xfffffffffffffff0
mov r12, r15
nop
dec r12
cmp rcx, r12
jae 0x140058d70
lea r8, [r11 - 0x10]
cmp r10, qword [r11]
mov r11, r8
jae 0x140058d50
jmp 0x140058d73
mov r12, rax
cmp rcx, r12
ja 0x14005941e
mov qword [rbp + 0xd8], r15
mov dword [rbp + 0xd4], esi
cmp r12, rdx
ja 0x14005940d
mov qword [rbp + 0xc8], rcx
shl rcx, 4
add rcx, r9
mov qword [rbp + 0xb0], r12
shl r12, 4
add r12, r9
mov ebx, 0x80
xor r11d, r11d
xor r15d, r15d
xor esi, esi
xor edx, edx
mov eax, 0x80
mov qword [rbp + 0xc0], rcx
mov r9, rcx
jmp 0x140058e20
shl r8, 4
movups xmmword [r12 + r8], xmm0
inc rdx
inc r15
cmp rdx, rsi
mov ecx, 0
cmove rcx, rax
shl rcx, 4
add r9, rcx
mov rbx, qword [rbp + 0xf8]
mov rcx, rbx
neg rcx
cmp r15, r11
mov r8d, 0
cmovne rcx, r8
shl rcx, 4
add r12, rcx
cmp r14, 0x1010
jb 0x1400590e0
mov r14, r12
sub r14, r9
cmp r14, 0x1010
jae 0x140058e77
mov r8, r14
shr r8, 4
cmp rdx, rsi
mov rcx, rbx
setb bl
cmp r15, r11
setb dil
or dil, bl
lea rbx, [r8 - 0x80]
test dil, dil
mov r13, r8
cmovne r13, rbx
cmp rdx, rsi
cmovb rcx, rbx
mov rbx, rcx
cmovae rax, r13
test dil, dil
jne 0x140058e77
mov rax, r14
shr rax, 5
sub r8, rax
mov rbx, r8
mov qword [rbp + 0xf8], rbx
cmp rdx, rsi
je 0x140058f30
cmp r15, r11
je 0x140058f60
mov r8, rsi
sub r8, rdx
mov rdi, r11
sub rdi, r15
cmp r8, rdi
cmovb rdi, r8
test rdi, rdi
je 0x140058ddf
movzx ecx, byte [rdx]
shl rcx, 4
movups xmm0, xmmword [r9 + rcx]
movzx r13d, byte [r15]
mov r8, r13
not r8
mov rbx, r8
shl rbx, 4
movups xmm1, xmmword [r12 + rbx]
movups xmmword [r9 + rcx], xmm1
cmp rdi, 1
je 0x140058dd0
dec rdi
movzx ecx, byte [rdx + 1]
inc rdx
shl rcx, 4
movzx r8d, r13b
not r8
shl r8, 4
movups xmm1, xmmword [r9 + rcx]
movups xmmword [r12 + r8], xmm1
movzx r13d, byte [r15 + 1]
inc r15
mov r8, r13
not r8
mov rbx, r8
shl rbx, 4
movups xmm1, xmmword [r12 + rbx]
movups xmmword [r9 + rcx], xmm1
dec rdi
jne 0x140058ee0
jmp 0x140058dd0
test rax, rax
je 0x140058f84
cmp rax, 4
lea rcx, [rbp - 0x60]
jae 0x140058f9c
mov rsi, rcx
mov rdx, rcx
mov rdi, r9
xor r13d, r13d
mov r8d, eax
and r8d, 3
jne 0x140059010
jmp 0x140058e87
mov r15, qword [rbp + 0xf8]
test r15, r15
je 0x140058f90
cmp r15, 4
jae 0x14005902f
lea r11, [rbp + 0x20]
xor edi, edi
mov r8, r12
jmp 0x14005908e
lea rdx, [rbp - 0x60]
mov rsi, rdx
jmp 0x140058e87
lea r15, [rbp + 0x20]
mov r11, r15
jmp 0x140058e90
mov rdx, rax
and rdx, 0xfffffffffffffffc
mov rsi, rcx
mov rdi, r9
xor r13d, r13d
nop dword [rax]
mov r8d, r13d
mov byte [rsi], r13b
cmp r10, qword [rdi]
sbb rsi, 0xffffffffffffffff
lea ebx, [r8 + 1]
mov byte [rsi], bl
cmp r10, qword [rdi + 0x10]
sbb rsi, 0xffffffffffffffff
lea ebx, [r8 + 2]
cmp r10, qword [rdi + 0x20]
mov byte [rsi], bl
sbb rsi, 0xffffffffffffffff
add r13, 4
add r8d, 3
mov byte [rsi], r8b
cmp r10, qword [rdi + 0x30]
sbb rsi, 0xffffffffffffffff
add rdi, 0x40
cmp rdx, r13
jne 0x140058fb0
lea rdx, [rbp - 0x60]
mov r8d, eax
and r8d, 3
je 0x140058e87
nop word cs:[rax + rax]
mov byte [rsi], r13b
cmp r10, qword [rdi]
sbb rsi, 0xffffffffffffffff
add rdi, 0x10
inc r13b
dec r8
jne 0x140059010
lea rdx, [rbp - 0x60]
jmp 0x140058e87
and r15, 0xfffffffffffffffc
lea r11, [rbp + 0x20]
xor ebx, ebx
mov r13, r12
xor edi, edi
nop
mov byte [r11], bl
xor r8d, r8d
cmp qword [r13 - 0x10], r10
seta r8b
lea ecx, [rbx + 1]
mov byte [r11 + r8], cl
cmp r10, qword [r13 - 0x20]
adc r11, r8
lea ecx, [rbx + 2]
xor r8d, r8d
cmp qword [r13 - 0x30], r10
seta r8b
mov byte [r11], cl
add rdi, 4
lea ecx, [rbx + 3]
mov byte [r11 + r8], cl
cmp r10, qword [r13 - 0x40]
adc r11, r8
lea r8, [r13 - 0x40]
mov rbx, rdi
mov r13, r8
cmp r15, rdi
jne 0x140059040
mov rbx, qword [rbp + 0xf8]
lea r15, [rbp + 0x20]
and ebx, 3
je 0x140058e90
shl rbx, 4
xor r15d, r15d
nop dword [rax]
mov byte [r11], dil
cmp r10, qword [r8 + r15 - 0x10]
adc r11, 0
inc dil
add r15, 0xfffffffffffffff0
mov r13, rbx
add r13, r15
jne 0x1400590b0
lea r15, [rbp + 0x20]
jmp 0x140058e90
cmp rdx, rsi
jae 0x140059100
mov eax, esi
sub eax, edx
test al, 1
mov r8, qword [rbp + 0xc0]
jne 0x140059126
mov r10, rsi
jmp 0x14005915e
cmp r15, r11
mov r8, qword [rbp + 0xc0]
jae 0x1400591f0
mov eax, r11d
sub eax, r15d
test al, 1
jne 0x1400591ff
mov rdx, r11
jmp 0x140059236
lea r10, [rsi - 1]
movzx eax, byte [rsi - 1]
shl rax, 4
lea r13, [r12 - 0x10]
movups xmm0, xmmword [r9 + rax]
movaps xmmword [rbp + 0xe0], xmm0
movups xmm0, xmmword [r12 - 0x10]
movups xmmword [r9 + rax], xmm0
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [r12 - 0x10], xmm0
mov r12, r13
mov rcx, qword [rbp + 0xc8]
mov rax, rdx
not rax
add rax, rsi
je 0x1400592c0
nop word cs:[rax + rax]
movzx eax, byte [r10 - 1]
shl rax, 4
movups xmm0, xmmword [r9 + rax]
movaps xmmword [rbp + 0xe0], xmm0
movups xmm0, xmmword [r12 - 0x10]
movups xmmword [r9 + rax], xmm0
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [r12 - 0x10], xmm0
movzx eax, byte [r10 - 2]
add r10, 0xfffffffffffffffe
shl rax, 4
lea r13, [r12 - 0x20]
movups xmm0, xmmword [r9 + rax]
movaps xmmword [rbp + 0xe0], xmm0
movups xmm0, xmmword [r12 - 0x20]
movups xmmword [r9 + rax], xmm0
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [r12 - 0x20], xmm0
mov r12, r13
cmp rdx, r10
jb 0x140059180
jmp 0x1400592c0
mov r13, r9
mov rcx, qword [rbp + 0xc8]
jmp 0x1400592c0
lea rdx, [r11 - 1]
movzx eax, byte [r11 - 1]
not rax
shl rax, 4
movups xmm0, xmmword [r9]
movaps xmmword [rbp + 0xe0], xmm0
movups xmm0, xmmword [r12 + rax]
movups xmmword [r9], xmm0
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [r12 + rax], xmm0
add r9, 0x10
mov r13, r9
mov rax, r15
not rax
add rax, r11
mov rcx, qword [rbp + 0xc8]
je 0x1400592c0
nop dword [rax + rax]
movzx eax, byte [rdx - 1]
not rax
shl rax, 4
movups xmm0, xmmword [r9]
movaps xmmword [rbp + 0xe0], xmm0
movups xmm0, xmmword [r12 + rax]
movups xmmword [r9], xmm0
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [r12 + rax], xmm0
movzx eax, byte [rdx - 2]
add rdx, 0xfffffffffffffffe
not rax
shl rax, 4
movups xmm0, xmmword [r9 + 0x10]
movaps xmmword [rbp + 0xe0], xmm0
movups xmm0, xmmword [r12 + rax]
movups xmmword [r9 + 0x10], xmm0
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [r12 + rax], xmm0
add r9, 0x20
cmp r15, rdx
jb 0x140059250
mov r13, r9
nop dword [rax + rax]
sub r13, r8
shr r13, 4
add r13, rcx
movaps xmm0, xmmword [rbp + 0xa0]
mov rsi, qword [rbp + 0xf0]
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0xd8]
mov r14, rdx
sub r14, r13
jbe 0x1400593eb
cmp rcx, qword [rbp + 0xb0]
setae dil
mov rax, r13
shl rax, 4
lea r15, [rsi + rax]
movups xmm0, xmmword [rsi]
movaps xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rsi + rax]
movups xmmword [rsi], xmm0
movaps xmm0, xmmword [rbp + 0x20]
movups xmmword [rsi + rax], xmm0
cmp r13, r14
mov rcx, r14
cmovb rcx, r13
shr rdx, 3
cmp rcx, rdx
setae byte [rbp + 0xf8]
lea rbx, [rsi + rax]
add rbx, 0x10
dec r14
cmp r13, r14
jae 0x140059370
mov rcx, rsi
mov rdx, r13
mov r8, qword [rbp + 0xb8]
mov esi, dword [rbp + 0xd4]
mov r9d, esi
call fcn.140058800
mov qword [rbp + 0xb8], r15
mov r13, r14
mov r14, rbx
jmp 0x14005938c
mov rcx, rbx
mov rdx, r14
mov r8, r15
mov ebx, dword [rbp + 0xd4]
mov r9d, ebx
call fcn.140058800
mov r14, rsi
mov esi, ebx
mov qword [rbp + 0xd8], r13
mov qword [rbp + 0xf0], r14
cmp r13, 0x15
movabs rbx, 0xffffffffffffffe
jae 0x14005888a
jmp 0x140058839
mov rcx, r14
mov rdx, r15
call fcn.140164d10
jmp 0x140058850
lea r8, [0x14017c7f0]
mov rcx, r12
mov rdx, r15
call fcn.140164430
ud2
lea r8, [0x14017c898]
mov rcx, r12
mov rdx, r15
call fcn.140164430
ud2
lea r8, [0x14017c8c8]
mov rcx, r13
call fcn.140164430
ud2
lea r8, [0x14017c808]
mov rdx, r15
call fcn.1401643b0
ud2
lea r8, [0x14017c8b0]
mov rcx, r12
call fcn.1401644b0
jmp 0x14005942d
lea r8, [0x14017c8b0]
mov rdx, r12
call fcn.140164780
ud2