Function at 0x1401ba430
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov ebx, r8d
mov edi, edx
mov esi, ecx
mov dword [rbp - 0xc], edx
test r9b, r9b
je 0x1401ba46a
mov rax, qword [0x14058f568]
mov qword [0x14058f570], rax
mov eax, 0xfa14a9ac
nop
mov ecx, dword [0x14058f5b8]
mov edx, 0xc9659f27
sub edx, ecx
imul edx, ecx
test dl, 1
jne 0x1401ba497
mov r12, qword [0x140530858]
mov ecx, dword [0x14058f5bc]
cmp ecx, 0x5a
jle 0x1401ba4bb
mov rcx, qword [0x140530858]
mov ecx, dword [0x14058f5b8]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x140530bc0]
add ecx, eax
cmp edx, ecx
jne 0x1401ba470
jmp 0x1401ba485
movsxd r14, dword [r12]
mov r15d, dword [0x1404507cc]
test edi, edi
je 0x1401ba970
cmp qword [0x14058f050], 0
jne 0x1401ba55c
mov eax, dword [0x140530aa8]
mov ecx, dword [0x140530bc0]
add eax, ecx
add eax, 0xfa13fc5d
cdqe
add rax, qword [0x140530ab8]
mov ecx, 0xe8
mov edx, 0xbfed001a
mov r8d, 0xca04b2bd
call qword [case.0x140114b5b.0]
lea rcx, [0x140449ea8]
mov qword [rax], rcx
mov qword [rax + 0x28], 0
mov qword [rax + 0x30], 0xf
mov byte [rax + 0x18], 0
lea rcx, [0x140449f08]
mov qword [rax + 0x10], rcx
mov byte [rax + 8], 0
movzx ecx, byte [0x140530bc4]
add cl, 2
mov byte [rax + 9], cl
mov word [rax + 0xa], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x38], xmm0
mov qword [0x14058f050], rax
mov rax, qword [0x14058f050]
mov rax, qword [rax + 0x38]
mov esi, esi
add rsi, rax
test bl, bl
je 0x1401ba5d7
mov ecx, 0xffff52b1
mov eax, dword [0x140530a90]
add eax, ecx
cdqe
add rax, qword [0x140530ad8]
lea rdi, [rbp - 8]
mov rcx, rdi
mov edx, 0xa2c3dba8
mov r8d, 0xa2c3dba8
call qword [case.0x140114b5b.0]
lea rdx, [0x14058f568]
lea r9, [rbp - 0xc]
mov rcx, rdi
mov r8, rsi
call fcn.1402456f0
mov eax, 0xffff52b1
add eax, dword [0x140530a9c]
cdqe
add rax, qword [0x140530ad0]
lea rcx, [rbp - 8]
call qword [case.0x140114b5b.0]
jmp 0x1401ba970
test rax, rax
sete cl
movzx edx, byte [0x14058f5c8]
xor eax, eax
test dl, cl
jne 0x1401ba637
xor dl, cl
jne 0x1401ba637
mov ecx, edi
add rcx, rsi
xor eax, eax
mov rdx, rsi
nop dword [rax + rax]
mov r8d, dword [rdx + 4]
test r8, r8
je 0x1401ba637
lea r9, [r8 - 8]
shr r9, 1
mov r10, r9
not r10
mov r11, r9
xor r11, r10
and r11, rax
xor r10, r10
xor r10, r11
and r10, r9
xor r9, rax
lea rax, [r9 + r10*2]
add rdx, r8
cmp rdx, rcx
jb 0x1401ba600
mov dword [rbp - 0x10], r15d
mov rcx, qword [0x14058f5c0]
add rcx, qword [0x14058f570]
mov rdx, qword [0x14058f568]
movabs r8, 0x77125edd3f9c0859
sub r8, rdx
neg rdx
mov r9, rcx
xor r9, rdx
and rdx, rcx
lea rdx, [r9 + rdx*2]
sar rdx, 3
add rdx, rax
movabs rax, 0x88eda122c063f7a7
xor rax, r8
movabs rcx, 0x8eda122c063f7a7
and rcx, r8
lea rax, [rax + rcx*2]
add rax, qword [0x14058f578]
sar rax, 3
cmp rax, rdx
jae 0x1401ba6dd
movabs rax, 0xa6024cc3620574a9
add rax, qword [0x140530bb8]
cmp rdx, rax
ja 0x1401ba988
mov eax, 0xffff52b1
add eax, dword [0x140530aa4]
cdqe
add rax, qword [0x140530ac0]
lea rcx, [0x14058f568]
call qword [case.0x140114b5b.0]
mov qword [rbp - 0x18], r14
mov eax, dword [rbp - 0xc]
mov qword [rbp - 8], 0
mov qword [rbp - 0x20], rax
test rax, rax
je 0x1401ba8fd
add qword [rbp - 0x18], r12
add qword [rbp - 0x20], rsi
lea rdi, [0x14058f568]
lea rbx, [rbp - 8]
jmp 0x1401ba720
mov eax, dword [rsi + 4]
add rsi, rax
cmp rsi, qword [rbp - 0x20]
jae 0x1401ba8fd
mov eax, dword [rsi + 4]
test rax, rax
je 0x1401ba8fd
movabs rcx, 0x1fffffff8
add rax, rcx
shr rax, 1
test eax, eax
jle 0x1401ba710
mov ecx, dword [0x14058f590]
mov edx, ecx
xor edx, 1
mov r8d, ecx
not r8d
mov r9d, ecx
and r9d, 1
lea r12d, [rdx + r9*2]
mov dword [0x14058f590], r12d
xor ecx, r12d
not r12d
and r12d, r8d
or r12d, ecx
xor r12d, 0xffffffff
je 0x1401ba780
xor r14d, r14d
jmp 0x1401ba7d0
xor ecx, ecx
mov r14d, 0
mov r10d, dword [rbp - 0x10]
test r10d, r10d
mov r9, qword [rbp - 0x18]
jle 0x1401ba7d0
xor edx, edx
nop word [rax + rax]
movsxd rcx, ecx
movzx r8d, word [r9 + rcx]
mov r14d, edx
xor r14d, edx
xor r14d, r8d
and r14d, r8d
xor r14d, edx
mov edx, dword [0x140530bc0]
add ecx, edx
add ecx, 0xfa14a9ae
mov edx, r14d
cmp ecx, r10d
jl 0x1401ba7a0
nop dword [rax]
movsxd r15, eax
dec r15
xor r13d, r13d
nop dword [rax]
mov edx, dword [rsi]
mov qword [rbp - 8], rdx
mov eax, dword [0x140530bb8]
movzx ecx, al
xor ecx, 0xae
mov r8d, eax
xor r8d, 0x51
and r8d, eax
lea ecx, [rcx + r8*2]
shl rdx, cl
movzx eax, word [rsi + r13*2 + 8]
add rax, rdx
mov qword [rbp - 8], rax
mov rdx, qword [0x14058f570]
cmp rdx, qword [0x14058f578]
je 0x1401ba840
mov qword [rdx], rax
add qword [0x14058f570], 8
cmp r15d, r13d
jne 0x1401ba8f5
jmp 0x1401ba710
mov eax, dword [0x140530a94]
mov ecx, 0xffff52b1
add eax, ecx
cdqe
add rax, qword [0x140530ab0]
mov rcx, rdi
mov r8, rbx
call qword [case.0x140114b5b.0]
movzx ecx, word [0x1404507d4]
cmp r12d, 1
mov r8d, 0
sbb r8d, r8d
sub ecx, r14d
mov eax, dword [0x14058f5b8]
nop
mov rax, qword [0x14058f5c0]
mov edx, dword [0x14058f5b8]
mov r9d, dword [0x140530bc0]
not r9d
add r9d, edx
imul r9d, edx
test r9b, 1
jne 0x1401ba880
mov edx, ecx
not edx
movsx r8d, r8w
mov r9d, r8d
not r9d
mov r10d, r9d
xor r10d, edx
mov r11d, r8d
and r11d, ecx
or r11d, r10d
not r11d
xor ecx, r8d
and edx, r9d
or edx, ecx
not edx
or edx, r11d
mov ecx, edx
not ecx
xor edx, r8d
and ecx, r9d
or ecx, edx
not ecx
movzx ecx, cx
add rcx, rax
mov qword [0x14058f5c0], rcx
cmp r15d, r13d
je 0x1401ba710
inc r13
jmp 0x1401ba7e0
mov eax, dword [0x140530aac]
mov ecx, dword [0x140530bc0]
mov edx, ecx
xor edx, 0xfa1556fb
mov r8d, ecx
and r8d, 0x7a1556fb
lea edx, [rdx + r8*2]
sub eax, edx
add eax, ecx
add eax, 0xfa14a9ac
cdqe
add rax, qword [0x140530ac8]
lea rcx, [0x14058f568]
call qword [case.0x140114b5b.0]
mov rdx, qword [0x14058f570]
mov rcx, qword [0x14058f568]
mov r8, rdx
sub r8, rcx
mov eax, 0xffff52b1
add eax, dword [0x140530a98]
sar r8, 3
cdqe
add rax, qword [0x140530ae8]
call qword [case.0x140114b5b.0]
lea rax, [0x14058f568]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [0x140530aa0]
mov ecx, dword [0x140530bc0]
mov edx, ecx
xor edx, 0xfa14a9ac
and ecx, 0x7a14a9ac
add ecx, ecx
mov r8d, edx
xor r8d, ecx
and ecx, edx
lea ecx, [r8 + rcx*2]
add eax, ecx
add eax, 0xffff52b1
cdqe
add rax, qword [0x140530ae0]
call qword [case.0x140114b5b.0]
int3