Function at 0x140240300
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x140240339
test edx, edx
je 0x140240369
movzx eax, byte [0x14057bbc1]
cmp al, 0x71
je 0x1402404b4
mov cl, 0x39
nop dword [rax]
mov al, 0xa2
lock cmpxchg byte [0x14057bbc1], cl
je 0x140240435
cmp al, 0x71
jne 0x140240320
jmp 0x1402404b4
test edx, edx
je 0x1402403a3
movzx eax, byte [0x14057c05d]
cmp al, 0x4c
je 0x1402405df
mov cl, 6
nop
mov al, 0xcd
lock cmpxchg byte [0x14057c05d], cl
je 0x1402404e3
cmp al, 0x4c
jne 0x140240350
jmp 0x1402405df
movzx eax, byte [0x14057c4cd]
cmp al, 0x87
je 0x140240654
mov cl, 0xc6
nop word [rax + rax]
mov al, 0x4e
lock cmpxchg byte [0x14057c4cd], cl
je 0x14024053b
movzx edx, byte [0x14057ddd0]
add dl, 0x32
cmp al, dl
jne 0x140240380
jmp 0x140240654
movzx eax, byte [0x14057bd09]
cmp al, 0x35
je 0x14024042d
mov cl, 0x4b
mov edx, 0x136d98df
lea rax, [fcn.140240300]
lea r8d, [rax + rax]
add r8d, 0x4780
nop word [rax + rax]
mov eax, dword [0x1405d1764]
cmp eax, 0x4f
jg 0x140240401
mov al, 0x9f
lock cmpxchg byte [0x14057bd09], cl
sete r9b
mov r10d, dword [0x14057ddd4]
add r10d, edx
mov r11d, r8d
xor r11d, r10d
not r11d
test r11d, r10d
je 0x140240420
mov al, 0x9f
lock cmpxchg byte [0x14057bd09], cl
mov eax, dword [0x1405d1764]
cmp eax, 0x1c
jge 0x1402403d0
jmp 0x1402403db
test r9b, r9b
jne 0x140240577
cmp al, 0x35
jne 0x1402403d0
lea rax, [0x14057bcf0]
ret
xor edx, edx
lea rax, [0x14057bba0]
lea rcx, [0x140493cb0]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
mov r9d, r8d
xor r9b, r8b
not r9b
and r9b, byte [rdx + rax]
xor r9b, r8b
mov byte [rdx + rax], r9b
mov r8d, dword [0x14057ddd4]
add edx, r8d
add edx, 0x136d98df
cmp edx, 0x21
jl 0x140240450
xor eax, eax
mov cl, 1
nop word cs:[rax + rax]
mov edx, dword [0x1405d1764]
cmp edx, 0x4a
jg 0x14024049f
test al, al
je 0x1402404a5
test cl, cl
je 0x140240490
jmp 0x14024049b
movzx eax, byte [0x14057ddd0]
add al, 0x1c
xchg byte [0x14057bbc1], al
mov eax, dword [0x1405d1764]
mov eax, 0x136d98de
nop
mov ecx, dword [0x1405d1760]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x14057ddd4]
add ecx, eax
cmp edx, ecx
jne 0x1402404c0
lea rax, [0x14057bba0]
ret
xor edx, edx
lea rax, [0x14057c050]
lea rcx, [0x140494130]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, dword [0x14057ddd4]
add edx, r8d
add edx, 0x136d98df
cmp edx, 0xd
jl 0x140240500
mov eax, dword [0x1405d1760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x1402405fc
jmp 0x1402405e7
xor eax, eax
lea rcx, [0x14057c4c0]
lea rdx, [0x140494590]
nop dword [rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xc
jg 0x140240568
inc rax
jmp 0x140240550
mov al, 1
test al, al
jne 0x140240635
jmp 0x14024064a
mov eax, dword [0x1405d1760]
nop dword [rax]
mov eax, dword [0x1405d1760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x140240580
xor eax, eax
lea rcx, [0x14057bcf0]
lea rdx, [0x140493df0]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x18
jg 0x1402405c8
inc rax
jmp 0x1402405b0
movzx eax, byte [0x14057ddd0]
add al, 0xe0
xchg byte [0x14057bd09], al
lea rax, [0x14057bcf0]
ret
lea rax, [0x14057c050]
ret
movzx eax, byte [0x14057ddd0]
add al, 0xf7
xchg byte [0x14057c05d], al
mov al, 1
test al, al
jne 0x1402405df
mov eax, 0x136d98de
nop word cs:[rax + rax]
mov cl, 0x4c
xchg byte [0x14057c05d], cl
mov ecx, dword [0x1405d1760]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x14057ddd4]
add ecx, eax
cmp edx, ecx
jne 0x140240610
jmp 0x1402405e7
movzx eax, byte [0x14057ddd0]
add al, 0x32
xchg byte [0x14057c4cd], al
xor eax, eax
test al, al
je 0x140240654
mov al, 0x87
xchg byte [0x14057c4cd], al
jmp 0x140240635
lea rax, [0x14057c4c0]
ret