Function at 0x140126810
Capabilities:
Encode data using xor

Disassembly:
push rsi
test ecx, ecx
je 0x140126880
test edx, edx
je 0x140126893
movzx eax, byte [0x140537ba0]
cmp al, 0x5b
je 0x140126931
movzx ecx, byte [0x140537de8]
lea eax, [rcx - 0x62]
add cl, 0x17
lock cmpxchg byte [0x140537ba0], cl
jne 0x140126820
xor eax, eax
lea rcx, [0x140537b90]
lea rdx, [0x14045ff90]
nop
movzx r8d, byte [rax + rcx]
movzx r9d, byte [rax + rdx]
mov r10d, r8d
xor r10b, r9b
and r8b, r9b
add r8b, r8b
add r8b, r10b
mov byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xf
jg 0x140126929
inc rax
jmp 0x140126850
test edx, edx
je 0x1401268f5
xor eax, eax
test al, al
je 0x140126a38
jmp 0x140126a45
xor eax, eax
mov cl, 1
nop word [rax + rax]
test al, al
jne 0x1401268c0
movzx edx, byte [0x140537b83]
mov r8d, dword [0x1405a6ce8]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
je 0x1401268cd
movzx edx, byte [0x140537b83]
test cl, cl
je 0x1401268a0
jmp 0x1401268a4
cmp dl, 0xf3
je 0x140126b9b
mov cl, 5
nop dword [rax + rax]
mov al, 0xbb
lock cmpxchg byte [0x140537b83], cl
je 0x14012693a
cmp al, 0xf3
jne 0x1401268e0
jmp 0x140126b9b
movzx eax, byte [0x140537d0c]
cmp al, 0xe7
je 0x140126a2f
mov cl, 0xcd
nop word cs:[rax + rax]
mov al, 0x74
lock cmpxchg byte [0x140537d0c], cl
je 0x1401269a6
cmp al, 0xe7
jne 0x140126910
jmp 0x140126a2f
mov al, 0x5b
xchg byte [0x140537ba0], al
lea rax, [0x140537b90]
pop rsi
ret
xor edx, edx
lea rax, [0x140537b80]
lea rcx, [0x14045ff80]
nop word [rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, dword [0x140537dec]
add edx, r8d
add edx, 0x8de27085
cmp edx, 3
jl 0x140126950
mov eax, dword [0x1405a6ce8]
mov eax, 0x8de27098
nop dword [rax]
mov ecx, dword [0x1405a6cec]
mov edx, dword [0x140537dec]
add edx, eax
cmp ecx, edx
jge 0x140126980
mov eax, dword [0x1405a6cec]
cmp eax, 0x5f
jge 0x140126b80
jmp 0x140126b59
xor edx, edx
lea rax, [0x140537d00]
lea rcx, [0x1404600e0]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, dword [0x140537dec]
add edx, r8d
add edx, 0x8de27085
cmp edx, 0xc
jl 0x1401269c0
mov eax, 0x8de27084
nop word cs:[rax + rax]
mov ecx, dword [0x1405a6ce8]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x140126a0c
mov ecx, dword [0x1405a6cec]
cmp ecx, 0x26
jge 0x1401269f0
mov ecx, dword [0x1405a6ce8]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x140537dec]
add ecx, eax
cmp edx, ecx
jne 0x140126a01
mov al, 0xe7
xchg byte [0x140537d0c], al
lea rax, [0x140537d00]
pop rsi
ret
movzx eax, byte [0x140537cb9]
xor ecx, ecx
test cl, cl
je 0x140126a4e
movzx eax, byte [0x140537cb9]
jmp 0x140126a38
movzx ecx, byte [0x140537de8]
add cl, 0xa0
cmp al, cl
je 0x140126b50
mov cl, 0x96
mov edx, 0x8de27085
lea rax, [fcn.140126810]
lea r8d, [rax + rax]
add r8d, 0x180
xor r9d, r9d
mov r10b, 1
jmp 0x140126a98
cmp al, 0xc7
je 0x140126b50
mov eax, dword [0x1405a6ce8]
lea r11d, [rax - 1]
imul r11d, eax
test r11b, 1
jne 0x140126ad0
nop dword [rax]
mov al, 0x2e
lock cmpxchg byte [0x140537cb9], cl
sete r11b
mov esi, dword [0x140537dec]
add esi, edx
test r8d, esi
je 0x140126af0
nop dword [rax + rax]
mov al, 0x2e
lock cmpxchg byte [0x140537cb9], cl
cmp dword [0x1405a6cf0], 0
jne 0x140126ad0
jmp 0x140126ab0
test r11b, r11b
jne 0x140126b11
nop word cs:[rax + rax]
test r9b, r9b
jne 0x140126b0a
test r9b, r9b
je 0x140126a90
test r10b, r10b
je 0x140126b00
jmp 0x140126b05
xor eax, eax
lea rcx, [0x140537cb0]
lea rdx, [0x140460090]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 8
jg 0x140126b48
inc rax
jmp 0x140126b30
mov al, 0xc7
xchg byte [0x140537cb9], al
lea rax, [0x140537cb0]
pop rsi
ret
mov al, 0xf3
xchg byte [0x140537b83], al
lea rax, [fcn.140126810]
add eax, eax
add eax, 0x22a0
mov ecx, eax
not ecx
test ecx, eax
je 0x140126b9b
nop word [rax + rax]
mov al, 0xf3
xchg byte [0x140537b83], al
mov eax, dword [0x1405a6ce8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x140126b80
jmp 0x140126b59
lea rax, [0x140537b80]
pop rsi
ret