Function at 0x1401be230
Capabilities:
Encode data using xor

Disassembly:
push rsi
test ecx, ecx
je 0x1401be2e7
mov eax, dword [0x140452194]
mov ecx, eax
xor ecx, 0x136d98de
and eax, 0x136d98de
lea eax, [rcx + rax*2]
cmp edx, eax
jne 0x1401be309
movzx eax, byte [0x1404502de]
cmp al, 0xa7
je 0x1401be4b9
mov cl, 0x4e
mov dl, 1
jmp 0x1401be278
cmp al, 0xa7
je 0x1401be4b9
mov al, 0x8a
lock cmpxchg byte [0x1404502de], cl
je 0x1401be475
mov r8d, dword [0x140491348]
mov r9d, dword [0x140452194]
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 0x1401be2d0
nop
test dl, dl
jne 0x1401be270
nop word cs:[rax + rax]
mov r8d, dword [0x140491348]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
jne 0x1401be2d0
jmp 0x1401be2c0
mov eax, 0x136d98de
add eax, dword [0x140452194]
cmp edx, eax
jne 0x1401be44b
xor eax, eax
test al, al
je 0x1401be4dc
jmp 0x1401be4ee
movzx eax, byte [0x1404503ff]
cmp al, 0x50
je 0x1401be427
xor ecx, ecx
mov dl, 0x26
mov r8b, 1
jmp 0x1401be338
cmp al, 0x50
je 0x1401be427
test cl, cl
jne 0x1401be3a0
nop dword [rax]
mov al, 0x53
lock cmpxchg byte [0x1404503ff], dl
sete r9b
mov r10d, dword [0x14049134c]
cmp r10d, 0x1b
jge 0x1401be3a0
test r9b, r9b
jne 0x1401be3c0
mov r9d, dword [0x14049134c]
cmp r9d, 0xc
jg 0x1401be371
test cl, cl
je 0x1401be330
mov r9d, dword [0x140491348]
mov r10d, dword [0x140452194]
neg r10d
add r10d, r9d
inc r10d
imul r10d, r9d
test r10b, 1
jne 0x1401be360
jmp 0x1401be36d
mov al, 0x53
lock cmpxchg byte [0x1404503ff], dl
test r8b, r8b
je 0x1401be3a0
jmp 0x1401be340
mov eax, dword [0x140491348]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
je 0x1401be3dc
mov eax, dword [0x14049134c]
cmp eax, 0x2f
jge 0x1401be3c0
mov eax, dword [0x14049134c]
cmp eax, 0x32
jg 0x1401be3d1
xor edx, edx
lea rax, [0x1404503f0]
lea rcx, [0x140369290]
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 0x1401be400
mov al, 0x50
xchg byte [0x1404503ff], al
mov eax, 0x136d98f4
nop dword [rax]
mov ecx, dword [0x14049134c]
mov edx, dword [0x140452194]
add edx, eax
cmp ecx, edx
jge 0x1401be430
lea rax, [0x1404503f0]
pop rsi
ret
movzx eax, byte [0x1404506e1]
cmp al, 7
je 0x1401be742
mov cl, 0xce
nop dword [rax]
mov al, 0xd4
lock cmpxchg byte [0x1404506e1], cl
je 0x1401be4c2
cmp al, 7
jne 0x1401be460
jmp 0x1401be742
xor edx, edx
lea rax, [0x1404502d0]
lea rcx, [0x140369170]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, dword [0x140452194]
add edx, r8d
add edx, 0x136d98df
cmp edx, 0xe
jl 0x1401be490
mov al, 0xa7
xchg byte [0x1404502de], al
lea rax, [0x1404502d0]
pop rsi
ret
mov eax, dword [0x140491348]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x1401be6b1
jmp 0x1401be6a6
movzx eax, byte [0x140450046]
mov ecx, dword [0x14049134c]
cmp ecx, 0x1c
jle 0x1401be4f7
movzx eax, byte [0x140450046]
jmp 0x1401be4dc
cmp al, 0x47
je 0x1401be66c
mov r8d, 0x136d992c
mov r9b, 0xd2
mov r10d, 0x136d98e0
jmp 0x1401be519
cmp cl, 0x47
je 0x1401be66c
mov eax, dword [0x14049134c]
mov ecx, dword [0x140452194]
add ecx, r8d
cmp eax, ecx
jge 0x1401be5a0
nop dword [rax]
mov al, 0x50
lock cmpxchg byte [0x140450046], r9b
mov ecx, eax
sete al
mov edx, dword [0x140491348]
lea r11d, [rdx - 1]
imul r11d, edx
and r11d, 1
mov edx, dword [0x140452194]
mov esi, edx
xor esi, 0x136d98de
and edx, 0x136d98de
lea edx, [rsi + rdx*2]
cmp r11d, edx
jne 0x1401be5a0
test al, al
jne 0x1401be5d3
mov edx, dword [0x140491348]
lea eax, [rdx - 1]
imul eax, edx
mov r11d, dword [0x140452194]
add r11d, r10d
xor edx, edx
div r11d
test edx, edx
jne 0x1401be5c0
jmp 0x1401be5b0
mov al, 0x50
lock cmpxchg byte [0x140450046], r9b
jmp 0x1401be530
mov eax, dword [0x14049134c]
cmp eax, 0x52
jl 0x1401be510
nop
mov eax, dword [0x140491348]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
jne 0x1401be5c0
jmp 0x1401be5b0
xor eax, eax
lea rcx, [0x140450010]
lea rdx, [0x140368ed0]
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 0x1401be618
inc rax
jmp 0x1401be5f0
mov eax, dword [0x140491348]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
mov eax, 0x136d98de
add eax, dword [0x140452194]
cmp ecx, eax
jne 0x1401be641
mov eax, dword [0x14049134c]
cmp eax, 0x5e
jl 0x1401be664
mov eax, 0x136d9938
nop word cs:[rax + rax]
mov ecx, dword [0x14049134c]
mov edx, dword [0x140452194]
add edx, eax
cmp ecx, edx
jge 0x1401be650
jmp 0x1401be636
mov al, 0x47
xchg byte [0x140450046], al
mov eax, dword [0x14049134c]
cmp eax, 0x25
jg 0x1401be690
mov eax, dword [0x14049134c]
cmp eax, 0x41
jl 0x1401be69d
nop word cs:[rax + rax]
mov eax, dword [0x14049134c]
cmp eax, 0x4c
jge 0x1401be690
jmp 0x1401be677
lea rax, [0x140450010]
pop rsi
ret
mov eax, dword [0x14049134c]
cmp eax, 0x13
jl 0x1401be6dd
mov eax, 0x136d98de
nop word cs:[rax + rax]
mov ecx, dword [0x140491348]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x140452194]
add ecx, eax
cmp edx, ecx
jne 0x1401be6c0
jmp 0x1401be6a6
xor edx, edx
lea rax, [0x1404506d0]
lea rcx, [0x140369560]
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 0x1401be6f0
lea rax, [fcn.1401be230]
add eax, eax
add eax, 0x80
mov ecx, eax
not ecx
test ecx, eax
jne 0x1401be738
mov al, 7
xchg byte [0x1404506e1], al
mov eax, dword [0x14049134c]
cmp eax, 0x12
jle 0x1401be742
mov al, 7
xchg byte [0x1404506e1], al
jmp 0x1401be725
lea rax, [0x1404506d0]
pop rsi
ret