Function at 0x14022d020
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x30], xmm6
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp - 0x30], rcx
test rdx, rdx
je 0x14022d05e
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], 0
mov qword [rbp - 0x28], rdx
mov eax, dword [0x14055cc20]
lea ecx, [rax - 1]
jmp 0x14022d08f
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 7
mov word [rbp], 0
mov eax, dword [0x14055cc20]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
jne 0x14022d070
movabs rsi, 0x2b00f2efdc2a593e
mov rax, qword [0x1405192b8]
add rax, rsi
mov qword [rbp + 0x10], rax
mov eax, 0xffff8ccc
add eax, dword [0x1405192c0]
mov qword [rbp + 0x18], 7
mov word [rbp], ax
mov eax, dword [0x14055cc24]
cmp eax, 0x3c
jge 0x14022d070
xor r13d, r13d
lea r15, [0x140432010]
mov r14, rbp
xorps xmm6, xmm6
jmp 0x14022d132
mov rdx, qword [0x1405192b8]
movabs r8, 0x2b00f2efdc2a5967
add rdx, r8
mov r8, rax
xor r8, rdx
and rdx, rax
lea r9, [r8 + rdx*2]
mov r8, rcx
mov eax, dword [0x1405192b4]
lea ecx, [rax + 0x136d98de]
lea edx, [rax + 0x136d98df]
add eax, 0xbbea4e11
mov dword [rsp + 0x20], eax
call fcn.140239b40
test bl, bl
je 0x14022d534
inc r13d
cmp r13d, 3
ja 0x14022d534
mov eax, r13d
mov r12, qword [r15 + rax*8]
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.140233710
mov edi, eax
nop word cs:[rax + rax]
mov eax, dword [0x14055cc24]
cmp eax, 0x35
jg 0x14022d17c
mov eax, dword [0x14055cc20]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
je 0x14022d1a0
mov eax, dword [0x14055cc20]
mov ecx, dword [0x1405192b4]
neg ecx
add ecx, eax
inc ecx
imul ecx, eax
test cl, 1
jne 0x14022d160
jmp 0x14022d16b
test edi, edi
je 0x14022d12f
mov ecx, edi
add rcx, rcx
call fcn.1403e4d24
mov rcx, r12
mov rdx, rax
mov r8d, edi
mov qword [rbp + 0x20], rax
call fcn.140233710
mov rbx, qword [rbp + 0x20]
test eax, eax
je 0x14022d2c6
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], 0
mov rcx, rbx
mov edx, 0x4edc7c3c
mov r8d, 0x134e51e8
call fcn.1400a9b60
mov rdi, rax
cmp rax, 7
jbe 0x14022d210
lea rcx, [rbp - 0x58]
mov rdx, rdi
mov r9, rbx
call fcn.14008d210
jmp 0x14022d24c
mov qword [rbp - 0x48], rdi
movzx ecx, byte [0x1405192b8]
add cl, 0x3f
mov r8, rdi
shl r8, cl
lea rcx, [rbp - 0x58]
mov rdx, rbx
call fcn.14040cc90
movzx eax, word [0x1405192c0]
mov ecx, eax
xor ecx, 0xffff8ccc
and eax, 0xccc
lea eax, [rcx + rax*2]
mov word [rbp + rdi*2 - 0x58], ax
mov rcx, qword [rbp + 0x20]
call fcn.1400a7e90
mov r12, qword [rbp - 0x48]
mov rax, qword [0x1405192b8]
add rax, rsi
mov bl, 1
cmp r12, rax
je 0x14022d4ab
cmp qword [rbp - 0x40], 8
lea r9, [rbp - 0x58]
jb 0x14022d27d
mov r9, qword [rbp - 0x58]
mov rax, qword [rbp + 0x18]
cmp rax, r12
jae 0x14022d29d
mov eax, dword [0x14055cc20]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x14022d3e0
jmp 0x14022d2e0
lea r8, [r12 + r12]
mov rdi, r14
cmp rax, 8
jb 0x14022d2ae
mov rdi, qword [rbp]
mov qword [rbp + 0x10], r12
mov rcx, rdi
mov rdx, r9
call fcn.14040cc90
mov word [rdi + r12*2], 0
jmp 0x14022d318
mov rcx, rbx
call fcn.1400a7e90
jmp 0x14022d12f
mov eax, dword [0x14055cc20]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
mov eax, dword [0x1405192b4]
mov edx, eax
xor edx, 0x136d98de
and eax, 0x136d98de
lea eax, [rdx + rax*2]
cmp ecx, eax
jne 0x14022d3e0
mov rcx, r14
mov rdx, r12
call fcn.14008d210
mov eax, dword [0x1405192b4]
mov ecx, 0x136d98df
add eax, ecx
cmp r13d, eax
jbe 0x14022d340
mov rcx, r14
lea rdx, [0x140432030]
lea r8, [0x140432038]
call fcn.140243b90
movaps xmmword [rbp - 0x20], xmm6
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x38]
mov rdx, r14
lea r8, [rbp - 0x20]
call fcn.140226d40
mov eax, dword [0x1405192b4]
mov ecx, eax
xor ecx, 0x136d98df
and eax, 0x136d98df
lea eax, [rcx + rax*2]
cmp dword [rbp - 0x38], eax
jbe 0x14022d490
mov eax, dword [0x14055cc20]
mov ecx, dword [0x1405192b4]
neg ecx
add ecx, eax
inc ecx
imul ecx, eax
test cl, 1
mov rax, qword [rbp - 0x10]
mov ecx, dword [0x14055cc24]
cmp ecx, 0x42
jg 0x14022d393
mov rcx, rax
not rcx
mov rdx, rax
xor rdx, 1
and rcx, 0xfffffffffffffffe
or rcx, rdx
not rcx
test rcx, rcx
je 0x14022d3d2
cmp rax, 1
jne 0x14022d490
cmp dword [rbp - 0x20], 0
jne 0x14022d490
cmp dword [0x1405192b4], 0xec926722
jne 0x14022d420
jmp 0x14022d400
mov eax, dword [0x1405192b4]
mov ecx, eax
xor ecx, 0x136d98de
and eax, 0x136d98de
add eax, eax
add eax, ecx
jne 0x14022d3e0
jmp 0x14022d2e0
movaps xmmword [rbp - 0x20], xmm6
mov qword [rbp - 0x10], 0
mov eax, dword [0x14055cc20]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x14022d43f
nop dword [rax]
movaps xmmword [rbp - 0x20], xmm6
mov qword [rbp - 0x10], 0
mov eax, dword [0x14055cc20]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x14022d420
jmp 0x14022d400
lea rcx, [rbp - 0x38]
mov rdx, r14
lea r8, [rbp - 0x20]
call fcn.140226d40
cmp dword [rbp - 0x38], 3
jne 0x14022d490
mov rax, qword [rbp - 0x10]
mov rcx, qword [0x1405192b8]
movabs rdx, 0x2b00f2efdc2a593f
add rcx, rdx
test rax, rcx
je 0x14022d487
mov rcx, qword [0x1405192b8]
add rcx, rdx
cmp rax, rcx
jne 0x14022d490
cmp dword [rbp - 0x20], 0
jne 0x14022d490
xor ebx, ebx
jmp 0x14022d4ab
cmp qword [rbp + 0x18], 8
mov rax, r14
jb 0x14022d49e
mov rax, qword [rbp]
mov qword [rbp + 0x10], 0
mov word [rax], 0
mov rax, qword [rbp - 0x40]
cmp rax, 8
jb 0x14022d510
movzx ecx, byte [0x1405192b8]
add cl, 0x3f
shl rax, cl
mov r8, qword [rbp - 0x58]
lea r9, [rax + 2]
cmp r9, 0x1000
jb 0x14022d107
mov rcx, qword [r8 - 8]
add r8, 0xfffffffffffffff8
sub r8, rcx
mov rdx, qword [0x1405192b8]
movabs r9, 0x2b00f2efdc2a595e
add rdx, r9
cmp r8, rdx
jb 0x14022d0e3
jmp 0x14022d56c
lea rax, [fcn.14022d020]
add eax, eax
add eax, 0x1280
mov ecx, eax
not ecx
test ecx, eax
mov eax, dword [0x14055cc24]
cmp eax, 0x59
jg 0x14022d524
jmp 0x14022d127
cmp qword [rbp + 0x10], 0
jne 0x14022d814
xor ecx, ecx
xor edx, edx
call fcn.14022d9b0
mov edi, eax
test eax, eax
je 0x14022d571
mov ecx, edi
add rcx, rcx
call fcn.1403e4d24
mov ecx, dword [0x14055cc24]
cmp ecx, 0x3c
jg 0x14022d740
jmp 0x14022d725
call fcn.1403c4adc
call fcn.1402069b0
mov ebx, eax
mov eax, dword [0x14055cc24]
cmp eax, 0x5b
jg 0x14022d58e
mov eax, dword [0x14055cc24]
cmp eax, 9
jle 0x14022d59b
mov eax, dword [0x14055cc24]
cmp eax, 0x4d
jge 0x14022d578
jmp 0x14022d583
test ebx, ebx
jne 0x14022d626
cmp qword [rbp - 0x28], 0
je 0x14022d5bc
xorps xmm0, xmm0
mov rax, qword [rbp - 0x28]
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov rax, qword [rbp - 0x30]
mov qword [rax + 0x10], 0
mov ecx, 0xffff8ccc
add ecx, dword [0x1405192c0]
mov qword [rax + 0x18], 7
mov word [rax], cx
mov rsi, qword [rbp + 0x18]
cmp rsi, 8
jb 0x14022d827
mov rdi, qword [rbp]
lea r9, [rsi + rsi]
add r9, 2
cmp r9, 0x1000
jb 0x14022d700
add rsi, rsi
mov eax, dword [0x14055cc24]
mov ecx, 0x136d993e
add ecx, dword [0x1405192b4]
cmp eax, ecx
jl 0x14022d6a5
jmp 0x14022d6b1
mov eax, dword [0x14055cc20]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
mov eax, 0x136d98de
add eax, dword [0x1405192b4]
cmp ecx, eax
je 0x14022d664
mov ecx, 1
mov edx, 1
mov r8d, 0xe3b5a088
call fcn.140238e00
mov eax, dword [0x14055cc24]
cmp eax, 0x28
jge 0x14022d644
mov r8d, dword [0x1405192b4]
mov eax, r8d
xor eax, 0x136d98df
mov ecx, r8d
and ecx, 0x136d98df
lea ecx, [rax + rcx*2]
lea edx, [r8 + 0x136d98df]
add r8d, 0xf7233966
call fcn.140238e00
mov ecx, ebx
mov rdx, qword [rbp - 0x28]
mov r8, rax
call fcn.1402578c0
jmp 0x14022d5bc
cmp dword [0x1405192b4], 0xec926722
je 0x14022d6e5
mov r14d, 0x136d98f3
lea rbx, [0x14023d0e0]
mov r15b, 1
mov ecx, dword [0x1405192b4]
add ecx, r14d
call fcn.1403c4b54
mov qword [0x14055cc10], rax
mov rcx, rbx
call fcn.1403e5350
test r15b, r15b
je 0x14022d6c1
jmp 0x14022d6a5
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x14022d720
add rsi, 0x29
mov r9, rsi
mov rdi, rax
mov dword [rsp + 0x20], 0xa87cb533
xor ecx, ecx
mov edx, 1
mov r8, rdi
call fcn.140239b40
mov rax, qword [rbp - 0x30]
jmp 0x14022d827
call fcn.1403c4adc
mov edx, dword [0x14055cc20]
lea ecx, [rdx - 1]
imul ecx, edx
test cl, 1
je 0x14022d753
nop word cs:[rax + rax]
mov edx, dword [0x14055cc20]
lea ecx, [rdx + 1]
imul ecx, edx
test cl, 1
jne 0x14022d740
jmp 0x14022d725
mov qword [rbp + 0x20], rax
mov rcx, rax
mov edx, edi
call fcn.14022d9b0
nop word cs:[rax + rax]
mov ecx, dword [0x14055cc24]
cmp ecx, 0x4c
jle 0x14022d787
cmp dword [0x1405192b4], 0xec926722
jne 0x14022d770
test eax, eax
mov rsi, qword [rbp + 0x20]
je 0x14022d83f
mov rcx, rsi
mov edx, 0x4edc7c3c
mov r8d, 0x134e51e8
call fcn.1400a9b60
mov rdi, rax
mov rax, qword [rbp + 0x18]
cmp rax, rdi
jae 0x14022d7c2
mov rcx, rbp
mov rdx, rdi
mov r9, rsi
call fcn.14008d210
jmp 0x14022d7f5
mov r8, rdi
add r8, rdi
cmp rax, 8
jb 0x14022d7d4
mov rbx, qword [rbp]
jmp 0x14022d7d7
mov rbx, rbp
mov qword [rbp + 0x10], rdi
mov rcx, rbx
mov rdx, rsi
call fcn.14040cc90
mov eax, 0xffff8ccc
add eax, dword [0x1405192c0]
mov word [rbx + rdi*2], ax
lea rdx, [0x140432030]
lea r8, [0x140432038]
mov rcx, rbp
call fcn.140243b90
mov rcx, qword [rbp + 0x20]
call fcn.1400a7e90
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
mov rax, qword [rbp - 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
movaps xmm6, xmmword [rbp + 0x30]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rsi
call fcn.1400a7e90
jmp 0x14022d571