Function at 0x140177540
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov eax, dword [0x1405442d8]
mov r8d, eax
xor r8d, 0xbc252bb4
and eax, 0x3c252bb4
lea eax, [r8 + rax*2]
cmp ecx, eax
jne 0x1401775fc
mov eax, dword [0x1405a9960]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
nop word cs:[rax + rax]
xor eax, eax
test al, al
jne 0x140177580
test edx, edx
je 0x140177639
movzx eax, byte [0x140543ec7]
nop word cs:[rax + rax]
cmp al, 0x12
je 0x14017784e
movzx ecx, byte [0x1405442e8]
mov edx, ecx
xor dl, 0x93
mov eax, ecx
and al, 0x13
add al, al
add al, dl
add cl, 0xbd
lock cmpxchg byte [0x140543ec7], cl
jne 0x1401775a0
xor eax, eax
lea rcx, [0x140543ec0]
lea rdx, [0x140467ac0]
nop dword [rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 6
jg 0x1401776d3
inc rax
jmp 0x1401775e0
test edx, edx
je 0x140177669
movzx eax, byte [0x140543f95]
cmp al, 0xae
je 0x140177926
mov cl, 0x54
nop word cs:[rax + rax]
mov al, 0xe
lock cmpxchg byte [0x140543f95], cl
je 0x1401776e7
cmp al, 0xae
jne 0x140177620
jmp 0x140177926
movzx eax, byte [0x1405440cf]
cmp al, 0x62
je 0x140177815
mov cl, 0x79
nop word [rax + rax]
mov al, 0xd7
lock cmpxchg byte [0x1405440cf], cl
je 0x140177706
cmp al, 0x62
jne 0x140177650
jmp 0x140177815
movzx eax, byte [0x140543fce]
cmp al, 0x69
je 0x1401778f6
movzx ecx, byte [0x1405442e8]
lea eax, [rcx + 0x2b]
add cl, 0xba
lock cmpxchg byte [0x140543fce], cl
je 0x1401777c2
mov ecx, dword [0x1405a9964]
cmp ecx, 0x36
jg 0x1401776c0
nop
mov ecx, dword [0x1405a9960]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x140177670
nop word cs:[rax + rax]
mov ecx, dword [0x1405a9960]
lea edx, [rcx + 1]
imul edx, ecx
test dl, 1
jne 0x1401776c0
jmp 0x1401776a0
mov eax, dword [0x1405a9964]
cmp eax, 0x48
jl 0x140177820
jmp 0x140177831
lea rax, [fcn.140177540]
add eax, eax
add eax, 0xf80
mov ecx, eax
not ecx
test ecx, eax
jne 0x140177950
jmp 0x140177932
xor r8d, r8d
mov r9d, 0xbc252be8
lea r10, [0x1405440c0]
lea r11, [0x140467cb0]
mov bl, 1
jmp 0x14017773d
inc r8d
cmp r8d, 0xf
jge 0x1401777d1
mov eax, dword [0x1405a9964]
mov ecx, dword [0x1405442d8]
add ecx, r9d
movsxd rsi, r8d
cmp eax, ecx
jge 0x140177770
nop word cs:[rax + rax]
movzx eax, byte [rsi + r11]
xor byte [rsi + r10], al
test bl, bl
jne 0x140177730
nop dword [rax]
movzx ecx, byte [rsi + r10]
movzx eax, byte [rsi + r11]
sub al, cl
sub al, cl
mul cl
mov edx, eax
shl dl, cl
mov edi, eax
mov ecx, edx
shl dil, cl
mov ecx, eax
neg cl
mov edx, ecx
xor dl, dil
and dil, cl
add dil, dil
add dil, dl
sub dil, al
mov edx, ecx
xor dl, dil
and dil, cl
add dil, dil
add dil, dl
xor dil, al
mov byte [rsi + r10], dil
mov eax, dword [0x1405a9964]
cmp eax, 0x15
jge 0x140177770
jmp 0x140177760
xor eax, eax
test al, al
jne 0x140177880
jmp 0x140177857
mov eax, 0xbc252c08
xor ecx, ecx
nop dword [rax + rax]
mov edx, dword [0x1405a9964]
mov r8d, dword [0x1405442d8]
add r8d, eax
cmp edx, r8d
jl 0x140177809
mov edx, dword [0x1405a9960]
lea r8d, [rdx + 1]
imul r8d, edx
test r8b, 1
jne 0x1401777e0
test cl, cl
jne 0x1401777f5
mov al, 0x62
xchg byte [0x1405440cf], al
lea rax, [0x1405440c0]
pop rbx
pop rdi
pop rsi
ret
mov eax, dword [0x1405a9960]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x140177846
mov al, 1
nop word cs:[rax + rax]
test al, al
je 0x140177840
jmp 0x140177820
mov al, 0x12
xchg byte [0x140543ec7], al
lea rax, [0x140543ec0]
jmp 0x14017781c
mov eax, dword [0x1405a9964]
mov ecx, dword [0x1405442d8]
mov edx, ecx
xor edx, 0xbc252c05
and ecx, 0x3c252c05
lea ecx, [rdx + rcx*2]
cmp eax, ecx
jl 0x14017788d
nop dword [rax + rax]
mov eax, dword [0x1405a9964]
cmp eax, 0x59
jge 0x140177880
jmp 0x140177857
xor edx, edx
lea rax, [0x140543fc0]
lea rcx, [0x140467bb0]
nop dword [rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, dword [0x1405442d8]
add edx, r8d
add edx, 0xbc252bb5
add r8d, 0xbc252bc2
cmp edx, r8d
jl 0x1401778a0
mov eax, dword [0x1405a9964]
cmp eax, 0x2c
jge 0x1401778ec
mov al, 0x69
xchg byte [0x140543fce], al
mov eax, dword [0x1405a9960]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x1401778f6
mov al, 0x69
xchg byte [0x140543fce], al
jmp 0x1401778d3
mov eax, dword [0x1405a9964]
nop dword [rax]
mov eax, dword [0x1405a9960]
mov ecx, dword [0x1405442d8]
neg ecx
add ecx, eax
inc ecx
imul ecx, eax
test cl, 1
jne 0x140177900
lea rax, [0x140543fc0]
jmp 0x14017781c
lea rax, [0x140543f80]
jmp 0x14017781c
mov eax, dword [0x1405a9964]
mov ecx, 0xbc252bd3
add ecx, dword [0x1405442d8]
cmp eax, ecx
jl 0x140177973
nop word [rax + rax]
mov eax, dword [0x1405a9964]
mov ecx, dword [0x1405442d8]
mov edx, ecx
xor edx, 0xbc252bef
and ecx, 0x3c252bef
lea ecx, [rdx + rcx*2]
cmp eax, ecx
jge 0x140177950
jmp 0x140177932
xor eax, eax
lea rcx, [0x140543f80]
lea rdx, [0x140467b70]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x14
jg 0x1401779a8
inc rax
jmp 0x140177990
movzx eax, byte [0x1405442e8]
add al, 0x35
xchg byte [0x140543f95], al
jmp 0x140177926