Function at 0x14021b070
Capabilities:
Encode data using xor

Disassembly:
push rsi
test ecx, ecx
je 0x14021b127
mov eax, dword [0x1404b04d4]
mov ecx, eax
xor ecx, 0x136d98de
and eax, 0x136d98de
lea eax, [rcx + rax*2]
cmp edx, eax
jne 0x14021b149
movzx eax, byte [0x1404ae61e]
cmp al, 0xa7
je 0x14021b2f9
mov cl, 0x4e
mov dl, 1
jmp 0x14021b0b8
cmp al, 0xa7
je 0x14021b2f9
mov al, 0x8a
lock cmpxchg byte [0x1404ae61e], cl
je 0x14021b2b5
mov r8d, dword [0x1404ef658]
mov r9d, dword [0x1404b04d4]
lea r10d, [r9 + r8]
dec r10d
imul r10d, r8d
and r10d, 1
mov r8d, r9d
xor r8d, 0x136d98de
and r9d, 0x136d98de
lea r8d, [r8 + r9*2]
cmp r10d, r8d
jne 0x14021b110
nop
test dl, dl
jne 0x14021b0b0
nop word cs:[rax + rax]
mov r8d, dword [0x1404ef658]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
jne 0x14021b110
jmp 0x14021b100
mov eax, 0x136d98de
add eax, dword [0x1404b04d4]
cmp edx, eax
jne 0x14021b28b
xor eax, eax
test al, al
je 0x14021b31c
jmp 0x14021b32e
movzx eax, byte [0x1404ae73f]
cmp al, 0x50
je 0x14021b267
xor ecx, ecx
mov dl, 0x26
mov r8b, 1
jmp 0x14021b178
cmp al, 0x50
je 0x14021b267
test cl, cl
jne 0x14021b1e0
nop dword [rax]
mov al, 0x53
lock cmpxchg byte [0x1404ae73f], dl
sete r9b
mov r10d, dword [0x1404ef65c]
cmp r10d, 0x1b
jge 0x14021b1e0
test r9b, r9b
jne 0x14021b200
mov r9d, dword [0x1404ef65c]
cmp r9d, 0xc
jg 0x14021b1b1
test cl, cl
je 0x14021b170
mov r9d, dword [0x1404ef658]
mov r10d, dword [0x1404b04d4]
neg r10d
add r10d, r9d
inc r10d
imul r10d, r9d
test r10b, 1
jne 0x14021b1a0
jmp 0x14021b1ad
mov al, 0x53
lock cmpxchg byte [0x1404ae73f], dl
test r8b, r8b
je 0x14021b1e0
jmp 0x14021b180
mov eax, dword [0x1404ef658]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
je 0x14021b21c
mov eax, dword [0x1404ef65c]
cmp eax, 0x2f
jge 0x14021b200
mov eax, dword [0x1404ef65c]
cmp eax, 0x32
jg 0x14021b211
xor edx, edx
lea rax, [0x1404ae730]
lea rcx, [0x1403c62a0]
nop word [rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, edx
xor r8d, 1
and edx, 1
lea edx, [r8 + rdx*2]
cmp edx, 0xf
jl 0x14021b240
mov al, 0x50
xchg byte [0x1404ae73f], al
mov eax, 0x136d98f4
nop dword [rax]
mov ecx, dword [0x1404ef65c]
mov edx, dword [0x1404b04d4]
add edx, eax
cmp ecx, edx
jge 0x14021b270
lea rax, [0x1404ae730]
pop rsi
ret
movzx eax, byte [0x1404aea21]
cmp al, 7
je 0x14021b582
mov cl, 0xce
nop dword [rax]
mov al, 0xd4
lock cmpxchg byte [0x1404aea21], cl
je 0x14021b302
cmp al, 7
jne 0x14021b2a0
jmp 0x14021b582
xor edx, edx
lea rax, [0x1404ae610]
lea rcx, [0x1403c6180]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, dword [0x1404b04d4]
add edx, r8d
add edx, 0x136d98df
cmp edx, 0xe
jl 0x14021b2d0
mov al, 0xa7
xchg byte [0x1404ae61e], al
lea rax, [0x1404ae610]
pop rsi
ret
mov eax, dword [0x1404ef658]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x14021b4f1
jmp 0x14021b4e6
movzx eax, byte [0x1404ae386]
mov ecx, dword [0x1404ef65c]
cmp ecx, 0x1c
jle 0x14021b337
movzx eax, byte [0x1404ae386]
jmp 0x14021b31c
cmp al, 0x47
je 0x14021b4ac
mov r8d, 0x136d992c
mov r9b, 0xd2
mov r10d, 0x136d98e0
jmp 0x14021b359
cmp cl, 0x47
je 0x14021b4ac
mov eax, dword [0x1404ef65c]
mov ecx, dword [0x1404b04d4]
add ecx, r8d
cmp eax, ecx
jge 0x14021b3e0
nop dword [rax]
mov al, 0x50
lock cmpxchg byte [0x1404ae386], r9b
mov ecx, eax
sete al
mov edx, dword [0x1404ef658]
lea r11d, [rdx - 1]
imul r11d, edx
and r11d, 1
mov edx, dword [0x1404b04d4]
mov esi, edx
xor esi, 0x136d98de
and edx, 0x136d98de
lea edx, [rsi + rdx*2]
cmp r11d, edx
jne 0x14021b3e0
test al, al
jne 0x14021b413
mov edx, dword [0x1404ef658]
lea eax, [rdx - 1]
imul eax, edx
mov r11d, dword [0x1404b04d4]
add r11d, r10d
xor edx, edx
div r11d
test edx, edx
jne 0x14021b400
jmp 0x14021b3f0
mov al, 0x50
lock cmpxchg byte [0x1404ae386], r9b
jmp 0x14021b370
mov eax, dword [0x1404ef65c]
cmp eax, 0x52
jl 0x14021b350
nop
mov eax, dword [0x1404ef658]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
jne 0x14021b400
jmp 0x14021b3f0
xor eax, eax
lea rcx, [0x1404ae350]
lea rdx, [0x1403c5ee0]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
mov r9d, r8d
xor r9b, r8b
not r9b
and r9b, byte [rax + rcx]
xor r9b, r8b
mov byte [rax + rcx], r9b
lea r8d, [rax + 1]
cmp r8d, 0x35
jg 0x14021b458
inc rax
jmp 0x14021b430
mov eax, dword [0x1404ef658]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
mov eax, 0x136d98de
add eax, dword [0x1404b04d4]
cmp ecx, eax
jne 0x14021b481
mov eax, dword [0x1404ef65c]
cmp eax, 0x5e
jl 0x14021b4a4
mov eax, 0x136d9938
nop word cs:[rax + rax]
mov ecx, dword [0x1404ef65c]
mov edx, dword [0x1404b04d4]
add edx, eax
cmp ecx, edx
jge 0x14021b490
jmp 0x14021b476
mov al, 0x47
xchg byte [0x1404ae386], al
mov eax, dword [0x1404ef65c]
cmp eax, 0x25
jg 0x14021b4d0
mov eax, dword [0x1404ef65c]
cmp eax, 0x41
jl 0x14021b4dd
nop word cs:[rax + rax]
mov eax, dword [0x1404ef65c]
cmp eax, 0x4c
jge 0x14021b4d0
jmp 0x14021b4b7
lea rax, [0x1404ae350]
pop rsi
ret
mov eax, dword [0x1404ef65c]
cmp eax, 0x13
jl 0x14021b51d
mov eax, 0x136d98de
nop word cs:[rax + rax]
mov ecx, dword [0x1404ef658]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x1404b04d4]
add ecx, eax
cmp edx, ecx
jne 0x14021b500
jmp 0x14021b4e6
xor edx, edx
lea rax, [0x1404aea10]
lea rcx, [0x1403c6570]
nop dword [rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, edx
xor r8d, 1
and edx, 1
lea edx, [r8 + rdx*2]
cmp edx, 0x11
jl 0x14021b530
lea rax, [fcn.14021b070]
add eax, eax
add eax, 0x80
mov ecx, eax
not ecx
test ecx, eax
jne 0x14021b578
mov al, 7
xchg byte [0x1404aea21], al
mov eax, dword [0x1404ef65c]
cmp eax, 0x12
jle 0x14021b582
mov al, 7
xchg byte [0x1404aea21], al
jmp 0x14021b565
lea rax, [0x1404aea10]
pop rsi
ret