Function at 0x140127290
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.14015efe0
cmp qword [rsp + 0x90], 0
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0x98]
je 0x1401275c7
mov rbp, qword [rsp + 0xb8]
mov r15, rsi
cmp rbp, rdx
je 0x1401277bf
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rsi
mov rax, qword [rsp + 0xf0]
lea r9, [rax - 1]
mov qword [rsp + 0x60], r9
mov rbx, qword [rsp + 0xe8]
mov r9, qword [rsp + 0xb0]
mov qword [rsp + 0x68], r9
mov r12, 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 + 0x58], r9
lea r13, [rcx + rbp]
lea rdi, [rcx + r8]
lea rsi, [rbx + r8]
lea r9, [rbx + r8]
dec r9
mov qword [rsp + 0x80], r9
lea r9, [r8 + rbp]
dec r9
mov qword [rsp + 0x48], r9
mov r15, rbp
lea r9, [rax + rbp]
dec r9
cmp r9, rdx
jae 0x14012762d
lea rbp, [r15 + rax]
mov r10, qword [rsp + 0x88]
add r10, r15
mov qword [rsp + 0x50], r10
cmp r12, 0xffffffffffffffff
je 0x1401274b0
mov r14, r15
jmp 0x1401273f7
xor r12d, r12d
mov r14, rbp
mov r9, qword [rsp + 0x60]
add r9, r14
cmp r9, rdx
jae 0x14012762d
cmp r15, r14
jne 0x14012762d
movzx r9d, byte [rcx + r9]
mov r10, qword [rsp + 0x68]
bt r10, r9
jae 0x1401273e0
cmp r8, r12
mov r9, r12
cmova r9, r8
mov r10, r9
nop dword [rax]
cmp r10, rax
jae 0x140127450
lea r11, [r15 + r10]
cmp r11, rdx
jae 0x14012777f
lea r14, [r10 + 1]
movzx r11d, byte [rbx + r10]
cmp r11b, byte [r13 + r10]
mov r10, r14
je 0x140127420
add r14, qword [rsp + 0x58]
xor r12d, r12d
jmp 0x1401273e6
mov r10, r8
nop word cs:[rax + rax]
cmp r12, r10
jae 0x1401274a0
dec r10
cmp r10, rax
jae 0x1401275b3
lea r9, [r10 + r15]
cmp r9, rdx
jae 0x140127763
movzx r11d, byte [rbx + r10]
cmp r11b, byte [rcx + r9]
je 0x140127460
mov r12, qword [rsp + 0x78]
mov r14, qword [rsp + 0x50]
jmp 0x1401273e6
xor r12d, r12d
jmp 0x140127587
mov r10, r15
jmp 0x1401274d1
mov r9, qword [rsp + 0x60]
add r9, r10
cmp r9, rdx
jae 0x14012762d
cmp r15, r10
jne 0x14012762d
movzx r9d, byte [rcx + r9]
mov r10, qword [rsp + 0x68]
bt r10, r9
mov r10, rbp
jae 0x1401274c0
xor r9d, r9d
mov r12, r15
nop word cs:[rax + rax]
lea r10, [r8 + r9]
cmp r10, rax
jae 0x140127530
lea r10, [r8 + r12]
cmp r10, rdx
jae 0x14012777c
movzx r11d, byte [rsi + r9]
lea r10, [r12 + 1]
inc r9
cmp r11b, byte [rdi + r12]
mov r12, r10
je 0x140127500
jmp 0x1401274c0
test byte [rsp + 0x37], 1
je 0x1401275a2
mov r9, qword [rsp + 0x48]
mov r10, qword [rsp + 0x80]
mov r12, r8
nop word [rax + rax]
sub r12, 1
jb 0x140127580
cmp r9, rdx
jae 0x140127763
movzx r14d, byte [r10]
dec r10
lea r11, [r9 - 1]
cmp r14b, byte [rcx + r9]
mov r9, r11
je 0x140127550
mov r10, qword [rsp + 0x50]
jmp 0x1401274c0
mov r12, 0xffffffffffffffff
add qword [rsp + 0x58], rax
add r13, rax
add qword [rsp + 0x48], rax
cmp rbp, rdx
jne 0x14012739b
jmp 0x1401276ac
mov r12, 0xffffffffffffffff
test r8, r8
je 0x140127587
mov r10, qword [rsp + 0x70]
lea r8, [0x140237d80]
mov rcx, r10
mov rdx, rax
call fcn.1401d8880
ud2
cmp byte [rsp + 0xaa], 0
mov r15, rsi
jne 0x1401277bf
movzx eax, byte [rsp + 0xa8]
test r8, r8
je 0x14012763c
cmp rdx, r8
jbe 0x140127669
movzx r9d, byte [rcx + r8]
cmp r9b, 0xc0
jl 0x1401277df
mov edx, eax
xor dl, 1
test r9b, r9b
js 0x1401276be
test al, al
je 0x1401277bc
mov eax, edx
nop word cs:[rax + rax]
xor al, 1
test dl, dl
mov edx, eax
jne 0x140127620
jmp 0x1401277bc
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
jmp 0x1401277bf
test rdx, rdx
je 0x140127686
movzx r9d, byte [rcx + r8]
test r9b, r9b
js 0x140127701
test al, al
je 0x1401277bc
nop word [rax + rax]
xor al, 1
jne 0x140127660
jmp 0x1401277bc
jne 0x1401277df
mov r15, rsi
test al, al
je 0x1401277bf
nop word [rax + rax]
xor al, 1
jne 0x140127680
jmp 0x1401276a4
mov r15, rsi
test al, al
je 0x1401277bf
nop word cs:[rax + rax]
xor al, 1
jne 0x1401276a0
mov r15, rsi
jmp 0x1401277bf
mov rsi, qword [rsp + 0x40]
mov r15, rsi
mov rdi, qword [rsp + 0x38]
jmp 0x1401277bf
cmp r9b, 0xe0
jb 0x14012776c
cmp r9b, 0xf0
jb 0x1401277a4
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 0x14012773e
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x1401276f7
jmp 0x14012773e
cmp r9b, 0xe0
jb 0x14012779a
cmp r9b, 0xf0
jb 0x1401277b4
and r9b, 0x1f
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 0x14012773e
xor al, 1
jne 0x14012773a
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 r15, rsi
cmp ecx, 0x110000
jne 0x1401277bc
jmp 0x1401277bf
lea r8, [0x140237d98]
jmp 0x140127790
test al, al
je 0x1401277bc
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x140127772
jmp 0x1401277bc
mov r9, r8
add r9, r15
cmp rdx, r9
cmova r9, rdx
lea r8, [0x140237d68]
mov rcx, r9
call fcn.1401d8880
ud2
test al, al
je 0x1401277bc
xor al, 1
jne 0x14012779e
jmp 0x1401277bc
test al, al
je 0x1401277bc
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x1401277aa
jmp 0x1401277bc
test al, al
je 0x1401277bc
xor al, 1
jne 0x1401277b8
mov r15, r8
add rdi, r15
sub rsi, r15
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, [0x140237db0]
mov qword [rsp + 0x20], rax
mov r9, rdx
call fcn.1401d8ea0
ud2