Function at 0x140229a10
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.1402807a0
sub rsp, rax
mov rax, qword [0x1403b9868]
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.1401e3270
movsxd r12, eax
test eax, eax
js 0x140229ad2
lea rcx, [rbp + 0x60]
call fcn.1401e7290
test rsi, rsi
jne 0x140229a85
xor edi, edi
jmp 0x140229aaa
cmp edi, 0xffffffff
jne 0x140229aaa
xor edi, edi
mov rax, rsi
cmp byte [rsi], dil
je 0x140229aa6
cmp edi, 0x80000000
jae 0x140229aa6
inc rax
inc edi
cmp byte [rax], 0
jne 0x140229a94
btr edi, 0x1f
lea rcx, [rbp + 0x60]
mov r9, r14
mov r8d, edi
mov rdx, rsi
mov qword [rsp + 0x20], 0
call fcn.1401e73d0
test eax, eax
jne 0x140229ad9
lea rcx, [rbp + 0x60]
call fcn.1401e7150
xor eax, eax
jmp 0x140229d2e
mov eax, dword [rbp + 0x250]
mov qword [rsp + 0x2d8], r15
test eax, eax
je 0x140229d18
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.1401e7190
test eax, eax
je 0x140229d66
movsxd r8, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.1401e7650
test eax, eax
je 0x140229d4f
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r8d, 4
call fcn.1401e7650
test eax, eax
je 0x140229d4f
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.1401e7320
test eax, eax
je 0x140229d4f
lea rcx, [rsp + 0x40]
call fcn.1401e7150
movsxd r14, edi
lea rdx, [rbp + 0x180]
mov r8, r14
mov rcx, rbx
call fcn.140282ac0
mov esi, 1
cmp r15d, esi
jle 0x140229cfc
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1401e7190
test eax, eax
je 0x140229d66
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x40]
mov r8, r12
call fcn.1401e7650
test eax, eax
je 0x140229d4f
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.1401e7320
test eax, eax
je 0x140229d4f
lea rcx, [rsp + 0x40]
call fcn.1401e7150
xor r9d, r9d
test edi, edi
jle 0x140229cc3
cmp edi, 0x20
jb 0x140229cc3
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 0x140229c63
lea rax, [rbp + 0x180]
cmp r8, rax
jae 0x140229cc3
mov eax, edi
and eax, 0x8000001f
jge 0x140229c73
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 0x140229c80
cmp r9, r14
jge 0x140229cf1
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 0x140229ce0
inc esi
cmp esi, r15d
jl 0x140229bd0
mov eax, dword [rbp + 0x250]
inc r13d
add rbx, r14
sub eax, edi
mov dword [rbp + 0x250], eax
test eax, eax
jne 0x140229b00
lea rcx, [rbp + 0x60]
call fcn.1401e7150
mov eax, 1
mov r15, qword [rsp + 0x2d8]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1402806f0
add rsp, 0x2e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp + 0x60]
call fcn.1401e7150
lea rcx, [rsp + 0x40]
call fcn.1401e7150
xor eax, eax
jmp 0x140229d26
lea rcx, [rbp + 0x60]
call fcn.1401e7150
xor eax, eax
jmp 0x140229d26