Function at 0x140078e40
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1e0]
mov eax, 0x2e0
call fcn.1400cc090
sub rsp, rax
mov rax, qword [0x140175060]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14, qword [rbp + 0x248]
mov rbx, qword [rbp + 0x258]
mov rsi, rcx
mov rcx, r14
mov dword [rsp + 0x34], r9d
mov qword [rsp + 0x38], r8
mov edi, edx
mov r13d, 1
call fcn.14005b2e0
movsxd r12, eax
test eax, eax
js 0x140078f02
lea rcx, [rbp + 0x60]
call fcn.140080e90
test rsi, rsi
jne 0x140078eb5
xor edi, edi
jmp 0x140078eda
cmp edi, 0xffffffff
jne 0x140078eda
xor edi, edi
mov rax, rsi
cmp byte [rsi], dil
je 0x140078ed6
cmp edi, 0x80000000
jae 0x140078ed6
inc rax
inc edi
cmp byte [rax], 0
jne 0x140078ec4
btr edi, 0x1f
lea rcx, [rbp + 0x60]
mov r9, r14
mov r8d, edi
mov rdx, rsi
mov qword [rsp + 0x20], 0
call fcn.140080fd0
test eax, eax
jne 0x140078f09
lea rcx, [rbp + 0x60]
call fcn.140080d40
xor eax, eax
jmp 0x14007915e
mov eax, dword [rbp + 0x250]
mov qword [rsp + 0x2d8], r15
test eax, eax
je 0x140079148
mov r15d, dword [rbp + 0x240]
nop word [rax + rax]
mov edi, eax
cmp eax, r12d
mov eax, r13d
cmovg edi, r12d
shr eax, 0x18
lea rdx, [rbp + 0x60]
mov byte [rsp + 0x30], al
mov eax, r13d
lea rcx, [rsp + 0x40]
shr eax, 0x10
mov byte [rsp + 0x33], r13b
mov byte [rsp + 0x31], al
mov eax, r13d
shr eax, 8
mov byte [rsp + 0x32], al
call fcn.140080d90
test eax, eax
je 0x140079196
movsxd r8, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140081250
test eax, eax
je 0x14007917f
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r8d, 4
call fcn.140081250
test eax, eax
je 0x14007917f
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.140080f20
test eax, eax
je 0x14007917f
lea rcx, [rsp + 0x40]
call fcn.140080d40
movsxd r14, edi
lea rdx, [rbp + 0x180]
mov r8, r14
mov rcx, rbx
call fcn.1400cdc90
mov esi, 1
cmp r15d, esi
jle 0x14007912c
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140080d90
test eax, eax
je 0x140079196
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x40]
mov r8, r12
call fcn.140081250
test eax, eax
je 0x14007917f
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.140080f20
test eax, eax
je 0x14007917f
lea rcx, [rsp + 0x40]
call fcn.140080d40
xor r9d, r9d
test edi, edi
jle 0x1400790f3
cmp edi, 0x20
jb 0x1400790f3
lea eax, [rdi - 1]
xor edx, edx
movsxd rcx, eax
lea rax, [rbp + 0x180]
add rax, rcx
lea r8, [rcx + rbx]
cmp rbx, rax
ja 0x140079093
lea rax, [rbp + 0x180]
cmp r8, rax
jae 0x1400790f3
mov eax, edi
and eax, 0x8000001f
jge 0x1400790a3
dec eax
or eax, 0xffffffe0
inc eax
mov r8d, edi
sub r8d, eax
nop dword [rax]
movsxd rax, edx
add r9, 0x20
movdqu xmm0, xmmword [rax + rbx]
movdqu xmm1, xmmword [rbp + rax + 0x180]
pxor xmm1, xmm0
movdqu xmmword [rax + rbx], xmm1
lea eax, [rdx + 0x10]
add edx, 0x20
movsxd rcx, eax
movdqu xmm1, xmmword [rbp + rcx + 0x180]
movdqu xmm0, xmmword [rcx + rbx]
pxor xmm1, xmm0
movdqu xmmword [rcx + rbx], xmm1
cmp edx, r8d
jl 0x1400790b0
cmp r9, r14
jge 0x140079121
lea r8, [rbp + 0x180]
mov rdx, r14
lea rax, [r9 + rbx]
sub r8, rbx
sub rdx, r9
nop dword [rax]
movzx ecx, byte [r8 + rax]
lea rax, [rax + 1]
xor byte [rax - 1], cl
dec rdx
jne 0x140079110
inc esi
cmp esi, r15d
jl 0x140079000
mov eax, dword [rbp + 0x250]
inc r13d
add rbx, r14
sub eax, edi
mov dword [rbp + 0x250], eax
test eax, eax
jne 0x140078f30
lea rcx, [rbp + 0x60]
call fcn.140080d40
mov eax, 1
mov r15, qword [rsp + 0x2d8]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400cbcb0
add rsp, 0x2e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp + 0x60]
call fcn.140080d40
lea rcx, [rsp + 0x40]
call fcn.140080d40
xor eax, eax
jmp 0x140079156
lea rcx, [rbp + 0x60]
call fcn.140080d40
xor eax, eax
jmp 0x140079156