Function at 0x140008aa0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov rax, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x90]
mov rdx, rdi
mov r8, rsi
mov r9, rax
call fcn.1401b41e0
cmp qword [rsp + 0x90], 0
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0x98]
je 0x140008dd5
mov rbp, qword [rsp + 0xb8]
mov r11, rsi
cmp rbp, rdx
je 0x140008fbf
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rsi
mov rax, qword [rsp + 0xf0]
lea r9, [rax - 1]
mov qword [rsp + 0x48], r9
mov r14, qword [rsp + 0xe8]
mov r9, qword [rsp + 0xb0]
mov qword [rsp + 0x68], r9
mov rbx, qword [rsp + 0xc8]
mov r10, qword [rsp + 0xa8]
mov r11, rax
mov r9, r10
mov qword [rsp + 0x88], r10
sub r11, r10
mov qword [rsp + 0x78], r11
lea r9, [r8 - 1]
mov qword [rsp + 0x70], r9
cmp r9, rax
setb byte [rsp + 0x37]
mov r9, rbp
sub r9, r8
mov qword [rsp + 0x60], r9
lea r13, [rcx + rbp]
lea rdi, [rcx + r8]
lea rsi, [r14 + r8]
lea r9, [r14 + r8]
dec r9
mov qword [rsp + 0x80], r9
lea r9, [r8 + rbp]
dec r9
mov qword [rsp + 0x50], r9
mov r11, rbp
mov r9, qword [rsp + 0x48]
add r9, rbp
cmp r9, rdx
jae 0x140008e2d
mov r10, qword [rsp + 0x88]
add r10, r11
mov qword [rsp + 0x58], r10
lea rbp, [r11 + rax]
cmp rbx, 0xffffffffffffffff
je 0x140008cc0
mov r12, r11
jmp 0x140008c06
xor ebx, ebx
mov r12, rbp
mov r9, qword [rsp + 0x48]
add r9, r12
cmp r9, rdx
jae 0x140008e2d
cmp r11, r12
jne 0x140008e2d
movzx r9d, byte [rcx + r9]
mov r10, qword [rsp + 0x68]
bt r10, r9
jae 0x140008bf0
cmp r8, rbx
mov r9, rbx
cmova r9, r8
mov r10, r9
nop dword [rax]
cmp r10, rax
jae 0x140008c60
lea r15, [r11 + r10]
cmp r15, rdx
jae 0x140008f81
lea r12, [r10 + 1]
movzx r15d, byte [r14 + r10]
cmp r15b, byte [r13 + r10]
mov r10, r12
je 0x140008c30
add r12, qword [rsp + 0x60]
xor ebx, ebx
jmp 0x140008bf5
mov r10, r8
nop word cs:[rax + rax]
cmp rbx, r10
jae 0x140008cb0
dec r10
cmp r10, rax
jae 0x140008dc3
lea r9, [r10 + r11]
cmp r9, rdx
jae 0x140008f5f
movzx r15d, byte [r14 + r10]
cmp r15b, byte [rcx + r9]
je 0x140008c70
mov rbx, qword [rsp + 0x78]
mov r12, qword [rsp + 0x58]
jmp 0x140008bf5
xor ebx, ebx
jmp 0x140008d97
mov r10, r11
jmp 0x140008ce1
mov r9, qword [rsp + 0x48]
add r9, r10
cmp r9, rdx
jae 0x140008e2d
cmp r11, r10
jne 0x140008e2d
movzx r9d, byte [rcx + r9]
mov r10, qword [rsp + 0x68]
bt r10, r9
mov r10, rbp
jae 0x140008cd0
xor r9d, r9d
mov rbx, r11
nop word cs:[rax + rax]
lea r10, [r8 + r9]
cmp r10, rax
jae 0x140008d40
lea r10, [r8 + rbx]
cmp r10, rdx
jae 0x140008f7e
movzx r15d, byte [rsi + r9]
lea r10, [rbx + 1]
inc r9
cmp r15b, byte [rdi + rbx]
mov rbx, r10
je 0x140008d10
jmp 0x140008cd0
test byte [rsp + 0x37], 1
je 0x140008db2
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x80]
mov rbx, r8
nop word [rax + rax]
sub rbx, 1
jb 0x140008d90
cmp r9, rdx
jae 0x140008f5f
movzx r12d, byte [r10]
dec r10
lea r15, [r9 - 1]
cmp r12b, byte [rcx + r9]
mov r9, r15
je 0x140008d60
mov r10, qword [rsp + 0x58]
jmp 0x140008cd0
mov rbx, 0xffffffffffffffff
add qword [rsp + 0x60], rax
add r13, rax
add qword [rsp + 0x50], rax
cmp rbp, rdx
jne 0x140008bab
jmp 0x140008eac
mov rbx, 0xffffffffffffffff
test r8, r8
je 0x140008d97
mov r10, qword [rsp + 0x70]
lea r8, [0x1401c48e8]
mov rcx, r10
mov rdx, rax
call fcn.1401c2310
cmp byte [rsp + 0xaa], 0
mov r11, rsi
jne 0x140008fbf
movzx eax, byte [rsp + 0xa8]
test r8, r8
je 0x140008e3c
cmp r8, rdx
jae 0x140008e69
movzx r9d, byte [rcx + r8]
cmp r9b, 0xc0
jl 0x140008fdf
mov edx, eax
xor dl, 1
test r9b, r9b
js 0x140008ebe
test al, al
je 0x140008fbc
mov eax, edx
nop
xor al, 1
test dl, dl
mov edx, eax
jne 0x140008e20
jmp 0x140008fbc
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
jmp 0x140008fbf
test rdx, rdx
je 0x140008e86
movzx r9d, byte [rcx + r8]
test r9b, r9b
js 0x140008f01
test al, al
je 0x140008fbc
nop word [rax + rax]
xor al, 1
jne 0x140008e60
jmp 0x140008fbc
jne 0x140008fdf
mov r11, rsi
test al, al
je 0x140008fbf
nop word [rax + rax]
xor al, 1
jne 0x140008e80
jmp 0x140008ea4
mov r11, rsi
test al, al
je 0x140008fbf
nop word cs:[rax + rax]
xor al, 1
jne 0x140008ea0
mov r11, rsi
jmp 0x140008fbf
mov rsi, qword [rsp + 0x40]
mov r11, rsi
mov rdi, qword [rsp + 0x38]
jmp 0x140008fbf
cmp r9b, 0xe0
jb 0x140008f6e
cmp r9b, 0xf0
jb 0x140008fa4
movzx r11d, byte [rcx + r8 + 1]
and r11d, 0x3f
movzx r10d, byte [rcx + r8 + 2]
and r10d, 0x3f
shl r11d, 0xc
shl r10d, 6
or r10d, r11d
test al, al
je 0x140008f3a
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x140008ef7
jmp 0x140008f3a
cmp r9b, 0xe0
jb 0x140008f9a
cmp r9b, 0xf0
jb 0x140008fb4
movzx edx, byte [rcx + r8 + 1]
and edx, 0x3f
movzx r10d, byte [rcx + r8 + 2]
and r10d, 0x3f
shl edx, 0xc
shl r10d, 6
or r10d, edx
test al, al
je 0x140008f3a
xor al, 1
jne 0x140008f36
movzx eax, r9b
and eax, 7
shl eax, 0x12
movzx ecx, byte [rcx + r8 + 3]
and ecx, 0x3f
or ecx, r10d
or ecx, eax
mov r11, rsi
cmp ecx, 0x110000
jne 0x140008fbc
jmp 0x140008fbf
lea r8, [0x1401c4900]
mov rcx, r9
call fcn.1401c2310
test al, al
je 0x140008fbc
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x140008f74
jmp 0x140008fbc
mov r9, r8
add r9, r11
cmp rdx, r9
cmova r9, rdx
lea r8, [0x1401c4918]
mov rcx, r9
call fcn.1401c2310
test al, al
je 0x140008fbc
xor al, 1
jne 0x140008f9e
jmp 0x140008fbc
test al, al
je 0x140008fbc
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x140008faa
jmp 0x140008fbc
test al, al
je 0x140008fbc
xor al, 1
jne 0x140008fb8
mov r11, r8
add rdi, r11
sub rsi, r11
mov rax, rdi
mov rdx, rsi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [0x1401c4930]
mov qword [rsp + 0x20], rax
mov r9, rdx
call fcn.1401c2980
int3