Function at 0x140217d40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov esi, r9d
mov r8d, edx
mov r15d, dword [rsp + 0xa0]
mov edx, r9d
test ecx, ecx
je 0x140217e51
xor edx, 0x24574310
mov eax, dword [0x14051cf9c]
add eax, esi
add eax, 0x3a49
cdqe
add rax, qword [0x14051d008]
mov ecx, r8d
call qword [0x1404ee420]
test al, 1
je 0x140217f25
movzx eax, byte [0x140564eba]
cmp al, 0xe9
je 0x1402180b9
mov edi, esi
xor edi, 0x8095c03d
lea rbx, [rsp + 0x30]
mov ebp, esi
xor ebp, 0xaec1d4bc
mov r12d, r15d
xor r12d, 0x7a82ead1
mov r13d, r15d
xor r13d, 0x7a82200a
nop
mov eax, dword [0x14051cfa0]
add eax, esi
add eax, 0x3a49
cdqe
add rax, qword [0x14051cff0]
mov rcx, rbx
mov edx, edi
call qword [0x1404ee420]
movzx ecx, byte [rsp + 0x30]
movzx r14d, byte [rsp + 0x31]
mov eax, dword [0x14051e5f8]
lea edx, [r12 + rax]
add eax, r13d
mov r8d, esi
sub r8d, edx
add r8d, dword [0x14051cf94]
add r8d, eax
movsxd rax, r8d
add rax, qword [0x14051cfe0]
mov edx, r14d
mov r8, rbx
mov r9d, ebp
call qword [0x1404ee420]
test r14b, r14b
jne 0x140217fd9
mov eax, r15d
xor al, 0x66
add al, byte [0x14051e608]
cmp byte [rsp + 0x30], al
jne 0x140217dd0
jmp 0x1402180b9
mov eax, r15d
xor eax, 0x7a82ead1
add eax, dword [0x14051e5f8]
mov ecx, esi
sub ecx, eax
add ecx, dword [0x14051cf90]
xor edx, 0x104987dc
movsxd rax, ecx
add rax, qword [0x14051cfd8]
mov ecx, r8d
call qword [0x1404ee420]
test al, 1
je 0x140217f59
movzx ecx, byte [0x14051c7ca]
mov eax, dword [0x14051e5f8]
mov r8d, r15d
not r8d
mov r9d, r8d
and r9d, 0x82ba170c
mov edx, r15d
and edx, 0x7d45e8f3
or edx, r9d
add edx, eax
and r8d, 0x7a82ead1
mov r9d, r15d
and r9d, 0x857d152e
or r9d, r8d
add r9d, eax
mov eax, esi
sub eax, r9d
add eax, dword [0x14051cfa4]
xor edx, esi
cdqe
add rax, qword [0x14051d000]
call qword [0x1404ee420]
test al, 1
jne 0x140218155
mov cl, 0x1e
nop word cs:[rax + rax]
mov al, 0x56
lock cmpxchg byte [0x14051c7ca], cl
je 0x1402180d9
mov edx, r15d
xor dl, 0xd2
add dl, byte [0x14051e608]
cmp al, dl
jne 0x140217f00
jmp 0x140218155
movzx eax, byte [0x14051c9ed]
cmp al, 0x94
je 0x1402180cd
mov cl, 0x45
nop word cs:[rax + rax]
mov al, 0x53
lock cmpxchg byte [0x14051c9ed], cl
je 0x140218074
cmp al, 0x94
jne 0x140217f40
jmp 0x1402180cd
mov edx, esi
xor edx, 0x7838ed4f
mov eax, dword [0x14051cf98]
add eax, esi
add eax, 0x3a49
cdqe
add rax, qword [0x14051cfc8]
lea rcx, [rsp + 0x30]
call qword [0x1404ee420]
movzx ecx, byte [rsp + 0x30]
mov edx, esi
xor edx, 0x50c6ec1a
mov eax, dword [0x14051cfb0]
add eax, esi
add eax, 0x3a49
cdqe
add rax, qword [0x14051cfd0]
call qword [0x1404ee420]
test al, 1
jne 0x1402181b3
mov cl, 0x71
nop word cs:[rax + rax]
mov al, 0x82
lock cmpxchg byte [0x14051ca95], cl
je 0x14021815e
cmp al, 0x2b
jne 0x140217fc0
jmp 0x1402181b3
xor edi, edi
mov ebx, esi
xor ebx, 0x3e0003c4
lea r14, [rsp + 0x30]
lea r15, [0x140431ad0]
mov ebp, esi
xor ebp, 0x57aaf406
lea r12, [0x14051ccc0]
nop
mov eax, dword [0x14051cfb4]
add eax, esi
add eax, 0x3a49
cdqe
add rax, qword [0x14051cfc0]
mov ecx, edi
mov rdx, r14
mov r8d, ebx
call qword [0x1404ee420]
movzx eax, byte [rdi + r15]
mov r13d, eax
xor r13b, al
not r13b
and r13b, byte [rsp + 0x30]
xor r13b, al
mov eax, dword [0x14051cfa8]
add eax, esi
add eax, 0x3a49
cdqe
add rax, qword [0x14051cfe8]
mov ecx, edi
mov rdx, r14
mov r8d, ebp
call qword [0x1404ee420]
mov rax, qword [rsp + 0x30]
mov byte [rax + r12], r13b
lea eax, [rdi + 1]
cmp eax, 0xc
jg 0x1402180b1
inc rdi
jmp 0x140218000
xor eax, eax
lea rcx, [0x14051c9e0]
lea rdx, [0x1404317f0]
xor r15d, 0x7a82203f
nop dword [rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
mov r9d, dword [0x14051e5f8]
add r9d, r15d
cmp r8d, r9d
jge 0x1402180c5
inc rax
jmp 0x140218090
mov al, 0xe9
xchg byte [0x140564eba], al
lea rax, [0x14051ccc0]
jmp 0x1402181ba
mov al, 0x94
xchg byte [0x14051c9ed], al
lea rax, [0x14051c9e0]
jmp 0x1402181ba
xor ecx, ecx
lea rbx, [0x14051c7b0]
lea r14, [0x1404315d0]
mov ebp, esi
xor ebp, 0x440d7bab
lea rdi, [rsp + 0x30]
nop word cs:[rax + rax]
movsxd r8, ecx
lea rdx, [rbx + r8]
movzx eax, byte [r8 + r14]
mov ecx, eax
xor cl, al
not cl
and cl, byte [r8 + rbx]
xor cl, al
mov eax, dword [0x14051cfac]
add eax, esi
add eax, 0x3a49
cdqe
add rax, qword [0x14051cff8]
mov dword [rsp + 0x20], ebp
mov r9, rdi
call qword [0x1404ee420]
mov ecx, dword [rsp + 0x30]
test al, 1
je 0x140218100
xor r15b, 0xd2
add r15b, byte [0x14051e608]
xchg byte [0x14051c7ca], r15b
lea rax, [0x14051c7b0]
jmp 0x1402181ba
xor eax, eax
lea rcx, [0x14051ca80]
lea rdx, [0x140431890]
mov r8d, r15d
xor r8d, 0x7a822037
nop dword [rax + rax]
movzx r9d, byte [rax + rdx]
xor byte [rax + rcx], r9b
lea r9d, [rax + 1]
mov r10d, dword [0x14051e5f8]
add r10d, r8d
cmp r9d, r10d
jge 0x1402181a1
inc rax
jmp 0x140218180
xor r15b, 0xa0
add r15b, byte [0x14051e608]
xchg byte [0x14051ca95], r15b
lea rax, [0x14051ca80]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret