Function at 0x140132fd0
Capabilities:
Encode data using xor

Disassembly:
push rsi
test ecx, ecx
je 0x140133040
test edx, edx
je 0x140133053
movzx eax, byte [0x14053b0f0]
cmp al, 0x5b
je 0x1401330f1
movzx ecx, byte [0x14053b338]
lea eax, [rcx - 0x62]
add cl, 0x17
lock cmpxchg byte [0x14053b0f0], cl
jne 0x140132fe0
xor eax, eax
lea rcx, [0x14053b0e0]
lea rdx, [0x1404660b0]
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 0x1401330e9
inc rax
jmp 0x140133010
test edx, edx
je 0x1401330b5
xor eax, eax
test al, al
je 0x1401331f8
jmp 0x140133205
xor eax, eax
mov cl, 1
nop word [rax + rax]
test al, al
jne 0x140133080
movzx edx, byte [0x14053b0d3]
mov r8d, dword [0x1405a97b8]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
je 0x14013308d
movzx edx, byte [0x14053b0d3]
test cl, cl
je 0x140133060
jmp 0x140133064
cmp dl, 0xf3
je 0x14013335b
mov cl, 5
nop dword [rax + rax]
mov al, 0xbb
lock cmpxchg byte [0x14053b0d3], cl
je 0x1401330fa
cmp al, 0xf3
jne 0x1401330a0
jmp 0x14013335b
movzx eax, byte [0x14053b25c]
cmp al, 0xe7
je 0x1401331ef
mov cl, 0xcd
nop word cs:[rax + rax]
mov al, 0x74
lock cmpxchg byte [0x14053b25c], cl
je 0x140133166
cmp al, 0xe7
jne 0x1401330d0
jmp 0x1401331ef
mov al, 0x5b
xchg byte [0x14053b0f0], al
lea rax, [0x14053b0e0]
pop rsi
ret
xor edx, edx
lea rax, [0x14053b0d0]
lea rcx, [0x1404660a0]
nop word [rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, dword [0x14053b33c]
add edx, r8d
add edx, 0x8de27085
cmp edx, 3
jl 0x140133110
mov eax, dword [0x1405a97b8]
mov eax, 0x8de27098
nop dword [rax]
mov ecx, dword [0x1405a97bc]
mov edx, dword [0x14053b33c]
add edx, eax
cmp ecx, edx
jge 0x140133140
mov eax, dword [0x1405a97bc]
cmp eax, 0x5f
jge 0x140133340
jmp 0x140133319
xor edx, edx
lea rax, [0x14053b250]
lea rcx, [0x140466200]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, dword [0x14053b33c]
add edx, r8d
add edx, 0x8de27085
cmp edx, 0xc
jl 0x140133180
mov eax, 0x8de27084
nop word cs:[rax + rax]
mov ecx, dword [0x1405a97b8]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x1401331cc
mov ecx, dword [0x1405a97bc]
cmp ecx, 0x26
jge 0x1401331b0
mov ecx, dword [0x1405a97b8]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x14053b33c]
add ecx, eax
cmp edx, ecx
jne 0x1401331c1
mov al, 0xe7
xchg byte [0x14053b25c], al
lea rax, [0x14053b250]
pop rsi
ret
movzx eax, byte [0x14053b209]
xor ecx, ecx
test cl, cl
je 0x14013320e
movzx eax, byte [0x14053b209]
jmp 0x1401331f8
movzx ecx, byte [0x14053b338]
add cl, 0xa0
cmp al, cl
je 0x140133310
mov cl, 0x96
mov edx, 0x8de27085
lea rax, [fcn.140132fd0]
lea r8d, [rax + rax]
add r8d, 0x180
xor r9d, r9d
mov r10b, 1
jmp 0x140133258
cmp al, 0xc7
je 0x140133310
mov eax, dword [0x1405a97b8]
lea r11d, [rax - 1]
imul r11d, eax
test r11b, 1
jne 0x140133290
nop dword [rax]
mov al, 0x2e
lock cmpxchg byte [0x14053b209], cl
sete r11b
mov esi, dword [0x14053b33c]
add esi, edx
test r8d, esi
je 0x1401332b0
nop dword [rax + rax]
mov al, 0x2e
lock cmpxchg byte [0x14053b209], cl
cmp dword [0x1405a97c0], 0
jne 0x140133290
jmp 0x140133270
test r11b, r11b
jne 0x1401332d1
nop word cs:[rax + rax]
test r9b, r9b
jne 0x1401332ca
test r9b, r9b
je 0x140133250
test r10b, r10b
je 0x1401332c0
jmp 0x1401332c5
xor eax, eax
lea rcx, [0x14053b200]
lea rdx, [0x1404661b0]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 8
jg 0x140133308
inc rax
jmp 0x1401332f0
mov al, 0xc7
xchg byte [0x14053b209], al
lea rax, [0x14053b200]
pop rsi
ret
mov al, 0xf3
xchg byte [0x14053b0d3], al
lea rax, [fcn.140132fd0]
add eax, eax
add eax, 0x22a0
mov ecx, eax
not ecx
test ecx, eax
je 0x14013335b
nop word [rax + rax]
mov al, 0xf3
xchg byte [0x14053b0d3], al
mov eax, dword [0x1405a97b8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x140133340
jmp 0x140133319
lea rax, [0x14053b0d0]
pop rsi
ret